Skip to content

Instantly share code, notes, and snippets.

View alexpark07's full-sized avatar

alex.park alexpark07

  • Republic of Korea
View GitHub Profile
#!/usr/bin/env bash
size=1024 # MB
mount_point=$HOME/tmp
name=$(basename "$mount_point")
usage() {
echo "usage: $(basename "$0") [mount | umount | remount | check | orphan]" \
"(default: mount)" >&2
}
@alexpark07
alexpark07 / mount-ram.sh
Created October 8, 2016 23:21 — forked from koshigoe/mount-ram.sh
Like tmpfs in Mac OSX
#!/bin/sh
# This program has two feature.
#
# 1. Create a disk image on RAM.
# 2. Mount that disk image.
#
# Usage:
# $0 <dir> <size>
#
http://vdisk.weibo.com/s/annw3IyXNHGMM/1408963206
import json
msg = 'json here'
print json.dumps(json.loads(msg), indent=4, sort_keys=True)