"!!" "!=" ">]" ">:" ">>-" ">>=" ">=>" ">>>" ">-" ">=" "&&&"
"&&" "|||>" "||>" "|>" "|]" "|}" "|=>" "|->" "|=" "||-" "|-"
"||=" "||" ".." ".?" ".=" ".-" "..<" "..." "+++" "+>" "++"
- "[||]" "[<" "[|" "{|" "??" "?." "?=" "?:" "##" "###" "####"
- "#[" "#{" "#=" "#!" "#:" "#_(" "#_" "#?" "#(" ";;" "_|_" "__"
- "~~" "~~>" "~>" "~-" "~@" "$>" "^=" "]#"))
+ "[||]" "[<" "[|" "{|" "?." "?=" "?:" "##" "###" "####" "#["
+ "#{" "#=" "#!" "#:" "#_(" "#_" "#?" "#(" ";;" "_|_" "__" "~~"
+ "~~>" "~>" "~-" "~@" "$>" "^=" "]#"))
(global-ligature-mode t))
#+end_src
*** Emoji
(add-to-list 'org-structure-template-alist '("git" . "src conf :tangle ~/.gitconfig"))
(add-to-list 'org-structure-template-alist '("du" . "src conf :tangle ~/.config/dunst/dunstrc"))
(add-to-list 'org-structure-template-alist '("ro" . "src javascript :tangle ~/.config/rofi/config.rasi"))
- (add-to-list 'org-structure-template-alist '("za" . "src conf :tangle ~/.config/zathura/zathurarc")))
+ (add-to-list 'org-structure-template-alist '("za" . "src conf :tangle ~/.config/zathura/zathurarc"))
+ (add-to-list 'org-structure-template-alist '("ff1" . "src css :tangle ~/.mozilla/firefox/armaan-release/chrome/userChrome.css")))
+ (add-to-list 'org-structure-template-alist '("ff2" . "src css :tangle ~/.mozilla/firefox/armaan-release/chrome/userContent.css")))
#+end_src
** Presentations
#+begin_src emacs-lisp
mv $1.tmp $2
}
#+end_src
+**** Finger
+#+begin_src shell :tangle ~/.config/zsh/zshrc
+ finger() {
+ user=$(echo "$1" | cut -f 1 -d '@')
+ host=$(echo "$1" | cut -f 2 -d '@')
+ echo $user | nc "$host" 79 -N
+ }
+#+end_src
*** Aliases
**** SSH
#+begin_src shell :tangle ~/.config/zsh/zshrc
alias bhoji-drop='ssh -p 23 root@armaanb.net'
- alias catgirl='ssh -p 23 -t root@armaanb.net abduco -a catgirl'
+ alias catgirl='ssh root@armaanb.net -t abduco -A irc catgirl freenode'
+ alias union='ssh 192.168.1.18'
alias tcf='ssh root@204.48.23.68'
alias ngmun='ssh root@157.245.89.25'
alias prox='ssh root@192.168.1.224'
alias cip='curl https://armaanb.net/ip'
alias gps='gpg --keyserver keyserver.ubuntu.com --search-keys'
alias gpp='gpg --keyserver keyserver.ubuntu.com --recv-key'
-#+end_src
-**** Docker
-#+begin_src shell :tangle ~/.config/zsh/zshrc
- alias dc='docker-compose'
- alias dcdu='docker-compose down && docker-compose up -d'
+ alias plan='T=$(mktemp) && \
+ rsync root@armaanb.net:/etc/finger/plan.txt "$T" && \
+ TT=$(mktemp) && \
+ head -n -2 $T > $TT && \
+ vim $TT && \
+ echo "\nLast updated: $(date -R)" >> "$TT" && \
+ rsync "$TT" root@armaanb.net:/etc/finger/plan.txt'
+ alias wttr='curl -s "wttr.in/02445?n" | head -n -3'
#+end_src
**** Other
#+begin_src shell :tangle ~/.config/zsh/zshrc
alias ytmusic="youtube-dl -x --add-metadata --audio-format aac \
--restrict-filenames -o '%(title)s.%(ext)s'"
alias cal="cal -3 --color=auto"
+ alias bc='bc -l'
#+end_src
**** Virtual machines, chroots
#+begin_src shell :tangle ~/.config/zsh/zshrc
set recolor-darkcolor "#ffffff" # fg
set recolor "true"
#+end_src
+** Firefox
+*** Swap tab and URL bars
+#+begin_src css :tangle ~/.mozilla/firefox/armaan-release/chrome/userChrome.css
+ #nav-bar {
+ -moz-box-ordinal-group: 1 !important;
+ }
+
+ #PersonalToolbar {
+ -moz-box-ordinal-group: 2 !important;
+ }
+
+ #titlebar {
+ -moz-box-ordinal-group: 3 !important;
+ }
+#+end_src
+*** Hide URL bar when not focused.
+#+begin_src css :tangle ~/.mozilla/firefox/armaan-release/chrome/userChrome.css
+ #navigator-toolbox:not(:focus-within):not(:hover) {
+ margin-top: -30px;
+ }
+
+ #navigator-toolbox {
+ transition: 0.1s margin-top ease-out;
+ }
+#+end_src
+** Black screen by default
+#+begin_src css :tangle ~/.mozilla/firefox/armaan-release/chrome/userChrome.css
+ #main-window,
+ #browser,
+ #browser vbox#appcontent tabbrowser,
+ #content,
+ #tabbrowser-tabpanels,
+ #tabbrowser-tabbox,
+ browser[type="content-primary"],
+ browser[type="content"] > html,
+ .browserContainer {
+ background: black !important;
+ color: #fff !important;
+ }
+#+end_src
+#+begin_src css :tangle ~/.mozilla/firefox/armaan-release/chrome/userContent.css
+ @-moz-document url("about:home"), url("about:blank"), url("about:newtab") {
+ body {
+ background: black !important;
+ }
+ }
+#+end_src