Skip to content

Instantly share code, notes, and snippets.

View tpiperatgod's full-sized avatar

Tian Fang tpiperatgod

View GitHub Profile
netstat -n| awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
#!/bin/bash
find ~/.dotfiles/ -maxdepth 1 -name '.*' ! -iname ".*.sw*" ! -path ~/.dotfiles/ ! -path ~/.dotfiles/.git ! -path ~/.dotfiles/dotfiles_install -printf "%f:%p\n" | while IFS=":" read FNAME FPATH
do
ln -svf "$FPATH" $HOME/$FNAME
done
@trevanhetzel
trevanhetzel / fb-album-fetcher.js
Last active July 30, 2022 03:09
Facebook Album Fetcher
/* Descripton: A basic plugin to fetch all albums and associated photos from a Facebook page
* Usage: Simply reference the script and instantiate it
* Example instantiaion:
$(window).load(function () {
albumFetcher({
fbId: "137248356344058",
container: ".photos"
});