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
(setq custom-file "~/.custom.el") | |
;; Install straight.el | |
;; Just pasted from https://github.com/raxod502/straight.el#getting-started | |
(let ((bootstrap-file (concat user-emacs-directory "straight/repos/straight.el/bootstrap.el")) | |
(bootstrap-version 3)) | |
(unless (file-exists-p bootstrap-file) | |
(with-current-buffer | |
(url-retrieve-synchronously | |
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el" |
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 | |
python <<PYTHON | fzf -m | xargs -d'\n' calibredb add | |
import os.path | |
import glob | |
root = os.path.expanduser('~/Dropbox/Apps/Manning Books') | |
files = glob.glob(os.path.join(root, '**/*.epub')) | |
result = sorted(list(map(lambda f: (f, os.path.getctime(f)), files)), key=lambda t: t[1], reverse=True) | |
candidates = list(map(lambda f: f[0], result)) | |
for c in candidates: |
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
# Google Compute Engine asia-east-a micro | |
❯ ping -c 9 107.167.188.160 | |
PING 107.167.188.160 (107.167.188.160) 56(84) bytes of data. | |
64 bytes from 107.167.188.160: icmp_seq=1 ttl=60 time=11.4 ms | |
64 bytes from 107.167.188.160: icmp_seq=2 ttl=60 time=11.1 ms | |
64 bytes from 107.167.188.160: icmp_seq=3 ttl=60 time=11.1 ms | |
64 bytes from 107.167.188.160: icmp_seq=4 ttl=60 time=11.0 ms | |
64 bytes from 107.167.188.160: icmp_seq=5 ttl=60 time=11.1 ms | |
64 bytes from 107.167.188.160: icmp_seq=6 ttl=60 time=13.1 ms |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder