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
@pmalek
pmalek / shared_tmux.sh
Created February 9, 2018 15:07
Tmux read only shared session setup
#/bin/bash
SHARED_SESSION_FILE=/tmp/shared_tmux_session
set -e
tmux -2 -S ${SHARED_SESSION_FILE} new -s guest -d
sudo chown $(whoami) ${SHARED_SESSION_FILE}
sudo chmod 777 ${SHARED_SESSION_FILE}

Initial Setup

First Mac Settings

  • Password
  • Touch ID
  • Dock
  • keyborad
    • 装飾キー
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 5, 2024 16:40
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@ElonPark
ElonPark / reject.md
Last active May 31, 2017 07:25
애플 리젝 사항

PLA 1.2 리젝에 관하여

Apple의 메시지

  1. 10.0 Before You Submit: Program License Agreement (iOS) >
@staltz
staltz / comment.md
Created March 15, 2017 15:27
Nested Pick<T, K> in TypeScript 2.2

TypeScript supports Pick to allow you to get a "subset" object type of a given type, but there is no built-in Pick for deeper nested fields.

If you have a function that takes a large object as argument, but you don't use all of its fields, you can use Pick, Pick2, Pick3, etc to narrow down the input type to be only just what you need. This will make it easier to test your function, because when mocking the input object, you don't need to pass all fields of the "large" object.

@simonw
simonw / recover_source_code.md
Last active January 16, 2024 08:13
How to recover lost Python source code if it's still resident in-memory

How to recover lost Python source code if it's still resident in-memory

I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6

Attach a shell to the docker container

Install GDB (needed by pyrasite)

apt-get update && apt-get install gdb
// ==UserScript==
// @name langdev irccloud
// @namespace http://0xABCDEF.com/userscript/irccloud/langdev
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.irccloud.com/*
// @grant none
// ==/UserScript==
(function () {
@BretFisher
BretFisher / docker-for-mac.md
Last active May 5, 2024 14:24
Getting a Shell in the Docker Desktop Mac VM

2021 Update: Easiest option is Justin's repo and image

Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).

docker run -it --rm --privileged --pid=host justincormack/nsenter1

more info: https://github.com/justincormack/nsenter1


@bobbytables
bobbytables / build.sh
Created February 18, 2017 15:49
Protocol Buffer build script for multiple folders
#!/usr/bin/env bash
# This script is meant to build and compile every protocolbuffer for each
# service declared in this repository (as defined by sub-directories).
# It compiles using docker containers based on Namely's protoc image
# seen here: https://github.com/namely/docker-protoc
set -e
REPOPATH=${REPOPATH-/opt/protolangs}
CURRENT_BRANCH=${CIRCLE_BRANCH-"branch-not-available"}