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
| setBackground() { | |
| osascript -e "tell application \"iTerm\" | |
| set myterm to (current terminal) | |
| tell myterm | |
| set mysession to (current session) | |
| tell mysession | |
| set background color to $1 | |
| end tell | |
| end tell | |
| end tell" |
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 | |
| DB=YOUR_DB_NAME | |
| USER=DB_USER | |
| PASSWORD=DB_PASS | |
| BACKUP_DIR=~/db_backups/$DB | |
| [ -d "$BACKUP_DIR" ] || mkdir -p "$BACKUP_DIR" |
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
| function isCosoleOpen() { | |
| console.profile(); | |
| console.profileEnd(); | |
| if(console.clear) { console.clear() }; | |
| return console.profiles.length > 0; | |
| } |
NewerOlder