Requirements:
- Java 6;
- Maven 2.2.1
- (Optional) Ant 1.7.1;
- If you are on Linux don't use Maven or Ant installed by root (file permission issues with
mvn deploy
- download it and install it as yourself).
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
curl 'http://puppetmaster:8080/v3/resources/Notify/foobar' | |
[] | |
cat test.pp | |
@@notify { "foobar": } | |
puppet apply test.pp --debug | tee /tmp/puppet.out | |
^[[0;36mDebug: Configuring PuppetDB terminuses with config file /etc/puppet/puppetdb.conf^[[0m | |
^[[0;36mDebug: Failed to load library 'selinux' for feature 'selinux'^[[0m |
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
#!/bin/bash | |
export mount_point=$1 | |
if [[ -z "$mount_point" ]]; then | |
echo "pass in drive name as first argument"; | |
exit 1; | |
fi | |
# Sanity check that lv is not used | |
lvuses="$( lvdisplay -c /dev/vg0/${mount_point} | cut -d ':' -f 6 )" |
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
apt-get install software-properties-common | |
add-apt-repository ppa:webupd8team/java | |
echo "deb http://username:password@debian.datastax.com/enterprise stable main" | sudo tee -a /etc/apt/sources.list.d/datastax.sources.list | |
apt-get install curl | |
curl -L https://debian.datastax.com/debian/repo_key | sudo apt-key add - | |
curl -L https://apt.puppetlabs.com/puppetlabs-release-trusty.deb | dpkg -i - | |
apt-get update | |
apt-get install oracle-java7-installer | |
apt-get install dse-full | |
apt-get install puppet |
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
#!/bin/bash | |
// get the chmod numbers for a directory | |
// http://stackoverflow.com/questions/1795976/can-the-unix-list-command-ls-output-numerical-chmod-permissions/1796009 | |
ls -l | awk '{k=0;for(i=0;i<=8;i++)k+=((substr($1,i+2,1)~/[rwx]/) \ | |
*2^(8-i));if(k)printf("%0o ",k);print}' |
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
while true; do echo "$(nodetool netstats | grep Receiving)"; echo " Finished $(nodetool netstats | grep data | grep cassandr | wc -l)"; echo "$(nodetool netstats | grep -v 100% | grep data)";echo "--------" && sleep 30; done; |
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
emerge -av -1 -O =dev-lang/perl-5.18* $(eix '-I#' 'virtual/perl-*') dev-perl/extutils-pkgconfig | |
perl-cleaner --reallyall -- -v | |
emerge -vuDN world --with-bdeps=y |
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
git pull -s recursive -X theirs |
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
var v = $.browser.msie && !(op.attributes['value'] != null && | |
op.attributes['value'].specified) ? op.text : op.value; | |
// var v = $.browser.msie && !(op.attributes['value'].specified) ? | |
op.text : op.value; |
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
function selectDropDownIEbehavior() { | |
// Apply this behavior for IE only | |
if (!$.browser.msie) | |
return; | |
var expand = function() | |
{ | |
var width = $(this).css("width"); | |
// Don't overwrite the stored original width, |
OlderNewer