Skip to content

Instantly share code, notes, and snippets.

View sawa2d2's full-sized avatar
👾

sawa sawa2d2

👾
View GitHub Profile
# Ref: https://webird-programming.tech/archives/262
function scraping() {
var fetch = UrlFetchApp.fetch("https://example.com/");
var response = fetch.getContentText();
Logger.log(response);
}
@sawa2d2
sawa2d2 / Open Android Emulator
Last active March 30, 2020 18:46
Mobile app / Flutter
$ANDROID_HOME/emulator/emulator -avd Pixel_3a_XL_Edited_API_25
iconv -c -f sjis -t utf8 original.txt -o output.txt
tar -cvf xxx.tar.yy directory
docker rm -f $(docker ps -qa)
sudo lshw -short | grep disk
@sawa2d2
sawa2d2 / Delete cache
Last active March 15, 2020 17:54
Tips
rm -rf ~/.cache/thumbnails/* ~/.thumbnails/*
@sawa2d2
sawa2d2 / setup
Created March 10, 2020 09:20
termux
# SSH
pkg install -y openssh
ssh key-gen -t rsa
# Fish shell
pkg install -y fish
@sawa2d2
sawa2d2 / Block ID
Created March 8, 2020 21:08
[Command] Computer resources monitoring
blkit
@sawa2d2
sawa2d2 / conf.d
Last active March 9, 2020 05:59
fish script
# peco_ghq.fish
# https://public-constructor.com/fish-ghq/
function ghq_peco_repo
set selected_repository (ghq list -p | peco --query "$LBUFFER")
if [ -n "$selected_repository" ]
cd $selected_repository
echo "$selected_repository"
commandline -f repaint
end
end