-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions_non_used
More file actions
69 lines (64 loc) · 1.45 KB
/
functions_non_used
File metadata and controls
69 lines (64 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#MongoDB functions to start and stop the server
function mongod(){
cd /usr/local/mongodb/bin/ && ./mongod
}
function mongo(){
cd /usr/local/mongodb/bin/ && ./mongo
}
#Log Live Git Command
#https://gist.github.com/tlberglund/3714970
function gitTree(){
while :
do
clear
tree .git
sleep 1
done
}
#Log Live Git Command 1
function loglive(){
while :
do
clear
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $*
sleep 1
done
}
#Log Live Git Command 2
function logliveb(){
while :
do
clear
git --no-pager log -$1 --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
sleep 1
done
}
# lets toss an image onto my server and pbcopy that bitch.
function scpp() {
scp "$1" aurgasm@aurgasm.us:~/paulirish.com/i;
echo "http://paulirish.com/i/$1" | pbcopy;
echo "Copied to clipboard: http://paulirish.com/i/$1"
}
# ssh to local sandBox servers
function blade(){
ssh crac@10.0.1.8
}
function spi(){
ssh pi@10.0.1.9
}
function megatron(){
ssh verik@10.0.1.10
}
function runPlex(){
sudo ./Volumes/Storage/ATV3/PlexConnect/PlexConnect.py
}
# Syntax-highlight JSON strings or files
function json() {
if [ -p /dev/stdin ]; then
# piping, e.g. `echo '{"foo":42}' | json`
python -mjson.tool | pygmentize -l javascript
else
# e.g. `json '{"foo":42}'`
python -mjson.tool <<< "$*" | pygmentize -l javascript
fi
}