- Classy theme
- Particularly clean and minimalist, in black & white
- Young metro
- Yeast theme
- Metropolis theme
- Metropolis owl
- ETH metropolis has nice high contrast colors.
- HSRM theme
- Material Design
- Modified
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find ./ -iname "*.md" -type f -exec sh -c 'pandoc "${0}" -o "${0%.md}.org"' {} \; | |
| rm *.md | |
| find ./ -iname "*.org" -type f -exec sh -c 'sed -i -E "s/\[\[(.*)\]\]/\[\[file:\1.org]\[\1\]\]/" "${0}"' {} \; |
[2020-02-18 Tue]
I use this function to create a note file from a bibtex entry (the point is on the bibtex entry).
;;** Open notes from bibtex entry
;;;###autoload
(defun aah/org-ref-open-bibtex-notes ()
"From a bibtex entry, open the notes if they exist.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Scrollwheel left | |
| "~/.xbindkeys/MX-Master-3-bindings.sh Scroll_L" | |
| b:7 + release | |
| ## Scrollwheel right | |
| "~/.xbindkeys/MX-Master-3-bindings.sh Scroll_R" | |
| b:6 + release |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # README You probablyl don't need this script anymore. Please read the comments below to catch up. | |
| ## Description | |
| # Lenovo Carbon X1 Gen 7 - Audio and microphone fix - kernel 5.3+ required. | |
| # The script has only been tested for Arch and OpenSuse, | |
| # Original thread: https://forums.lenovo.com/t5/Ubuntu/Guide-X1-Carbon-7th-Generation-Ubuntu-compatability/td-p/4489823 | |
| # Prereq: Install Linux 5.3 or newer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Convert Dreem CSV to OSCAR-friendly Zeo CSV | |
| Liberty taken with the ZQ column, pinning it to 0. Other non-common fields are nulled. | |
| Tested with Python 3.7.3 and 2.7.10. | |
| Usage: | |
| python dreem_csv_to_oscar_zeo.py data_in.csv data_out.csv | |
| """ | |
| from csv import DictReader, DictWriter | |
| from datetime import datetime, timedelta |
Listing pods with kubectl get pods, then select a pod name and copy paste it into kubectl logs [pod name]
- I want to streamline my workflow and stop using the terminal
- learn more about kubernetes
- main kubernetes extension for Emacs out there is greedy for permissions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// Multi-level sort a slice of Foobars according to [(field, reverse)] | |
| fn sort_by_names(f: &mut [Foobar], orderings: &[(Foofields, bool)]) { | |
| use std::cmp::Ordering; | |
| f.sort_by(|a, b| { | |
| let mut cmp = Ordering::Equal; | |
| for (field, reverse) in orderings { | |
| if cmp != Ordering::Equal { | |
| break; | |
| } |
Add this line in /etc/profile:
if [ ! `ps -x | grep emacs | grep daemon | awk '{ print $2 }'` ]; then
emacs --daemon 2> /dev/null
fi
Relogin again to start the daemon.
Now you can edit your files with emacsclient command like so:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env fish | |
| # note: fish at first glance seems much more straightforward to setup with fisher than zsh with zinit | |
| # In particular, fish works with XDG by default, while I wasted a lot of times on env variables | |
| # to get it to work with zsh + zinnit correctly. | |
| # fisher | |
| curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher | |
| # the theme options are many, but these two do async git update |