Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| // ==UserScript== | |
| // @name youtube popup killer | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.3 | |
| // @description try to take over the world! | |
| // @author Selbereth | |
| // @match https://*.youtube.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com | |
| // @grant none | |
| // ==/UserScript== |
| # Full getting started tutorial by Greg Baugues at: | |
| # https://www.twilio.com/blog/2017/02/an-easy-way-to-read-and-write-to-a-google-spreadsheet-in-python.html | |
| import gspread | |
| from oauth2client.service_account import ServiceAccountCredentials | |
| # use creds to create a client to interact with the Google Drive API | |
| scope = ["https://spreadsheets.google.com/feeds"] | |
| creds = ServiceAccountCredentials.from_json_keyfile_name("client_secret.json", scope) # json file from your Google API Console | |
| client = gspread.authorize(creds) |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| #!/bin/sh | |
| # this script was initially written for Redhat/CentOS | |
| # file is /etc/cron.daily/diskAlert.cron | |
| # requires enabling outgoing sendmail from localhost to a valid | |
| # smtp server, which is usually disabled by default | |
| ADMIN="[email protected],[email protected]" | |
| THRESHOLD=90 | |
| df -PkH | grep -vE '^Filesystem|tmpfs|cdrom|media' | awk '{ print $5 " " $6 }' | while read output; | |
| do |