Skip to content

Instantly share code, notes, and snippets.

View ShichenLiu's full-sized avatar

Shichen Liu ShichenLiu

View GitHub Profile
;;========================================================
;; Setting User Start
;;========================================================
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(setq user-full-name "Shichen Liu")
#!/usr/bin/swift
import Foundation
let path = NSString(string: "~/Library/Application Support/.ffuserdata").expandingTildeInPath
let data = NSKeyedUnarchiver.unarchiveObject(withFile: path) as! NSDictionary
let mutableData = data.mutableCopy() as! NSMutableDictionary
for (key, value) in mutableData {
if value is NSDate {
@ShichenLiu
ShichenLiu / scripts.sh
Created September 20, 2017 08:38
Linux Useful Scripts
###########################################
# File Size
###########################################
# Show current folder size
du -sh
# Show all files with corresponding size
du -h --max-depth=1