about summary refs log tree commit diff
path: root/nix/hosts/caladan/aliases.nix
blob: d65bc14537cf1a1be2b3d90b7f3c0404d1aeb269 (plain)
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
{
  ":q" = "exit";
  ls = "eza";

  # short forms
  tf = "terraform";

  r2help = ''r2 -qq -c "?*~..." --'';
  mosh = "mosh --no-init";
  t = "task";
  tw = "timew";

  ipa = "scutil --nwi"; # more `ip a` like info on macos

  # this can be super nice and super annoying at the same time:
  # ssh = "kitty +kitten ssh";

  ".." = "cd ..";
  "..." = "cd ../..";
  "...." = "cd ../../..";
  "....." = "cd ../../../..";
  "......" = "cd ../../../../..";
  "......." = "cd ../../../../../..";
  "........" = "cd ../../../../../../..";

  grep = "grep --color=auto";
  nix-stray-roots = ''nix-store --gc --print-roots | egrep -v "^(/nix/var|/run/w+-system|{memory)"'';

  delete-empty = "sed -r '/^\s*$/d'";

  holdmybeer = "sudo ";

  servethis = "python3 -m http.server";

  # these are the oh-my-zsh nmap plugin aliases which are nice to have around imho
  nmap_open_ports = "nmap --open";
  nmap_list_interfaces = "nmap --iflist";
  nmap_slow = "sudo nmap -sS -v -T1";
  nmap_fin = "sudo nmap -sF -v";
  nmap_full = "sudo nmap -sS -T4 -PE -PP -PS80,443 -PY -g 53 -A -p1-65535 -v";
  nmap_check_for_firewall = "sudo nmap -sA -p1-65535 -v -T4";
  nmap_ping_through_firewall = "nmap -PS -PA";
  nmap_fast = "nmap -F -T5 --version-light --top-ports 300";
  nmap_detect_versions = "sudo nmap -sV -p1-65535 -O --osscan-guess -T4 -Pn";
  nmap_check_for_vulns = "nmap --script = vuln";
  nmap_full_udp = "sudo nmap -sS -sU -T4 -A -v -PE -PS22,25,80 -PA21,23,80,443,3389 ";
  nmap_traceroute = "sudo nmap -sP -PE -PS22,25,80 -PA21,23,80,3389 -PU -PO --traceroute ";
  nmap_full_with_scripts = "sudo nmap -sS -sU -T4 -A -v -PE -PP -PS21,22,23,25,80,113,31339 -PA80,113,443,10042 -PO --script all ";
  nmap_web_safe_osscan = "sudo nmap -p 80,443 -O -v --osscan-guess --fuzzy ";
  nmap_ping_scan = "nmap -n -sP";

  light = "sudo kitten themes --reload-in=all 3024 Day";
  dark = "sudo kitten themes --reload-in=all Default";
}