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
| for i in `find hiera -name "*.yaml"` | |
| do | |
| echo $i | |
| ruby -e "require 'yaml'; YAML.parse(File.open('$i'))" | |
| done | |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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 -x | |
| echo 'Canon flash card JPG file names will be fixed.' | |
| echo 'Namely, the leading underscore _ will be replaced with I.' | |
| echo 'I.e., _MG will be replaced with IMG in current folder.' | |
| for i in _* ; do mv $i I${i#*_} ; done |
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
| # or hiera --hash \ | |
| hash='rkt_base::monitor::icinga2::is_server'; \ | |
| env='staging'; \ | |
| role='puppet'; \ | |
| role2='monitor'; \ | |
| role3='log'; \ | |
| countrycode='id'; \ | |
| hiera \ |
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
| # su - postgres | |
| # psql | |
| delete from public.resource_params_cache where parameters like '%live-some-nodename-db-02.project.conf%'; | |
| delete from public.resource_params where value like '%live-some-nodename-db-02.project.conf%'; |
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
| cd ; mkdir src; cd src/ | |
| git clone https://github.com/kabakaev/librarian-puppet-simple.git | |
| cd librarian-puppet-simple/ | |
| gem uninstall librarian-puppet-simple | |
| gem build librarian-puppet-simple.gemspec | |
| gem install librarian-puppet-simple-0.0.5.gem |
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
| apt-get upgrade libmysqlclient18 -V | |
| Reading package lists... Done | |
| Building dependency tree | |
| Reading state information... Done | |
| The following packages will be upgraded: | |
| apache2-utils (2.2.22-13+deb7u3 => 2.2.22-13+deb7u4) | |
| apt (0.9.7.9+deb7u6 => 0.9.7.9+deb7u7) | |
| apt-transport-https (0.9.7.9+deb7u6 => 0.9.7.9+deb7u7) | |
| apt-utils (0.9.7.9+deb7u6 => 0.9.7.9+deb7u7) | |
| base-files (7.1wheezy7 => 7.1wheezy8) |
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
| ruby -e "require 'yaml'; yaml = YAML.load_file('ventures.sls'); puts yaml.inspect" |
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
| mysqldumper $paramaters | perl -pe 's/\sDEFINER=`[^`]+`@`[^`]+`//' > fixed.sql |
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 -x | |
| echo this command will stream from macbook pro FaceTime webcam to youtube | |
| echo you may wish to run \"brew install ffmpeg\" to get it working | |
| youtube_streaming_key=$1 | |
| [ -Z "$youtube_streaming_key" ] && youtube_streaming_key='xxxx-xxxx-xxxx-xxxx' | |
| youtube_rtmp_url='rtmp://a.rtmp.youtube.com/live2' |
OlderNewer