Skip to content

Instantly share code, notes, and snippets.

View buithehoa's full-sized avatar
🐢
Moving slowly ...

Bùi Thế Hòa buithehoa

🐢
Moving slowly ...
View GitHub Profile
docker logs --tail 10 docker_container_name_or_id
find . -maxdepth 1 -type f \( -iname '1[6-9]*flac' -o -iname '2[0-9]*.flac' \) -exec rsync -az --info=progress2 {} /somewhere/out/there \;
.sub('-', ' ').gsub(/[\:\[\]\"\'-.#]/, '').gsub(/[\/(\s)]+/, '-').downcase
select count(*) from information_schema.tables where table_schema = database();
@buithehoa
buithehoa / extract-a-tgz-file
Last active September 21, 2018 10:26
Extract a .tgz file
tar -xvzf /path/to/file.tgz
select * from some_table \x\g\x
rsync -az --info=progress2 /source/folder /destination
sudo systemctl start/stop postgresql@<version>-<cluster>
# Edit .gitignore to match the file you want to ignore
git rm --cached /path/to/file