I hereby claim:
- I am josephku on github.
- I am josephku (https://keybase.io/josephku) on keybase.
- I have a public key ASAqye3EVSbWVNXAVrXjMVNLVLv2tvOjJ9RRdnH_njyBMAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| { | |
| "title": "Change caps_lock key", | |
| "rules": [ | |
| { | |
| "description": "Post caps_lock if caps_lock is pressed alone, left_ctrl otherwise.", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "caps_lock", |
| #!/bin/sh | |
| # This script only works on Ubuntu Linux LTS 16.04 LTS or the latest systemd based Ubuntu Linux | |
| set -ex | |
| ROOT=`pwd` | |
| # Stop related services | |
| $ROOT/phabricator/bin/phd stop |
| #!/bin/sh | |
| echo "Creating Swap file... (Size: 2GB)" | |
| #sudo dd if=/dev/zero of=/var/swapfile bs=1M count=2048 && | |
| sudo fallocate -l 2G /var/swapfile && # A new and effective way since Linux 2.6.23 | |
| sudo chmod 600 /var/swapfile && | |
| sudo mkswap /var/swapfile && | |
| echo "/var/swapfile none swap defaults 0 0" | sudo tee -a /etc/fstab | |
| sudo swapon -a | |
| echo "Done. Happy swapping!" |
| #!/bin/bash | |
| set -ex | |
| export DEBIAN_FRONTEND=noninteractive | |
| echo "Replacing default MySQL 5.5 by MySQL 5.7.8 RC" | |
| curl -LO https://dev.mysql.com/get/mysql-apt-config_0.5.3-1_all.deb | |
| echo mysql-apt-config mysql-apt-config/select-product select Apply | sudo debconf-set-selections | |
| echo mysql-apt-config mysql-apt-config/select-server select mysql-5.7-dmr | sudo debconf-set-selections | |
| echo mysql-apt-config mysql-apt-config/select-connector-python select none | sudo debconf-set-selections |
| #!/usr/bin/env ruby | |
| require 'bitcoin' | |
| require 'open-uri' | |
| require 'JSON' | |
| require 'digest/sha2' | |
| require 'pry' | |
| require 'bigdecimal' |
| #!/bin/sh | |
| fancy_echo() { | |
| local fmt="$1"; shift | |
| printf "\n$fmt\n" "$@" | |
| } | |
| append_to_zshrc() { | |
| local text="$1" zshrc |
| #!/bin/sh | |
| sublime_domain=$(defaults domains | tr "," "\n" | grep sublime) | |
| if [ $? -eq 0 ]; then | |
| ret=$(defaults read $sublime_domain ApplePressAndHoldEnabled) | |
| if [ $ret -eq 0 ]; then | |
| defaults write $sublime_domain ApplePressAndHoldEnabled -bool true | |
| echo "Disable key repeat." | |
| else |
| Verifying that +josephku is my openname (Bitcoin username). https://onename.io/josephku |