This file contains 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 |
This file contains 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 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 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 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
system-type | |
windows-nt | |
(getenv "HOME") | |
"C:\\Users\\IEUser\\AppData\\Roaming" | |
user-login-name | |
"IEUser" | |
(expand-file-name "~IEUser") |
This file contains 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/sh | |
# This script will setup Evm (Emacs Version Manager) and Cask on | |
# Travis to use for Emacs Lisp testing. | |
# | |
# In .travis.yml, add this: | |
# | |
# - curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh | |
# | |
# Emacs 24.3 is installed in the above script because Cask requires |
This file contains 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
FROM fedora | |
MAINTAINER Akira Komamura, akira.komamura@gmail.com | |
# Add RPM Fusion | |
RUN dnf -y install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \ | |
https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm | |
# Install packages | |
RUN dnf -y install nim | |
# git is required by nimble to download a package | |
RUN dnf -y install git |
This file contains 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
(require 'package) | |
(push '("melpa" . "http://melpa.org/packages/") package-archives) | |
(package-initialize) | |
(package-refresh-contents) | |
(require 'package-lint) | |
(package-lint-batch-and-exit) |
This file contains 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
export GTK_IM_MODULE=fcitx | |
export QT_IM_MODULE=fcitx | |
export XMODIFIERS=@im=fcitx | |
exec cinnamon-session | |
# exec emacs --daemon |
This file contains 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
(require 'lemonbar) | |
(setq lemonbar-options `("-b" ; Dock the bar at the bottom of the screen | |
"-g" "1920x20+0+0" | |
"-p" | |
"-f" "Hack-9")) | |
(setq lemonbar-output-template '(akirak/lemonbar-exwm-buffer-list | |
lemonbar-align-right | |
akirak/lemonbar-i3status)) |
OlderNewer