Skip to content

Instantly share code, notes, and snippets.

View andrewvmail's full-sized avatar

momoterraw andrewvmail

View GitHub Profile
@andrewvmail
andrewvmail / copyq.sh
Created August 20, 2023 05:00
copyq.sh wayland ubuntu
#!/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
@andrewvmail
andrewvmail / keyboard.kbd
Last active August 20, 2023 04:59
kanata config for linux
(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
@andrewvmail
andrewvmail / create-burmilla-ios-bootable-usb.sh
Last active July 6, 2023 23:38
create-burmilla-ios-bootable-usb.sh
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
@andrewvmail
andrewvmail / install-lua.sh
Last active July 6, 2023 10:11
install-lua.sh
### 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
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",
echo "souce my-alias.sh"
alias cp_last_command='history | tail -n 3 | head -n 1 | awk "{\$1=\"\"; print \$0}" | xargs echo -n | pbcopy'
@andrewvmail
andrewvmail / open.ahk
Last active August 26, 2024 02:44
open program shortcut in bin
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
@andrewvmail
andrewvmail / build.sh
Last active March 29, 2023 03:36
build burmilla packer
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
@andrewvmail
andrewvmail / kanata.kbd
Last active August 28, 2023 07:27
my windows kanata.kbd
;; https://github.com/jtroo/kanata/blob/main/src/keys/mod.rs#L82
(defcfg
process-unmapped-keys yes
danger-enable-cmd yes
)
(defsrc
@andrewvmail
andrewvmail / karabiner.edn
Last active March 22, 2024 23:38
my-goku-file
{
;; 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\""