Skip to content

Instantly share code, notes, and snippets.

View LubeckHuaman's full-sized avatar

Lubeck Huaman LubeckHuaman

  • BairesDev
  • peru
View GitHub Profile
@wilmoore
wilmoore / js-crossword-puzzle.md
Created February 9, 2013 04:02
Javascript Trivia Crossword Solution

Javascript Trivia Crossword Solution

@mattetti
mattetti / multipart_upload.go
Last active October 12, 2025 05:15
Example of doing a multipart upload in Go (golang)
package main
import (
"bytes"
"fmt"
"io"
"log"
"mime/multipart"
"net/http"
"os"
@harding
harding / instructions.md
Last active October 26, 2025 00:25
Working With Multiple Repositories On GitHub

Working With Multiple Repositories On GitHub

Most projects on GitHub have a main repository that's the focal point of activity. For example, the Example organization has the Example.com repository:

https://github.com/example/example.com

Developers of Example.com typically call this the 'upstream' repository. We'll come back to it in a moment.

@svalleru
svalleru / GoOS.go
Last active March 7, 2021 04:45
Detect OS in Go
package main
import "fmt"
import "runtime"
func main() {
fmt.Println("OS Detected: ", runtime.GOOS)
switch os := runtime.GOOS; os {
case "darwin":
fmt.Println("Mac OS Hipster")
@squarism
squarism / iterm2.md
Last active December 26, 2025 11:17
An iTerm2 Cheatsheet

In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So + D does not mean hold shift. + Shift + D does of course.

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
@vasanthk
vasanthk / System Design.md
Last active December 26, 2025 17:05
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?
@Ashwinning
Ashwinning / OpenCVTextureinOpenGL.md
Last active May 21, 2023 11:54
Using webcam video as texture in OpenGL
@obonyojimmy
obonyojimmy / active-window.go
Created January 1, 2017 02:50
Go lang get current foreground window
package main
import (
"fmt"
"syscall"
"unsafe"
"golang.org/x/sys/windows"
)
var (
@gyribeiro
gyribeiro / tmux_italic.md
Last active September 6, 2025 12:36
enable italic font on tmux
#instalar nodemon (en la máquina virtual)
sudo npm install -g nodemon
#copiar nodemon.json al directorio del proyecto
#copiar rails.sh al directorio del proyecto
#dar permisos de ejecución a rails.sh
sudo chmod +x rails.sh
#iniciar nodemon