View copyq.sh
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 | |
echo "running ydotoold ..." | |
sudo -b ydotoold --socket-path="$HOME/.ydotool_socket" --socket-own="$(id -u):$(id -g)" | |
echo "Running copyq..." | |
export YDOTOOL_SOCKET="$HOME/.ydotool_socket" | |
export QT_QPA_PLATFORM=xcb | |
copyq |
View keyboard.kbd
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
(defcfg | |
linux-dev /dev/input/event15 | |
danger-enable-cmd yes | |
) | |
(defsrc | |
esc 1 2 3 4 5 6 7 8 9 0 - = bspc | |
tab q w e r t y u i o p [ ] \ | |
caps a s d f g h j k l ; ' ret |
View create-burmilla-ios-bootable-usb.sh
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
cd ~/Desktop | |
wget https://github.com/burmilla/os/releases/download/v1.9.7-rc1/burmillaos-v1.9.7-rc1.iso | |
diskutil list | |
# replace N with disk number | |
diskutil eraseDisk FAT32 NAME /dev/diskN | |
diskutil unmountDisk /dev/diskN | |
sudo dd bs=1M if=burmillaos-v1.9.7-rc1.iso of=/dev/rdiskN | |
View install-lua.sh
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
### ubuntu | |
cd /tmp | |
curl -R -O http://www.lua.org/ftp/lua-5.4.4.tar.gz | |
tar zxf lua-5.4.4.tar.gz | |
cd lua-5.4.4 | |
make install | |
cd .. | |
curl -R https://luarocks.github.io/luarocks/releases/luarocks-3.9.2.tar.gz | |
tar zxf luarocks-3.9.2.tar.gz |
View make-token.js
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
console.log("make-token") | |
const jwt = require('jsonwebtoken'); | |
let jwtSecretKey = process.env.JWT_SECRET_KEY || "momo"; | |
let data = { | |
"context": { | |
"user": { | |
"avatar": "https://robohash.org/john-doe", |
View my-alias.sh
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
echo "souce my-alias.sh" | |
alias cp_last_command='history | tail -n 3 | head -n 1 | awk "{\$1=\"\"; print \$0}" | xargs echo -n | pbcopy' |
View open.ahk
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
process := A_Args[1] | |
if WinExist("ahk_exe " process) | |
{ | |
;MsgBox, Process %process% exist. just focus in | |
WinActivate, ahk_exe %process% | |
WinGet, ActiveProcessName, ProcessName, A | |
WinGet, WinClassCount, Count, ahk_exe %ActiveProcessName% | |
IF WinClassCount = 1 |
View build.sh
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
ufw disable | |
git clone https://github.com/burmilla/os-packer.git | |
cd os-packer | |
cd digitalocean/ | |
ls | |
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg | |
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list | |
sudo apt update && sudo apt install packer | |
apt-get install qemu-kvm | |
vim digitalocean-qemu.json |
View kanata.kbd
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
;; https://github.com/jtroo/kanata/blob/main/src/keys/mod.rs#L82 | |
(defcfg | |
process-unmapped-keys yes | |
danger-enable-cmd yes | |
) | |
(defsrc |
View karabiner.edn
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
{ | |
;; my-goku | |
;; in hammerspoon console hs.ipc.cliInstall() | |
;; gokuw | |
;; gh gist edit d496e18751ddea5a9cb310755535389c -a karabiner.edn /Users/momo/.config/karabiner.edn | |
:templates { | |
:open "open \"%s\"" |
NewerOlder