Skip to content

Instantly share code, notes, and snippets.

View minhoryang's full-sized avatar
😍
Happy Today!

Minho Ryang minhoryang

😍
Happy Today!
View GitHub Profile
@leonardofed
leonardofed / README.md
Last active May 13, 2026 06:39
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@spacelatte
spacelatte / tmux.c
Last active August 22, 2016 11:36
tmux guest session
// tmux.c
// compile using: cc -o tmux tmux.c
// makeit setuid executable by: chmod +s tmux
// also change owner to desired user: [sudo] chown {usernamehere} tmux
// give it to guests' shell (passwd entry): guest::9999:99:guest user:/tmp:/opt/tmux
// you can delete password with passwd -du {login}
// allow empty passwords with PermitEmptyPasswords yes in sshd_config
// update (18 aug 2016): added dynamic owner change, for security ofc :)
@chrobione
chrobione / ovpn-maker.sh
Last active January 14, 2019 19:01
ovpn-maker.sh
#!/bin/sh
##
## Usage: ./ovpn-writer.sh SERVER CA_CERT CLIENT_CERT CLIENT_KEY > client.ovpn
## Orginial gist here https://gist.github.com/trovao/18e428b5a758df24455b
##
server=${1?"The server address is required"}
cacert=${2?"The path to the ca certificate file is required"}
client_cert=${3?"The path to the client certificate file is required"}
@nakamuray
nakamuray / websocket_proxy.py
Last active February 9, 2019 05:26
[WIP] asyncio/aiohttp で websocket reverse proxy 書きたい
import asyncio
import aiohttp
from aiohttp import web
class WebsocketProxy(object):
def __init__(self, upstream_url):
self.upstream_url = upstream_url
@jeffposnick
jeffposnick / @ SimpleDB.md
Last active September 7, 2016 17:19
Simple DB

SimpleDB - Like Indexed DB, but Simple

A simple asynchronous data store.

STATUS: This is a thought experiment, not a serious proposal. Would basic async storage like this be useful? With this plus some locking primitive, could you build Indexed DB?

Like Indexed DB:

  • rich value types - store anything you can structured clone
  • rich key types - Number, String, Date, Array (of other key types)
@mcallaway
mcallaway / docker.compose.yml
Last active September 8, 2016 08:50
docker-compose setup: docker-registry docker-auth apache redis
docker_auth:
image: "cesanta/docker_auth:stable"
command: --v=2 --alsologtostderr /config/auth_config.yml
ports:
- 5001:5001
volumes:
- ./docker-auth/config:/config:ro
- ./docker-auth/logs:/logs
@aazwar
aazwar / xcode_ramdisk.sh
Last active November 26, 2020 19:45
Speed up XCode 7
#!/bin/sh
# Create a RAM disk with same perms as mountpoint
# Script based on http://itux.idev.pro/2012/04/iservice-speed-up-your-xcode-%D0%BD%D0%B5%D0%BA%D0%BE%D1%82%D0%BE%D1%80%D1%8B%D0%B5-%D1%81%D0%BF%D0%BE%D1%81%D0%BE%D0%B1%D1%8B/ with some additions
# Usage: sudo ./xcode_ramdisk.sh start
# PREREQUISITE:
# mkdir /Users/$USERNAME/Library/Developer/Xcode/DerivedData.shadow
## Unless you clear DerivedData folder, you can't mount ramdisk on it
# rm -r /Users/$USERNAME/Library/Developer/Xcode/DerivedData/*
# see https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/
# core
brew install coreutils
# key commands
brew install binutils
brew install diffutils
brew install ed --default-names
brew install findutils --with-default-names
@robinsmidsrod
robinsmidsrod / sysrcd.ipxe
Last active May 1, 2026 12:35
SystemRescueCD iPXE menu script and monkeypatch for preloading sysrcd.dat with iPXE instead of loading from local storage
#!ipxe
set sysrcd-version 4.7.1
echo Booting SystemRescueCD ${sysrcd-version} x86 for ${initiator-iqn}
# Kernel command-line options are documented here:
# http://www.system-rescue-cd.org/Sysresccd-manual-en_Booting_the_CD-ROM#Network_boot_using_PXE
set base-url sysrcd-${sysrcd-version}-x86/
kernel ${base-url}isolinux/altker${archs} setkmap=no net.ifnames=0 backstore=off
initrd ${base-url}isolinux/initram.igz
initrd ${base-url}sysrcd.dat /sysrcd.dat
# Load the ramdisk again as a file inside the ramdisk, so our custom init script
@spiralx
spiralx / User script templates for Tampermonkey
Last active September 23, 2024 18:22
Tampermonkey user script templates
For
* ES5
* ES6
* CoffeeScript