-
Notifications
You must be signed in to change notification settings - Fork 1
/
alf.conf
64 lines (51 loc) · 2.1 KB
/
alf.conf
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
# alf.conf
aa: cat /vagrant/bash/alf-conf/alf.conf
clean: sudo apt autoremove && gem clean && d clean
hard: --volumes
d: docker
ps: ps --format "{{.ID}} {{.Names}}\t{{.Status}} {{.Ports}}"
clean: system prune -f
i: images --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}"
images: images --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}"
r: run -it --rm
rmi: images --format "{{.Repository}}:{{.Tag}}" |grep $1 | xargs docker rmi -f #
rmv: volume ls --format "{{.Name}}" |grep $1 |xargs docker volume rm -f #
v: volume
n: network
dc: docker-compose
ci: -f.ci/docker-compose.yml
ls: config --services
upd: up -d
dfh: df -h |grep sd
g: git
s: status
l: log --all --graph --date=relative --pretty=format:'%h %Cgreen%ad%Creset %Cblue%an%Creset%n %s%n %C(auto)%d%Creset'
ll: log --graph --oneline --decorate --all
c: add . --all && git commit -am
p: push
m: merge
b: branch
co: checkout
pl: pull
ls: ls-tree --full-name --name-only -r HEAD
chmod: update-index --chmod
compare: diff --stat --color $1..HEAD #
datelog: log --pretty=format:'%h %ad%x09%an%x09%s' --date=short
discard: checkout -- . ; git clean -fd
history: log -p
optimize: repack -ad && git gc
remote-delete: push origin --delete
rebuild: commit --allow-empty -m "trigger rebuild" ; git push
rename: branch -m
resolve-ours: checkout --ours . ; git add -u ; git commit -m 'Resolved conflicts with --ours'
resolve-theirs: checkout --theirs . ; git add -u ; git commit -m 'Resolved conflicts with --theirs'
rollback: revert --no-commit $1..HEAD #
hey: tuxi -rq
l: ls -l
ll: ls -la
now-update: echo downloading... && curl -s https://api.github.com/repos/zeit/now-cli/releases/latest | grep "download.*now-linux.gz" | cut -d : -f 2,3 | tr -d \" | wget -qi - && gunzip now-linux.gz && sudo mv now-linux /usr/local/bin/now && now --version
outdated: /usr/lib/update-notifier/apt-check --human-readable && echo "Run 'outdated list' to show upgradable packages"
list: !apt list --upgradable
sad: ssh-add
update: sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove -y
what: alf which