-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.bash_aliases
17866 lines (15344 loc) · 698 KB
/
.bash_aliases
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/parallel -j+32 --shebang-wrap --pipe /bin/bash
# enable color support of ls and also add handy aliases
#if [ -x /usr/bin/dircolors ]; then
# test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors
#alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
bigprograms="dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n"
#fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
#alias df='df -h'
alias ls='ls --color=auto -b'
alias lm="ls --color=auto -mb"
alias li="ls --color=auto -ib"
alias lsn="ls --color=auto -nb"
alias lb="ls --color=auto -b"
alias lla="ls --color=auto -lab"
alias lsh="ls --color=auto -shb"
alias lsha="ls --color=auto -shab"
alias llsha="ls --color=auto -lshab"
alias lA="ls --color=auto -Ab"
alias lg="ls --color=auto -gb"
alias lo="ls --color=auto -ob"
alias lo="ls --color=auto -ob"
alias llauthor="ls --color=auto -lb --author"
alias lx="ls -b --color=auto -xb"
alias lssize="ls -b --sort=size --color=auto"
alias lstime="ls -b --sort=time --color=auto"
alias lsversion="ls -b --sort=version --color=auto"
alias lss="ls -sb --color=auto"
alias lst="ls -tb --color=auto"
alias lsv="ls -vb --color=auto"
alias lstime="ls -l --time-style=+%H:%M:%D"
alias lstimefull="ls -l --time-style=full-iso"
alias lstimelong="ls -l --time-style=long-iso"
alias lstimeiso="ls -l --time-style=iso"
#alias lstimelocale="ls -l --time-style=locale"
alias lstimeD="ls -l --time-style=+%H:%M:%S:%D"
alias lstimefull="ls --full-time"
alias spider="wget --spider -r $1"
alias reloadb='source ~/.bashrc'
alias reloada='source ~/.bash_aliases'
alias reloade='source ~/.bash_exports'
alias reloadf='source ~/.bash_func'
alias ..='cd ..'
alias ...='cd ../../'
alias ....='cd ../../../'
alias .....='cd ../../../../'
alias .4='cd ../../../../'
alias .5='cd ../../../../..'
alias cd...='cd ../../'
alias cd....='cd ../../../'
alias cd.....='cd ../../../../'
alias cd.4='cd ../../../../'
alias cd.5='cd ../../../../../'
alias sshdiplogs='grep "Failed password for" /var/log/auth.log | grep -Po "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+" \| sort | uniq -c'
alias ls...='ls ../../'
alias ls....='ls ../../../'
alias ls.....='ls ../../../../'
alias ls.4='ls ../../../../'
alias ls.5='ls ../../../../..'
alias timer='date1=`date +%s`; while true; do echo -ne "$(date -u --date @$((`date +%s` - $date1)) +%H:%M:%S)\r";done'
alias ls='ls -GFh'
alias png2ico="/usr/bin/convert -resize x16 -gravity center -crop 16x16+0+0 input.png -flatten -colors 256 -background transparent output/favicon.ico"
alias lsdroot="bash /mnt/HDD/Programs/lsdroot.sh"
alias lsdusr="bash /mnt/HDD/Programs/lsdusr.sh"
alias lsd="echo Ubuntu|lolcat -a -d 500"
alias lsdrep="bash /mnt/HDD/Programs/lsdrep.sh"
alias lsdtrain='sl |lolcat'
alias lsdtrain1='sl --help|lolcat'
alias christmas="bash /mnt/HDD/programs/lsdcriss.sh"
alias christmaswindow="/mnt/HDD/Programs/lsdchristlist.sh"
alias lsdchrist="bash /mnt/HDD/Programs/lsdcriss.sh"
alias lsdchristlist="bash /mnt/HDD/Programs/lsdchristlist.sh"
alias lsdfix='echo |lolcat -a -d 2'
alias lsdfish='asciiquarium | lolcat'
alias lsdquarium='asciiquarium | lolcat'
alias lsdping='ping 192.168.1.1|lolcat '
alias lsdls='ls |lolcat'
alias fucking="sudo"
alias applesucks="while true; do echo $red apple $green is a $blue $(bitch); done"
alias applesuck="while true; do echo $red apple $green is a $blue $(bitch); done"
alias gitr='for x in $(find . -type d) ; do if [ -d "${x}/.git" ] ; then cd "${x}" ; origin="$(git config --get remote.origin.url)" ; cd - 1>/dev/null; echo git submodule add "${origin}" "${x}" ; fi ; done'
alias gitrs='for x in $(find . -type d) ; do if [ -d "${x}/.git" ] ; then cd "${x}" ; origin="$(git config --get remote.origin.url)" ; cd - 1>/dev/null; git submodule add "${origin}" "${x}" ; fi ; done'
alias googlecloud='gcloud compute --project "studioso-node-server" ssh --zone "us-central1-f" studiosodevelopment@bot'
alias cgooglecloud='gcloud compute --project "studioso-node-server" ssh --zone "us-central1-f" charlieporth@bot'
alias gcrallwer='gcloud compute --project "studioso-node-server" ssh --zone "us-central1-f" studiosodevepoment@crawller'
alias cbgooglecloud='gcloud compute --project "studioso-node-server" ssh --zone "us-central1-f" charlieporth@bot-1'
alias gnodejs='gcloud compute --project "studioso-node-server" ssh --zone "us-central1-f" studiosodevelopment@nodejs-1-vm'
alias grandma='ssh grandma'
alias tegra-ubuntu='ssh tegra-ubuntu'
alias ubuntuserver='ssh ubuntuserver'
alias hex="cat /dev/random | hexdump"
alias defcon="wget -q http://www.defconwarningsystem.com/current/defcon.jpg && /usr/bin/ascii ./defcon.jpg && rm -rf ./defcon.jpg"
#Aliases that do things
alias ip='ipconfig getifaddr en0'
alias ipext='curl -s http://checkip.dyndns.org/ | grep -o '[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*.[0-9]*''
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
#alias ll='ls -AlhGrti'
HOST='hostname'
alias cd..="cd .."
alias flushdns="dscacheutil -flushcache"
#alias ls='ls --color=auto'alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
#alias la='ls -a'
# install colordiff package :)
#alias diff='colordiff'
alias ports='netstat -tulanp'
#alias apt-get="sudo apt-get"
alias updatey="sudo apt-get --yes"
alias bigfiles='du -hsx * | sort -rh | head -11'
alias top-commands='history | awk "{print $2}" | awk "{print $1}" |sort|uniq -c | sort -rn | head -10'
alias tu='top -o cpu' #cpu
alias tm='top -o vsize' #memory
alias startg="gcloud compute instances start bot"
alias stopg="gcloud compute instances stop bot "
## pass options to free ##
alias meminfo='free -m -l -t'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
## get top process eating memory
alias psmem='ps auxf | sort -nr -k 4'
alias psmem10='ps auxf | sort -nr -k 4 | head -10'
## get top process eating cpu ##
alias pscpu='ps auxf | sort -nr -k 3'
alias pscpu10='ps auxf | sort -nr -k 3 | head -10'
## Get server cpu info ##
alias cpuinfo='lscpu'
## older system use /proc/cpuinfo ##
##alias cpuinfo='less /proc/cpuinfo' ##
## get GPU ram on desktop / laptop##
alias gpumeminfo='grep -i --color memory /var/log/Xorg.0.log'
alias cp='cp -i'
alias rm='rm -i'
alias mv='mv -i'
export G='G'
export o='o'
export g='g'
export l='l'
export e='e'
alias google='echo -e $blue$G$red$o$yellow$o$blue$g$green$l$red$e$nc is better than $white apple$nc'
alias star='echo ★ |lo︎cat -a -d 500'
alias tm='echo ™ |lolcat -a -d 500'
alias copyright='echo ©® |lolcat -a -d 500'
alias lucky1='echo ♧ ♣ |lolcat -a -d 500'
alias irish1='echo ♧ ♣ |lolcat -a -d 500'
alias male='echo ♂ |lolcat -a -d 500'
alias female='echo ♀ |lolcat -a -d 500'
alias commu='echo ☭ |lolcat -a -d 500'
alias emt='echo |lolcat -a -d 500'
alias emt='echo ☤ |lolcat -a -d 500'
alias cross='echo ✝ |lolcat -a -d 500'
alias warning='echo |lolcat -a -d 500'
alias radioacive='echo ☢' |lolcat -a -d 500
alias ~="cd ~" # ~: Go Home
alias cputemp='sensors | grep Core'
alias makepass='openssl rand -base64 32'
# Show Mounted info
alias mountedinfo='df -h'
#chmod train
alias mx='chmod a+x'
alias 000='chmod 000'
alias 400='chmod 400'
alias 644='chmod 644'
alias 755='chmod 755'
alias please="sudo !!"
# File size
alias fs="stat -f \"%z bytes\""
alias trimcopy="tr -d '\n' | pbcopy"
alias ls="ls --color=auto -b"
alias lm="ls --color=auto -m"
alias coolclock='watch -t -n1 "date +%T| figlet"'
alias cornerclock="while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-29));date;tput rc;done &"
alias extip=" curl -s ipinfo.io/ip"
alias ipext=" curl -s ipinfo.io/ip"
alias loca="parallel -j32 --semaphore bash | timeout 3 whereami"
alias llll="last -2 --time-format notime | grep -e 'ubuntu\|logged in\|pts/*\|tty*' | sed -n '2p' | grep -e 'ubuntu\|logged in\|pts/*\|tty*' | awk '{print $3}'"
alias lll="last -2 -R -w | sed -n '2p' | cut -c 20- "
alias geo="whereami --f human "
alias disk="df -h | grep /dev/root"
alias disk1="df -h | grep /dev/sda"
alias matrix1='tr -c "[:digit:]" " " < /dev/urandom | dd cbs=$COLUMNS conv=unblock | GREP_COLOR="1;32" grep --color "[^ ]"'
#alias matrix2="perl -e '$|++; while (1) { print " " x (rand(35) + 1), int(rand(2)) }'"
#alias matrix3="perl -e '$|++; while (1) { print " " x (rand(35) + 1), int(rand(10)) }'"
alias cracking='while [ true ]; do head -n 100 /dev/urandom; sleep .1; done | hexdump -C | grep "ca fe"'
alias cracking2='cat /dev/urandom | hexdump -C | grep "ca fe"'
alias cracking3='cat /dev/urandom | hexdump -C'
alias cracking4="cat /dev/random | hexdump"
alias cracking5="cat /dev/random | hexdump -b"
alias cracking6="cat /dev/random | hexdump -c"
alias cracking7="cat /dev/random | hexdump -d"
alias cracking4='cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)'
alias crackingRandom="cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)"
alias crackingR="cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)"
alias crackingr="cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)"
alias crackingrandom="cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)"
alias loading='for i in {0..600}; do echo $i; sleep 1; done | dialog --gauge "Install..." 6 40'
alias hide2="base32"
alias hide4="base64"
alias hide1="rev"
alias hide2d="base32 --decode"
alias hide4d="base64 --decode"
alias hide1="rev"
alias loading1='for i in `seq 0 100`;do timeout 6 dialog --gauge "Install..." 6 40 "$i";done'
alias loading2='j=0;while true; do let j=$j+1; for i in $(seq 0 20 100); do echo $i;sleep 1; done | dialog --gauge "Install part $j : `sed $(perl -e "print int rand(99999)")"q;d" /usr/share/dict/words`" 6 40;done'
alias macaddressgen="date; cat /proc/interrupts) | md5sum | sed -r 's/^(.{10}).*$/\1/; s/([0-9a-f]{2})/\1:/g; s/:$//;"
alias whyismynetowrkslow="sudo nethogs -p eth0"
alias cpusaver="taskset -c 0 "
alias finddups="find -type f -exec md5sum '{}' ';' | sort | uniq --all-repeated=separate -w 33 | cut -c 35-"
alias findandrmdups="find -type f -exec md5sum '{}' ';' -delete| sort | uniq --all-repeated=separate -w 33 | cut -c 35- "
alias wifiqrcode='qrencode -s 7 -o qr-wifi.png "WIFI:S:$(zenity --entry --text="Network name (SSID)" --title="Create WiFi QR");T:WPA;P:$(zenity --password --title="Wifi Password");;"'
alias lastreboot='who -b'
alias ln="ln -r"
alias quit="exit"
# CTP INSTALL -- DO NOT REMOVE THIS UNLESS YOU PLAN ON REMOVING INSTALL AND REINSTALLING
#!/bin/bash
# enable color support of ls and also add handy aliases
#if [ -x /usr/bin/dircolors ]; then
# test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors
#alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
bigprograms="dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n"
#fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
#alias df='df -h'
alias ls='ls --color=auto -b'
alias lm="ls --color=auto -mb"
alias li="ls --color=auto -ib"
alias lsn="ls --color=auto -nb"
alias lb="ls --color=auto -b"
alias lla="ls --color=auto -lab"
alias lsh="ls --color=auto -shb"
alias lsha="ls --color=auto -shab"
alias llsha="ls --color=auto -lshab"
alias lA="ls --color=auto -Ab"
alias lg="ls --color=auto -gb"
alias lo="ls --color=auto -ob"
alias lo="ls --color=auto -ob"
alias llauthor="ls --color=auto -lb --author"
alias lx="ls -b --color=auto -xb"
alias lssize="ls -b --sort=size --color=auto"
alias lstime="ls -b --sort=time --color=auto"
alias lsversion="ls -b --sort=version --color=auto"
alias lss="ls -sb --color=auto"
alias lst="ls -tb --color=auto"
alias lsv="ls -vb --color=auto"
alias lstime="ls -l --time-style=+%H:%M:%D"
alias lstimefull="ls -l --time-style=full-iso"
alias lstimelong="ls -l --time-style=long-iso"
alias lstimeiso="ls -l --time-style=iso"
#alias lstimelocale="ls -l --time-style=locale"
alias lstimeD="ls -l --time-style=+%H:%M:%S:%D"
alias lstimefull="ls --full-time"
alias spider="wget --spider -r $1"
alias reloadb='source ~/.bashrc'
alias reloada='source ~/.bash_aliases'
alias reloade='source ~/.bash_exports'
alias reloadf='source ~/.bash_func'
alias ..='cd ..'
alias ...='cd ../../'
alias ....='cd ../../../'
alias .....='cd ../../../../'
alias .4='cd ../../../../'
alias .5='cd ../../../../..'
alias cd...='cd ../../'
alias cd....='cd ../../../'
alias cd.....='cd ../../../../'
alias cd.4='cd ../../../../'
alias cd.5='cd ../../../../../'
alias sshdiplogs='grep "Failed password for" /var/log/auth.log | grep -Po "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+" \| sort | uniq -c'
alias ls...='ls ../../'
alias ls....='ls ../../../'
alias ls.....='ls ../../../../'
alias ls.4='ls ../../../../'
alias ls.5='ls ../../../../..'
alias timer='date1=`date +%s`; while true; do echo -ne "$(date -u --date @$((`date +%s` - $date1)) +%H:%M:%S)\r";done'
alias ls='ls -GFh'
alias png2ico="/usr/bin/convert -resize x16 -gravity center -crop 16x16+0+0 input.png -flatten -colors 256 -background transparent output/favicon.ico"
alias fucking="sudo"
alias gitr='for x in $(find . -type d) ; do if [ -d "${x}/.git" ] ; then cd "${x}" ; origin="$(git config --get remote.origin.url)" ; cd - 1>/dev/null; echo git submodule add "${origin}" "${x}" ; fi ; done'
alias gitrs='for x in $(find . -type d) ; do if [ -d "${x}/.git" ] ; then cd "${x}" ; origin="$(git config --get remote.origin.url)" ; cd - 1>/dev/null; git submodule add "${origin}" "${x}" ; fi ; done'
alias hex="cat /dev/random | hexdump"
alias defcon="wget -q http://www.defconwarningsystem.com/current/defcon.jpg && /usr/bin/ascii ./defcon.jpg && rm -rf ./defcon.jpg"
#Aliases that do things
alias ip='ipconfig getifaddr en0'
alias ipext='curl -s http://checkip.dyndns.org/ | grep -o '[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*.[0-9]*''
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
#alias ll='ls -AlhGrti'
HOST='hostname'
alias cd..="cd .."
alias flushdns="dscacheutil -flushcache"
#alias ls='ls --color=auto'alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
#alias la='ls -a'
# install colordiff package :)
#alias diff='colordiff'
alias ports='netstat -tulanp'
#alias apt-get="sudo apt-get"
alias updatey="sudo apt-get --yes"
alias bigfiles='du -hsx * | sort -rh | head -11'
alias top-commands='history | awk "{print $2}" | awk "{print $1}" |sort|uniq -c | sort -rn | head -10'
alias tu='top -o cpu' #cpu
alias tm='top -o vsize' #memory
alias startg="gcloud compute instances start bot"
alias stopg="gcloud compute instances stop bot "
## pass options to free ##
alias meminfo='free -m -l -t'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
## get top process eating memory
alias psmem='ps auxf | sort -nr -k 4'
alias psmem10='ps auxf | sort -nr -k 4 | head -10'
## get top process eating cpu ##
alias pscpu='ps auxf | sort -nr -k 3'
alias pscpu10='ps auxf | sort -nr -k 3 | head -10'
## Get server cpu info ##
alias cpuinfo='lscpu'
## older system use /proc/cpuinfo ##
##alias cpuinfo='less /proc/cpuinfo' ##
## get GPU ram on desktop / laptop##
alias gpumeminfo='grep -i --color memory /var/log/Xorg.0.log'
alias cp='cp -i'
alias rm='rm -i'
alias mv='mv -i'
export G='G'
export o='o'
export g='g'
export l='l'
export e='e'
alias google='echo -e $blue$G$red$o$yellow$o$blue$g$green$l$red$e$nc is better than $white apple$nc'
alias star='echo ★ |lo︎cat -a -d 500'
alias tm='echo ™ |lolcat -a -d 500'
alias copyright='echo ©® |lolcat -a -d 500'
alias lucky1='echo ♧ ♣ |lolcat -a -d 500'
alias irish1='echo ♧ ♣ |lolcat -a -d 500'
alias male='echo ♂ |lolcat -a -d 500'
alias female='echo ♀ |lolcat -a -d 500'
alias commu='echo ☭ |lolcat -a -d 500'
alias emt='echo |lolcat -a -d 500'
alias emt='echo ☤ |lolcat -a -d 500'
alias cross='echo ✝ |lolcat -a -d 500'
alias warning='echo |lolcat -a -d 500'
alias radioacive='echo ☢' |lolcat -a -d 500
alias ~="cd ~" # ~: Go Home
alias cputemp='sensors | grep Core'
alias makepass='openssl rand -base64 32'
# Show Mounted info
alias mountedinfo='df -h'
#chmod train
alias mx='chmod a+x'
alias 000='chmod 000'
alias 400='chmod 400'
alias 644='chmod 644'
alias 755='chmod 755'
alias please="sudo !!"
# File size
alias fs="stat -f \"%z bytes\""
alias trimcopy="tr -d '\n' | pbcopy"
alias ls="ls --color=auto -b"
alias lm="ls --color=auto -m"
alias coolclock='watch -t -n1 "date +%T| figlet"'
alias cornerclock="while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-29));date;tput rc;done &"
alias extip=" curl -s ipinfo.io/ip"
alias ipext=" curl -s ipinfo.io/ip"
alias loca=" timeout 3 whereami"
alias llll="last -2 --time-format notime | grep -e 'ubuntu\|logged in\|pts/*\|tty*' | sed -n '2p' | grep -e 'ubuntu\|logged in\|pts/*\|tty*' | awk '{print $3}'"
alias lll="last -2 -R -w | sed -n '2p' | cut -c 20- "
alias geo="whereami --f human "
alias disk="df -h | grep /dev/root"
alias disk1="df -h | grep /dev/sda"
alias matrix1='tr -c "[:digit:]" " " < /dev/urandom | dd cbs=$COLUMNS conv=unblock | GREP_COLOR="1;32" grep --color "[^ ]"'
#alias matrix2="perl -e '$|++; while (1) { print " " x (rand(35) + 1), int(rand(2)) }'"
#alias matrix3="perl -e '$|++; while (1) { print " " x (rand(35) + 1), int(rand(10)) }'"
alias cracking='while [ true ]; do head -n 100 /dev/urandom; sleep .1; done | hexdump -C | grep "ca fe"'
alias cracking2='cat /dev/urandom | hexdump -C | grep "ca fe"'
alias cracking3='cat /dev/urandom | hexdump -C'
alias cracking4="cat /dev/random | hexdump"
alias cracking5="cat /dev/random | hexdump -b"
alias cracking6="cat /dev/random | hexdump -c"
alias cracking7="cat /dev/random | hexdump -d"
alias cracking4='cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)'
alias crackingRandom="cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)"
alias crackingR="cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)"
alias crackingr="cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)"
alias crackingrandom="cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)"
alias loading='for i in {0..600}; do echo $i; sleep 1; done | dialog --gauge "Install..." 6 40'
alias hide2="base32"
alias hide4="base64"
alias hide1="rev"
alias hide2d="base32 --decode"
alias hide4d="base64 --decode"
alias hide1="rev"
alias loading1='for i in `seq 0 100`;do timeout 6 dialog --gauge "Install..." 6 40 "$i";done'
alias loading2='j=0;while true; do let j=$j+1; for i in $(seq 0 20 100); do echo $i;sleep 1; done | dialog --gauge "Install part $j : `sed $(perl -e "print int rand(99999)")"q;d" /usr/share/dict/words`" 6 40;done'
alias macaddressgen="date; cat /proc/interrupts) | md5sum | sed -r 's/^(.{10}).*$/\1/; s/([0-9a-f]{2})/\1:/g; s/:$//;"
alias whyismynetowrkslow="sudo nethogs -p eth0"
alias cpusaver="taskset -c 0 "
alias finddups="find -type f -exec md5sum '{}' ';' | sort | uniq --all-repeated=separate -w 33 | cut -c 35-"
alias findandrmdups="find -type f -exec md5sum '{}' ';' -delete| sort | uniq --all-repeated=separate -w 33 | cut -c 35- "
alias wifiqrcode='qrencode -s 7 -o qr-wifi.png "WIFI:S:$(zenity --entry --text="Network name (SSID)" --title="Create WiFi QR");T:WPA;P:$(zenity --password --title="Wifi Password");;"'
alias lastreboot='who -b'
alias ln="ln -r"
alias quit="exit"
alias health-check-log="tail -f $log/*health-check.log"
alias hc-log="health-check-log"
alias doh-log="sudo tail -f $log/nginx/doh-*.log"
alias bp-log="sudo tail -f $log/nginx/default-blockpage-*.log"
alias default-log="sudo tail -f $log/nginx/default-*.log"
alias blockpage-log="bp-log"
alias nginx-log="sudo tail -f $log/nginx/*.log"
alias nginx-rfc-log="tail -f $log/nginx-dns-rfc/*.log"
alias ctp-dns-log="tail -f $log/ctp-dns/*.log"
alias ctp-yt-log="tail -f $log/ctp-youtube-blocker/*.log"
alias ctp-yt-blocker-log="ctp-yt-log"
alias ctp-youtube-log="ctp-yt-log"
alias ctp-youtube-blocker-log="ctp-yt-log"
alias ctp-yt-ttl-log="tail -f $log/ctp-yt-ttl-dns/*.log"
alias ctp-youtube-ttl-log="ctp-yt-ttl-log"
alias dot-log="ctp-dns-log"
alias doq-log="ctp-dns-log"
#!/bin/bash
# enable color support of ls and also add handy aliases
#if [ -x /usr/bin/dircolors ]; then
# test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors
#alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
bigprograms="dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n"
#fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
#alias df='df -h'
alias ls='ls --color=auto -b'
alias lm="ls --color=auto -mb"
alias li="ls --color=auto -ib"
alias lsn="ls --color=auto -nb"
alias lb="ls --color=auto -b"
alias lla="ls --color=auto -lab"
alias lsh="ls --color=auto -shb"
alias lsha="ls --color=auto -shab"
alias llsha="ls --color=auto -lshab"
alias lA="ls --color=auto -Ab"
alias lg="ls --color=auto -gb"
alias lo="ls --color=auto -ob"
alias lo="ls --color=auto -ob"
alias llauthor="ls --color=auto -lb --author"
alias lx="ls -b --color=auto -xb"
alias lssize="ls -b --sort=size --color=auto"
alias lstime="ls -b --sort=time --color=auto"
alias lsversion="ls -b --sort=version --color=auto"
alias lss="ls -sb --color=auto"
alias lst="ls -tb --color=auto"
alias lsv="ls -vb --color=auto"
alias lstime="ls -l --time-style=+%H:%M:%D"
alias lstimefull="ls -l --time-style=full-iso"
alias lstimelong="ls -l --time-style=long-iso"
alias lstimeiso="ls -l --time-style=iso"
#alias lstimelocale="ls -l --time-style=locale"
alias lstimeD="ls -l --time-style=+%H:%M:%S:%D"
alias lstimefull="ls --full-time"
alias spider="wget --spider -r $1"
alias reloadb='source ~/.bashrc'
alias reloada='source ~/.bash_aliases'
alias reloade='source ~/.bash_exports'
alias reloadf='source ~/.bash_func'
alias ..='cd ..'
alias ...='cd ../../'
alias ....='cd ../../../'
alias .....='cd ../../../../'
alias .4='cd ../../../../'
alias .5='cd ../../../../..'
alias cd...='cd ../../'
alias cd....='cd ../../../'
alias cd.....='cd ../../../../'
alias cd.4='cd ../../../../'
alias cd.5='cd ../../../../../'
alias sshdiplogs='grep "Failed password for" /var/log/auth.log | grep -Po "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+" \| sort | uniq -c'
alias ls...='ls ../../'
alias ls....='ls ../../../'
alias ls.....='ls ../../../../'
alias ls.4='ls ../../../../'
alias ls.5='ls ../../../../..'
alias timer='date1=`date +%s`; while true; do echo -ne "$(date -u --date @$((`date +%s` - $date1)) +%H:%M:%S)\r";done'
alias ls='ls -GFh'
alias png2ico="/usr/bin/convert -resize x16 -gravity center -crop 16x16+0+0 input.png -flatten -colors 256 -background transparent output/favicon.ico"
alias fucking="sudo"
alias gitr='for x in $(find . -type d) ; do if [ -d "${x}/.git" ] ; then cd "${x}" ; origin="$(git config --get remote.origin.url)" ; cd - 1>/dev/null; echo git submodule add "${origin}" "${x}" ; fi ; done'
alias gitrs='for x in $(find . -type d) ; do if [ -d "${x}/.git" ] ; then cd "${x}" ; origin="$(git config --get remote.origin.url)" ; cd - 1>/dev/null; git submodule add "${origin}" "${x}" ; fi ; done'
alias hex="cat /dev/random | hexdump"
alias defcon="wget -q http://www.defconwarningsystem.com/current/defcon.jpg && /usr/bin/ascii ./defcon.jpg && rm -rf ./defcon.jpg"
#Aliases that do things
alias ip='ipconfig getifaddr en0'
alias ipext='curl -s http://checkip.dyndns.org/ | grep -o '[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*.[0-9]*''
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
#alias ll='ls -AlhGrti'
HOST='hostname'
alias cd..="cd .."
alias flushdns="dscacheutil -flushcache"
#alias ls='ls --color=auto'alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
#alias la='ls -a'
# install colordiff package :)
#alias diff='colordiff'
alias ports='netstat -tulanp'
#alias apt-get="sudo apt-get"
alias updatey="sudo apt-get --yes"
alias bigfiles='du -hsx * | sort -rh | head -11'
alias top-commands='history | awk "{print $2}" | awk "{print $1}" |sort|uniq -c | sort -rn | head -10'
alias tu='top -o cpu' #cpu
alias tm='top -o vsize' #memory
alias startg="gcloud compute instances start bot"
alias stopg="gcloud compute instances stop bot "
## pass options to free ##
alias meminfo='free -m -l -t'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
## get top process eating memory
alias psmem='ps auxf | sort -nr -k 4'
alias psmem10='ps auxf | sort -nr -k 4 | head -10'
## get top process eating cpu ##
alias pscpu='ps auxf | sort -nr -k 3'
alias pscpu10='ps auxf | sort -nr -k 3 | head -10'
## Get server cpu info ##
alias cpuinfo='lscpu'
## older system use /proc/cpuinfo ##
##alias cpuinfo='less /proc/cpuinfo' ##
## get GPU ram on desktop / laptop##
alias gpumeminfo='grep -i --color memory /var/log/Xorg.0.log'
alias cp='cp -i'
alias rm='rm -i'
alias mv='mv -i'
export G='G'
export o='o'
export g='g'
export l='l'
export e='e'
alias google='echo -e $blue$G$red$o$yellow$o$blue$g$green$l$red$e$nc is better than $white apple$nc'
alias star='echo ★ |lo︎cat -a -d 500'
alias tm='echo ™ |lolcat -a -d 500'
alias copyright='echo ©® |lolcat -a -d 500'
alias lucky1='echo ♧ ♣ |lolcat -a -d 500'
alias irish1='echo ♧ ♣ |lolcat -a -d 500'
alias male='echo ♂ |lolcat -a -d 500'
alias female='echo ♀ |lolcat -a -d 500'
alias commu='echo ☭ |lolcat -a -d 500'
alias emt='echo |lolcat -a -d 500'
alias emt='echo ☤ |lolcat -a -d 500'
alias cross='echo ✝ |lolcat -a -d 500'
alias warning='echo |lolcat -a -d 500'
alias radioacive='echo ☢' |lolcat -a -d 500
alias ~="cd ~" # ~: Go Home
alias cputemp='sensors | grep Core'
alias makepass='openssl rand -base64 32'
# Show Mounted info
alias mountedinfo='df -h'
#chmod train
alias mx='chmod a+x'
alias 000='chmod 000'
alias 400='chmod 400'
alias 644='chmod 644'
alias 755='chmod 755'
alias please="sudo !!"
# File size
alias fs="stat -f \"%z bytes\""
alias trimcopy="tr -d '\n' | pbcopy"
alias ls="ls --color=auto -b"
alias lm="ls --color=auto -m"
alias coolclock='watch -t -n1 "date +%T| figlet"'
alias cornerclock="while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-29));date;tput rc;done &"
alias extip=" curl -s ipinfo.io/ip"
alias ipext=" curl -s ipinfo.io/ip"
alias loca=" timeout 3 whereami"
alias llll="last -2 --time-format notime | grep -e 'ubuntu\|logged in\|pts/*\|tty*' | sed -n '2p' | grep -e 'ubuntu\|logged in\|pts/*\|tty*' | awk '{print $3}'"
alias lll="last -2 -R -w | sed -n '2p' | cut -c 20- "
alias geo="whereami --f human "
alias disk="df -h | grep /dev/root"
alias disk1="df -h | grep /dev/sda"
alias matrix1='tr -c "[:digit:]" " " < /dev/urandom | dd cbs=$COLUMNS conv=unblock | GREP_COLOR="1;32" grep --color "[^ ]"'
#alias matrix2="perl -e '$|++; while (1) { print " " x (rand(35) + 1), int(rand(2)) }'"
#alias matrix3="perl -e '$|++; while (1) { print " " x (rand(35) + 1), int(rand(10)) }'"
alias cracking='while [ true ]; do head -n 100 /dev/urandom; sleep .1; done | hexdump -C | grep "ca fe"'
alias cracking2='cat /dev/urandom | hexdump -C | grep "ca fe"'
alias cracking3='cat /dev/urandom | hexdump -C'
alias cracking4="cat /dev/random | hexdump"
alias cracking5="cat /dev/random | hexdump -b"
alias cracking6="cat /dev/random | hexdump -c"
alias cracking7="cat /dev/random | hexdump -d"
alias cracking4='cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)'
alias crackingRandom="cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)"
alias crackingR="cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)"
alias crackingr="cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)"
alias crackingrandom="cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)"
alias loading='for i in {0..600}; do echo $i; sleep 1; done | dialog --gauge "Install..." 6 40'
alias hide2="base32"
alias hide4="base64"
alias hide1="rev"
alias hide2d="base32 --decode"
alias hide4d="base64 --decode"
alias hide1="rev"
alias loading1='for i in `seq 0 100`;do timeout 6 dialog --gauge "Install..." 6 40 "$i";done'
alias loading2='j=0;while true; do let j=$j+1; for i in $(seq 0 20 100); do echo $i;sleep 1; done | dialog --gauge "Install part $j : `sed $(perl -e "print int rand(99999)")"q;d" /usr/share/dict/words`" 6 40;done'
alias macaddressgen="date; cat /proc/interrupts) | md5sum | sed -r 's/^(.{10}).*$/\1/; s/([0-9a-f]{2})/\1:/g; s/:$//;"
alias whyismynetowrkslow="sudo nethogs -p eth0"
alias cpusaver="taskset -c 0 "
alias finddups="find -type f -exec md5sum '{}' ';' | sort | uniq --all-repeated=separate -w 33 | cut -c 35-"
alias findandrmdups="find -type f -exec md5sum '{}' ';' -delete| sort | uniq --all-repeated=separate -w 33 | cut -c 35- "
alias wifiqrcode='qrencode -s 7 -o qr-wifi.png "WIFI:S:$(zenity --entry --text="Network name (SSID)" --title="Create WiFi QR");T:WPA;P:$(zenity --password --title="Wifi Password");;"'
alias lastreboot='who -b'
alias ln="ln -r"
alias quit="exit"
alias health-check-log="tail -f $log/*health-check.log"
alias hc-log="health-check-log"
alias doh-log="sudo tail -f $log/nginx/doh-*.log"
alias bp-log="sudo tail -f $log/nginx/default-blockpage-*.log"
alias default-log="sudo tail -f $log/nginx/default-*.log"
alias blockpage-log="bp-log"
alias nginx-log="sudo tail -f $log/nginx/*.log"
alias nginx-rfc-log="tail -f $log/nginx-dns-rfc/*.log"
alias ctp-dns-log="tail -f $log/ctp-dns/*.log"
alias ctp-yt-log="tail -f $log/ctp-youtube-blocker/*.log"
alias ctp-yt-blocker-log="ctp-yt-log"
alias ctp-youtube-log="ctp-yt-log"
alias ctp-youtube-blocker-log="ctp-yt-log"
alias ctp-yt-ttl-log="tail -f $log/ctp-yt-ttl-dns/*.log"
alias ctp-youtube-ttl-log="ctp-yt-ttl-log"
alias dot-log="ctp-dns-log"
alias doq-log="ctp-dns-log"
alias query-youtube="pihole -q r5.sn-uhvcpax0n5-vgql.googlevideo.com"
alias query-yt="query-youtube"
alias query-pihole-yt="query-youtube"
#!/bin/bash
# enable color support of ls and also add handy aliases
#if [ -x /usr/bin/dircolors ]; then
# test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors
#alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
bigprograms="dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n"
#fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
#alias df='df -h'
alias ls='ls --color=auto -b'
alias lm="ls --color=auto -mb"
alias li="ls --color=auto -ib"
alias lsn="ls --color=auto -nb"
alias lb="ls --color=auto -b"
alias lla="ls --color=auto -lab"
alias lsh="ls --color=auto -shb"
alias lsha="ls --color=auto -shab"
alias llsha="ls --color=auto -lshab"
alias lA="ls --color=auto -Ab"
alias lg="ls --color=auto -gb"
alias lo="ls --color=auto -ob"
alias lo="ls --color=auto -ob"
alias llauthor="ls --color=auto -lb --author"
alias lx="ls -b --color=auto -xb"
alias lssize="ls -b --sort=size --color=auto"
alias lstime="ls -b --sort=time --color=auto"
alias lsversion="ls -b --sort=version --color=auto"
alias lss="ls -sb --color=auto"
alias lst="ls -tb --color=auto"
alias lsv="ls -vb --color=auto"
alias lstime="ls -l --time-style=+%H:%M:%D"
alias lstimefull="ls -l --time-style=full-iso"
alias lstimelong="ls -l --time-style=long-iso"
alias lstimeiso="ls -l --time-style=iso"
#alias lstimelocale="ls -l --time-style=locale"
alias lstimeD="ls -l --time-style=+%H:%M:%S:%D"
alias lstimefull="ls --full-time"
alias spider="wget --spider -r $1"
alias reloadb='source ~/.bashrc'
alias reloada='source ~/.bash_aliases'
alias reloade='source ~/.bash_exports'
alias reloadf='source ~/.bash_func'
alias ..='cd ..'
alias ...='cd ../../'
alias ....='cd ../../../'
alias .....='cd ../../../../'
alias .4='cd ../../../../'
alias .5='cd ../../../../..'
alias cd...='cd ../../'
alias cd....='cd ../../../'
alias cd.....='cd ../../../../'
alias cd.4='cd ../../../../'
alias cd.5='cd ../../../../../'
alias sshdiplogs='grep "Failed password for" /var/log/auth.log | grep -Po "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+" \| sort | uniq -c'
alias ls...='ls ../../'
alias ls....='ls ../../../'
alias ls.....='ls ../../../../'
alias ls.4='ls ../../../../'
alias ls.5='ls ../../../../..'
alias timer='date1=`date +%s`; while true; do echo -ne "$(date -u --date @$((`date +%s` - $date1)) +%H:%M:%S)\r";done'
alias ls='ls -GFh'
alias png2ico="/usr/bin/convert -resize x16 -gravity center -crop 16x16+0+0 input.png -flatten -colors 256 -background transparent output/favicon.ico"
alias fucking="sudo"
alias gitr='for x in $(find . -type d) ; do if [ -d "${x}/.git" ] ; then cd "${x}" ; origin="$(git config --get remote.origin.url)" ; cd - 1>/dev/null; echo git submodule add "${origin}" "${x}" ; fi ; done'
alias gitrs='for x in $(find . -type d) ; do if [ -d "${x}/.git" ] ; then cd "${x}" ; origin="$(git config --get remote.origin.url)" ; cd - 1>/dev/null; git submodule add "${origin}" "${x}" ; fi ; done'
alias hex="cat /dev/random | hexdump"
alias defcon="wget -q http://www.defconwarningsystem.com/current/defcon.jpg && /usr/bin/ascii ./defcon.jpg && rm -rf ./defcon.jpg"
#Aliases that do things
alias ip='ipconfig getifaddr en0'
alias ipext='curl -s http://checkip.dyndns.org/ | grep -o '[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*.[0-9]*''
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
#alias ll='ls -AlhGrti'
HOST='hostname'
alias cd..="cd .."
alias flushdns="dscacheutil -flushcache"
#alias ls='ls --color=auto'alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
#alias la='ls -a'
# install colordiff package :)
#alias diff='colordiff'
alias ports='netstat -tulanp'
#alias apt-get="sudo apt-get"
alias updatey="sudo apt-get --yes"
alias bigfiles='du -hsx * | sort -rh | head -11'
alias top-commands='history | awk "{print $2}" | awk "{print $1}" |sort|uniq -c | sort -rn | head -10'
alias tu='top -o cpu' #cpu
alias tm='top -o vsize' #memory
alias startg="gcloud compute instances start bot"
alias stopg="gcloud compute instances stop bot "
## pass options to free ##
alias meminfo='free -m -l -t'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
## get top process eating memory
alias psmem='ps auxf | sort -nr -k 4'
alias psmem10='ps auxf | sort -nr -k 4 | head -10'
## get top process eating cpu ##
alias pscpu='ps auxf | sort -nr -k 3'
alias pscpu10='ps auxf | sort -nr -k 3 | head -10'
## Get server cpu info ##
alias cpuinfo='lscpu'
## older system use /proc/cpuinfo ##
##alias cpuinfo='less /proc/cpuinfo' ##
## get GPU ram on desktop / laptop##
alias gpumeminfo='grep -i --color memory /var/log/Xorg.0.log'
alias cp='cp -i'
alias rm='rm -i'
alias mv='mv -i'
export G='G'
export o='o'
export g='g'
export l='l'
export e='e'
alias google='echo -e $blue$G$red$o$yellow$o$blue$g$green$l$red$e$nc is better than $white apple$nc'
alias star='echo ★ |lo︎cat -a -d 500'
alias tm='echo ™ |lolcat -a -d 500'
alias copyright='echo ©® |lolcat -a -d 500'
alias lucky1='echo ♧ ♣ |lolcat -a -d 500'
alias irish1='echo ♧ ♣ |lolcat -a -d 500'
alias male='echo ♂ |lolcat -a -d 500'
alias female='echo ♀ |lolcat -a -d 500'
alias commu='echo ☭ |lolcat -a -d 500'
alias emt='echo |lolcat -a -d 500'
alias emt='echo ☤ |lolcat -a -d 500'
alias cross='echo ✝ |lolcat -a -d 500'
alias warning='echo |lolcat -a -d 500'
alias radioacive='echo ☢' |lolcat -a -d 500
alias ~="cd ~" # ~: Go Home
alias cputemp='sensors | grep Core'
alias makepass='openssl rand -base64 32'
# Show Mounted info
alias mountedinfo='df -h'
#chmod train
alias mx='chmod a+x'
alias 000='chmod 000'
alias 400='chmod 400'
alias 644='chmod 644'
alias 755='chmod 755'
alias please="sudo !!"
# File size
alias fs="stat -f \"%z bytes\""
alias trimcopy="tr -d '\n' | pbcopy"
alias ls="ls --color=auto -b"
alias lm="ls --color=auto -m"
alias coolclock='watch -t -n1 "date +%T| figlet"'
alias cornerclock="while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-29));date;tput rc;done &"
alias extip=" curl -s ipinfo.io/ip"
alias ipext=" curl -s ipinfo.io/ip"
alias loca=" timeout 3 whereami"
alias llll="last -2 --time-format notime | grep -e 'ubuntu\|logged in\|pts/*\|tty*' | sed -n '2p' | grep -e 'ubuntu\|logged in\|pts/*\|tty*' | awk '{print $3}'"
alias lll="last -2 -R -w | sed -n '2p' | cut -c 20- "
alias geo="whereami --f human "
alias disk="df -h | grep /dev/root"
alias disk1="df -h | grep /dev/sda"
alias matrix1='tr -c "[:digit:]" " " < /dev/urandom | dd cbs=$COLUMNS conv=unblock | GREP_COLOR="1;32" grep --color "[^ ]"'
#alias matrix2="perl -e '$|++; while (1) { print " " x (rand(35) + 1), int(rand(2)) }'"
#alias matrix3="perl -e '$|++; while (1) { print " " x (rand(35) + 1), int(rand(10)) }'"
alias cracking='while [ true ]; do head -n 100 /dev/urandom; sleep .1; done | hexdump -C | grep "ca fe"'
alias cracking2='cat /dev/urandom | hexdump -C | grep "ca fe"'
alias cracking3='cat /dev/urandom | hexdump -C'
alias cracking4="cat /dev/random | hexdump"
alias cracking5="cat /dev/random | hexdump -b"
alias cracking6="cat /dev/random | hexdump -c"
alias cracking7="cat /dev/random | hexdump -d"
alias cracking4='cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)'
alias crackingRandom="cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)"
alias crackingR="cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)"
alias crackingr="cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)"
alias crackingrandom="cat /dev/random | hexdump -C | grep --color=auto $(uuidgen | tr -d '-' | cut -b 1-2)"
alias loading='for i in {0..600}; do echo $i; sleep 1; done | dialog --gauge "Install..." 6 40'
alias hide2="base32"
alias hide4="base64"
alias hide1="rev"
alias hide2d="base32 --decode"
alias hide4d="base64 --decode"
alias hide1="rev"
alias loading1='for i in `seq 0 100`;do timeout 6 dialog --gauge "Install..." 6 40 "$i";done'
alias loading2='j=0;while true; do let j=$j+1; for i in $(seq 0 20 100); do echo $i;sleep 1; done | dialog --gauge "Install part $j : `sed $(perl -e "print int rand(99999)")"q;d" /usr/share/dict/words`" 6 40;done'
alias macaddressgen="date; cat /proc/interrupts) | md5sum | sed -r 's/^(.{10}).*$/\1/; s/([0-9a-f]{2})/\1:/g; s/:$//;"
alias whyismynetowrkslow="sudo nethogs -p eth0"
alias cpusaver="taskset -c 0 "
alias finddups="find -type f -exec md5sum '{}' ';' | sort | uniq --all-repeated=separate -w 33 | cut -c 35-"
alias findandrmdups="find -type f -exec md5sum '{}' ';' -delete| sort | uniq --all-repeated=separate -w 33 | cut -c 35- "
alias wifiqrcode='qrencode -s 7 -o qr-wifi.png "WIFI:S:$(zenity --entry --text="Network name (SSID)" --title="Create WiFi QR");T:WPA;P:$(zenity --password --title="Wifi Password");;"'