This file contains hidden or 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
function run(){ | |
let url = 'https://en.wikipedia.org/wiki/Main_Page' | |
let word = "{query}" | |
let app = Application("Safari") | |
app.includeStandardAdditions = true | |
app.activate() | |
let tab = loadUrlNewTab(app, url) | |
waitPageLoad(app, tab) | |
searchWord(app, tab, word) |
This file contains hidden or 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 | |
/opt/homebrew/bin/brew install cmake libtool | |
cd ~/.emacs.d/elpa/vterm-[0-9]* | |
rm -rf build vterm-module.so | |
mkdir build | |
cd build | |
/opt/homebrew/bin/cmake -DUSE_SYSTEM_LIBVTERM=no .. | |
make |
This file contains hidden or 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 | |
if [ ! -f /opt/homebrew/bin/brew ]; then | |
echo "Install ARM homebrew to /opt/homebrew" | |
exit | |
fi | |
message() { | |
TIME=$(date "+%Y-%m-%dT%H:%M:%S") | |
MSG=$@ | |
echo "$TIME | $MSG" |
This file contains hidden or 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 PATH=$(cd $(dirname $0); pwd)/node_modules/.bin:$PATH |