Skip to content

Instantly share code, notes, and snippets.

View soluchok's full-sized avatar

Andrii Soluk soluchok

View GitHub Profile
@bacher09
bacher09 / http_intf.go
Created August 24, 2021 12:22
Golang, http with SO_BINDTOINTERFACE
package main
import (
"fmt"
"io"
"net"
"net/http"
"syscall"
)
@dskindell
dskindell / .skhdrc
Last active January 23, 2024 18:46
OSX yabai & skhd Configuration
####### Shortcut Hotkeys #############
# open terminal
lalt - return : $HOME/.config/skhd/open_terminal.sh --single-instance
lalt + shift - return : $HOME/.config/skhd/open_terminal.sh
#alt - t : osascript -e 'tell application "iTerm2" to create window with default profile'
# restart Yabi, SpaceBar, and SKHD
#lalt + lcmd - r : \
# launchctl kickstart -k "gui/${UID}/homebrew.mxcl.yabai"; \
# skhd --reload
@beeman
beeman / remove-all-from-docker.sh
Created November 15, 2016 03:04
Remove all from Docker
# Stop all containers
docker stop `docker ps -qa`
# Remove all containers
docker rm `docker ps -qa`
# Remove all images
docker rmi -f `docker images -qa `
# Remove all volumes