Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| # 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 | |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| #!/usr/bin/python | |
| # GoogleMapDownloader.py | |
| # Created by Hayden Eskriett [http://eskriett.com] | |
| # | |
| # A script which when given a longitude, latitude and zoom level downloads a | |
| # high resolution google map | |
| # Find the associated blog post at: http://blog.eskriett.com/2013/07/19/downloading-google-maps/ | |
| import urllib.request | |
| from PIL import Image |
| stun1.l.google.com:19302, stun2.l.google.com:19302, stun3.l.google.com:19302, stun4.l.google.com:19302, stun.stunprotocol.org:3478 |
| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |
| a. Use the 'Stop all' from the Actions button off the main Ambari dashboard to shut down all HDP components. | |
| b. Using Clush/Pdsh/Cluster scripting tool of choice, confirm that ALL Java processes are fully stopped across ALL cluster nodes (excluding Ambari), killing any orphaned processes that Ambari was unable to stop. | |
| c. Run the following from Ambari master node (as root) to stop the Ambari-agent and Ambari-server processes. | |
| sudo ambari-agent stop | |
| sudo ambari-server stop | |
| d. Run the following from Ambari-server master node (as root): | |
| ambari-server setup (and follow the prompts, example provided below) |
| #!/bin/zsh | |
| # EDITOR | |
| export EDITOR='vim' | |
| # Owner | |
| export USER_NAME="Bob" | |
| eval "$(rbenv init -)" | |
| # FileSearch |