- Open the document in Google Docs
- Scroll to the bottom of the document, so all the pages are present
- Open Developer Tools on separate window and choose the Console tab
- Paste the code
- Have fun!
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/sh | |
| git --no-pager log -n 20 --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative |
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
| find ./templates/ -type d -exec rename 's/(.*)\/([^\/]*)/$1\/\u$2/' {} \; |
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 | |
| # | |
| # PostgreSQL Backup Script Ver 1.0 | |
| # http://autopgsqlbackup.frozenpc.net | |
| # Copyright (c) 2005 Aaron Axelsen <[email protected]> | |
| # | |
| # This script is based of the AutoMySQLBackup Script Ver 2.2 | |
| # It can be found at http://sourceforge.net/projects/automysqlbackup/ | |
| # | |
| # The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9 |
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
| /** | |
| * Wrapper for easy cURLing | |
| * | |
| * @author Viliam Kopecký | |
| * | |
| * @param string HTTP method (GET|POST|PUT|DELETE) | |
| * @param string URI | |
| * @param mixed content for POST and PUT methods | |
| * @param array headers | |
| * @param array curl options |
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
| ** This is a Test | |
| asfasdf asdf asdf asdf asdfa sdfa sdfas dfasdf | |
| * 1 | |
| * 2 | |
| - 3 | |
| - 4 |
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
| // Original script: https://gist.github.com/leodevbro/2987e8874a18b2086ea6cc1aa3c494e8 | |
| // v2.5 | |
| // Google Apps Script is a coding language based on JavaScript. | |
| // This Apps Script code helps us to sort addresses by most threads. | |
| // A thread is a group of messages, as a conversation. | |
| const modes = { | |
| inbox: "inbox", // to analyze threads in the "Inbox" folder | |
| outbox: "outbox", // to analyze threads in the "Sent" folder |
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
| sudo su -l www-data -s /bin/bash -c "cd $PWD; composer install" |
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
| // === Global Variables === | |
| var siteResults = {}; | |
| var isPaused = false; | |
| var pausePromiseResolve; | |
| // === Function to Export siteResults as CSV === | |
| function exportSiteResultsAsCSV(siteResults) { | |
| // Create the CSV headers | |
| var csvContent = 'Site,Domain Info,DNS Info,Error\n'; |
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).