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
git log --pretty=format:"%h - %an, %ar : %s" --max-count=5 |
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
git update-index --assume-unchanged [path] |
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
<?php | |
$type = 'custom_post_type'; | |
$args = array( | |
'post_type' => $type, | |
'post_status' => 'publish', | |
'posts_per_page' => -1, | |
'ignore_sticky_posts'=> true | |
); | |
$my_query = null; | |
$my_query = new WP_Query($args); |
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
git submodule add [email protected]:GianlucaCandiotti/puppet-nodejs.git vagrant-env/puppet/modules/nodejs | |
git submodule add [email protected]:GianlucaCandiotti/puppetlabs-stdlib.git vagrant-env/puppet/modules/stdlib | |
git submodule add [email protected]:GianlucaCandiotti/puppet-wget.git vagrant-env/puppet/modules/wget | |
git submodule add [email protected]:GianlucaCandiotti/puppetlabs-apt.git vagrant-env/puppet/modules/apt |
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
# Requires nodejs, stdlib, apt and wget modules. | |
Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] } | |
exec { 'apt-get update': | |
command => 'apt-get update', | |
timeout => 60, | |
tries => 3, | |
} |
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
# Requires nodejs, stdlib, apt and wget modules. | |
Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] } | |
exec { 'apt-get update': | |
command => 'apt-get update', | |
timeout => 60, | |
tries => 3, | |
} | |
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 | |
files=$(git diff --cached --name-only | grep '\.js$') | |
# Prevent ESLint help message if no files matched | |
if [[ $files = "" ]] ; then | |
exit 0 | |
fi | |
echo $files | xargs eslint |
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
// Params to filter | |
$params = [ | |
'param_1', | |
'param_2', | |
'param_3' | |
]; | |
// an array of objects | |
$objects_array = []; | |
$data = []; |
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 | |
sudo apt-get install bison -y --force-yes | |
sudo -u vagrant -H bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) | |
sudo -u vagrant -H bash -c 'echo "source $HOME/.gvm/scripts/gvm" >> $HOME/.bashrc' | |
sudo -u vagrant -H bash -c 'source $HOME/.gvm/scripts/gvm; gvm install go1.4' | |
sudo -u vagrant -H bash -c 'source $HOME/.gvm/scripts/gvm; gvm use go1.4 --default' | |
sudo -u vagrant -H bash -c 'source $HOME/.gvm/scripts/gvm; gvm install go1.5.2' | |
sudo -u vagrant -H bash -c 'source $HOME/.gvm/scripts/gvm; gvm use go1.5.2 --default' | |
sudo -u vagrant -H bash -c 'source $HOME/.gvm/scripts/gvm; go get github.com/kr/godep' |
OlderNewer