-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.aliases
More file actions
42 lines (38 loc) · 1.49 KB
/
Copy path.aliases
File metadata and controls
42 lines (38 loc) · 1.49 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
# Aliases
alias ll='ls -lFh'
alias la='ls -A'
alias l='ls -CF'
alias mv='mv -i $*'
alias th='thunar .'
alias vim='nvim'
alias poogle='ping google.com'
alias t='tmux attach || tmux'
alias skyrock="mpv http://www.skyrock.fm/stream.php/frequenceradio_128mp3.mp3"
alias git='LANG=en_US.UTF-8 git'
alias rm='echo "This is not the command you are looking for."; false'
alias copy='xclip -selection clipboard'
alias nomachine='/usr/NX/bin/nxplayer'
alias drawio='chromium --app=http://draw.io'
alias grafana='chromium --app=https://grafana.ethibox.fr'
alias toggl='chromium --app=https://toggl.com/app/timer'
alias steam='steam -system-composer'
monitor() { watch -n1 -t "lsof -i -n | awk '{print \$1, \$2, \$9}' | column -t"; }
gi() { curl -L "https://www.gitignore.io/api/$@"; }
yt-dlp-mp3() { yt-dlp $1 --extract-audio --audio-format mp3; }
drm() { docker rm $(docker ps -qf status=exited) 2> /dev/null; }
dpid() { docker ps -f id=$(grep -o "[0-9a-f]\{64\}" /proc/$1/cgroup | head -n 1); }
drmi() { docker rmi $(docker images --no-trunc | grep none | awk '{print $3 }') > /dev/null 2>&1; }
dpa() { docker ps -a; }
whitespace() { sed -i 's/[[:space:]]*$//' $1; }
timestamp() { date -d @$1; }
stopwatch(){
date1=`date +%s`;
while true; do
echo -ne "$(date -u --date @$((`date +%s` - $date1)) +%H:%M:%S)\r";
sleep 0.1
done
}
similarweb() {
curl -s -H "x-rapidapi-key: $RAPIDAPI_KEY" "https://similar-web.p.rapidapi.com/get-analysis?domain=$1" \
| jq -r '(.GlobalRank.Rank // 0)' | numfmt --grouping
}