- Settings -> Windows Update
- Install all updates
- launch Windows Powershell as administrator and execute:
#!/bin/bash | |
# Check if a query is provided | |
if [ -z "$1" ]; then | |
echo "Error: No query provided." | |
exit 1 | |
fi | |
# Encode the query for URLs | |
QUERY=$(echo "$1" | sed 's/ /%20/g') |
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 |
{ | |
;; 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\"" |
;; https://github.com/jtroo/kanata/blob/main/src/keys/mod.rs#L82 | |
(defcfg | |
process-unmapped-keys yes | |
danger-enable-cmd yes | |
) | |
(defsrc |
#!/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 |
(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 |
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 | |
### 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", |