Skip to content

Instantly share code, notes, and snippets.

View nor1c's full-sized avatar
🔥
https://github.com/sponsors/uuppyy

Noric F. nor1c

🔥
https://github.com/sponsors/uuppyy
View GitHub Profile
@RofieSagara
RofieSagara / middle-backend-programmer-test.md
Created March 4, 2024 10:39
Middle Backend Programmer - Job Test

Task Description: Your task is to create a Golang backend service with HTTP routes for image processing. The service should provide the following functionalities:

  1. Convert image files from PNG to JPEG.
  2. Resize images according to specified dimensions.
  3. Compress images to reduce file size while maintaining reasonable quality.

Instructions:

  1. Create a Golang project with necessary dependencies to implement the image processing functionalities.
@exzork
exzork / GM Handbook.txt
Last active February 1, 2025 05:22
GM Handbook for Grasscutter
// Grasscutter 2.7.0 GM Handbook
// Created 2022/05/31 17:46:25
// Commands
sendmessage : Sends a message to a player as the server
setfetterlevel : Sets your fetter level for your current active character
setworldlevel : Sets your world level (Relog to see proper effects)
setstats : Sets fight property for your current active character
give : Gives an item to you or the specified player
@guiliredu
guiliredu / 0_NestJS-Cheatsheet.md
Last active June 16, 2025 13:34
Nest.js Cheatsheet

Nest.js Cheatsheet

Nest CLI

  • npm i -g @nestjs/cli

Packages

  • yarn add class-validator class-transformer
  • yarn add @nestjs/mapped-types
@rgl
rgl / http-server-shutdown.go
Created December 23, 2020 07:02
go http server with graceful shutdown
package main
import (
"context"
"flag"
"log"
"net/http"
"os"
"os/signal"
"time"
@zmts
zmts / docker.md
Last active March 27, 2026 06:36
Docker, TypeScript, Node.js

Docker, TypeScript, Node.js

Preconditions:

  • TS application listening port: 7777
|-- dist
|-- src
|-- .dockerignore
|-- Dockerfile

How to setup a practically free CDN using Backblaze B2 and Cloudflare

⚠️ Note 2023-01-21
Some things have changed since I originally wrote this in 2016. I have updated a few minor details, and the advice is still broadly the same, but there are some new Cloudflare features you can (and should) take advantage of. In particular, pay attention to Trevor Stevens' comment here from 22 January 2022, and Matt Stenson's useful caching advice. In addition, Backblaze, with whom Cloudflare are a Bandwidth Alliance partner, have published their own guide detailing how to use Cloudflare's Web Workers to cache content from B2 private buckets. That is worth reading,

@monkishtypist
monkishtypist / hosts
Last active January 5, 2025 13:23
Nginx virtual host example for Windows Subsystem for Linux (WSL)
# Location: /mnt/c/windows/system32/drivers/etc/hosts
127.0.0.1 virtualhost.local www.virtualhost.local
@shankarshastri
shankarshastri / LearnXInYMinProtocolBuffer.proto
Last active December 16, 2025 09:10
Self-Explanatory Protocol Buffer Lang Guide (CheatSheet)
/*
* Self-Explanatory Protocol Buffer Lang Guide
*/
/*
* Why Protocol Buffers?
* Protocol buffers are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data – think XML, but smaller, faster, and simpler.
* You define how you want your data to be structured once, then you can use special generated source code to easily write and read your structured data to and from a variety of data streams and using a variety of languages.
* Protocol Buffers are Schema Of Messages. They are language agnostic.
@bradtraversy
bradtraversy / docker-help.md
Last active May 4, 2026 04:04
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

import 'dart:async';
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
void main() => runApp(MaterialApp(
home: MyApp(),
));