Skip to content

Instantly share code, notes, and snippets.

View yakir-Yang's full-sized avatar
🎯
Focusing

Yakir Yang yakir-Yang

🎯
Focusing
  • Tencent
  • Shenzhen
View GitHub Profile
@yakir-Yang
yakir-Yang / workspace.sh
Created June 27, 2017 08:47 — forked from dixson3/workspace.sh
Create and manage a case-sensitive disk-image on OSX. This is great when you have a need to work with case-sensitive repos on a mac.
#!/bin/bash
# where to store the sparse-image
WORKSPACE=~/Documents/workspace.dmg.sparseimage
create() {
hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 60g -volname workspace ${WORKSPACE}
}
detach() {
@yakir-Yang
yakir-Yang / ns-inet.sh
Created October 24, 2016 02:00 — forked from dpino/ns-inet.sh
Setup a network namespace with Internet access
#!/usr/bin/env bash
set -x
NS="ns1"
VETH="veth1"
VPEER="vpeer1"
VETH_ADDR="10.200.1.1"
VPEER_ADDR="10.200.1.2"