Skip to content

Instantly share code, notes, and snippets.

@vasanthk
vasanthk / System Design.md
Last active April 28, 2024 03:48
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@ozooxo
ozooxo / gist:299ab37080bba24b8c0e
Created October 9, 2014 04:06
Setup CImg in ubuntu 14.04
$ sudo apt-get install libx11-dev
$ sudo apt-get install cimg-dev cimg-doc cimg-examples
$ cat >lena.cpp <<EOL
#include "CImg.h"
using namespace cimg_library;
int main() {
CImg<unsigned char> image("lena.jpg"), visu(500,400,1,3,0);
const unsigned char red[] = { 255,0,0 }, green[] = { 0,255,0 }, blue[] = { 0,0,255 };
image.blur(2.5);
@Klerith
Klerith / configurar-node-ts.md
Last active April 28, 2024 03:47
Node con TypeScript - TS-Node-dev simplificado

Node con TypeScript - TS-Node-dev (preferido)

  1. Instalar TypeScript y demás dependencias
npm i -D typescript @types/node ts-node-dev rimraf
  1. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
npx tsc --init --outDir dist/ --rootDir src
@enzo-santos
enzo-santos / playstore_flutter_gitlabci.md
Last active April 28, 2024 03:44
Play Store + GitLab CI tutorial

Play Store + GitLab CI tutorial

This tutorial will teach you how to deploy a Flutter-based app to Play Store using GitLab CI.

Glossary

If you encounter a variable you don't recognize while reading, take a look here.

Variable name Description
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active April 28, 2024 03:40
crack activate Office on mac with license file
@ryogrid
ryogrid / nostr_event.pb.go
Last active April 28, 2024 03:40
NostrのイベントデータをMessagePackとProtobufでシリアライズした時のデータサイズ
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.32.0
// protoc v3.19.1
// source: np2p_event.proto
package schema
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
@Avaray
Avaray / jump.cfg
Last active April 28, 2024 03:39
TF2 (Team Fortress 2) Jump Script with Ammo and Health Regeneration
// ----- INSTALLATION GUIDE
// 1. Copy jump.cfg file into directory:
// STEAM/steamapps/common/Team Fortress 2/tf/cfg
// or
// STEAM/steamapps/common/Team Fortress 2/tf/custom/YOUR_NICE_DIRECTORY_NAME/cfg
// 2. Launch your home (Local) server
// 3. Join to team, pick your class (Soldier? Demo? Pyro?)
// 4. Open console and type "exec jump"
// 5. Play
//
@tanyuan
tanyuan / smart-caps-lock.md
Last active April 28, 2024 03:39
Smart Caps Lock: Remap Caps Lock to Control AND Escape

Smart Caps Lock: Remap to Control AND Escape (Linux, Mac, Windows)

Caps Lock 變成智慧的 Control 以及 Escape

  • 單獨輕按一下就是 Escape
  • 若按下時同時按著其他鍵,就會是 Control

這應該是 Vim 和 Emacs 的最佳解了!(Emacs? Bash 的快捷鍵就是 Emacs 系列的)

  • Send Escape if you tap Caps Lock alone.
@Civitasv
Civitasv / Linux 内核及内核模块开发环境搭建
Last active April 28, 2024 03:38 — forked from chrisdone/gist:02e165a0004be33734ac2334f215380e
Build and run minimal Linux / Busybox systems in Qemu
## Common
````
export OPT=/opt
export BUILDS=/some/where/mini_linux
mkdir -p $BUILDS
````
## Linux kernel
@tito
tito / buildozer.spec
Last active April 28, 2024 03:37
Python for android / buildozer / androidx (MAY NOT WORK)
# to add in the spcec:
android.api = 28
android.minapi = 26
android.ndk = 17c
p4a.hook = p4a_hook.py
# i have my own set of java tools, don't use it if you don't want it
android.add_src = java/src/