This file contains 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
# Start Puppet Master process in foreground (v3.x) | |
puppet master --no-daemonize --debug --verbose | |
# Start Puppet Agent test without doing any change (v3.x) | |
puppet agent --test --debug --noop | |
# Get puppet config for a parameter | |
puppet config print "name_of_the_parameter" | |
# ... or print full configuration and then filter | |
puppet config print | grep -i "filter" |
This file contains 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
# Define a new alias for git tree, colorized and with graph | |
git config --global alias.tree 'log --graph --full-history --all --color --date=short --pretty=format:"%Cred%x09%h %Creset%ad%Cblue%d %Creset %s %C(bold)(%an)%Creset"' | |
# Then, invoke it | |
git tree | |
# Source: https://coderwall.com/p/4-itow/nice-terminal-git-tree-graph |
This file contains 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
cat ~/.ssh/id_rsa.pub | ssh hostname 'cat >> ~/.ssh/authorized_keys' | |
-OR- | |
sh-copy-id -i ~/.ssh/id_rsa.pub username:password@remotehost.co.jp |
This file contains 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
cat 'IdentityFile ~/.ssh/id_rsa' > ~/.ssh/config | |
chmod 600 ~/.ssh/config |
This file contains 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
--------------------------------------------------------------------------------------------- | |
-- ORACLE DBA COOKBOOK ---------------------------------------------------------------------- | |
--------------------------------------------------------------------------------------------- | |
-- Set wide output in rlwrap | |
set lines 1000 pages 1000 | |
-- Get privileges granted for certain table/object | |
SELECT * FROM ALL_TAB_PRIVS WHERE TABLE_NAME='TABLE_NAME'; |
NewerOlder