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
alias datetime='date --iso-8601=seconds' | |
# For short datetime | |
alias datetime='date +%Y%m%dT%H%M%S%Z' |
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 | |
# Usage: | |
# bash backup.sh | |
# or | |
# chmod u+x backup.sh | |
# ./backup.sh | |
now=$(date +%Y%m%dT%H%M%S%Z) | |
filename=$now.tar.bz2 |
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
for path in `find . -maxdepth 4 -type d -name Downloads`; do nautilus $path; done |
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
$ sudo pip3 install grpcio grpcio-tools |
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
for path in `ls /usr/share/sounds/ubuntu/stereo/` | |
do | |
canberra-gtk-play -i `basename $path .ogg` | |
done |
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
suggests=$(apt-cache show ubuntu-wallpapers | grep -oP '(?<=^Suggests: ).*' | sed 's/,//g') | |
sudo apt install $suggests |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.viewport { | |
width: 160px; | |
overflow-x: hidden; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<textarea name="" id="" cols="30" rows="10">{"hello": "world"}</textarea> | |
<a download="hoge.json" onclick="doDownload(this)">download</a> |
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
[ | |
{ | |
"name": "奥貫 紗季", | |
"ruby": "おくぬき さき", | |
"kana": "オクヌキ サキ", | |
"mail": "okunuki_saki@example.com", | |
"sex": "女", | |
"age": "70", | |
"birthday": "1947/8/1", | |
"pref": "岡山県", |
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
[ | |
{ | |
"name": "アークランドサカモト(株)", | |
"ruby": "あーくらんどさかもと", | |
"kana": "アークランドサカモト" | |
}, | |
{ | |
"name": "あい ホールディングス(株)", | |
"ruby": "あい ほーるでぃんぐす", | |
"kana": "アイ ホールディングス" |