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 | |
if [ -z $1 ] | |
then | |
v=`wget -qO- http://download.virtualbox.org/virtualbox/LATEST.TXT` | |
else | |
v=$1 | |
fi | |
echo "Installing VBoxGuestAdditions version $v." |
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
--- | |
- name: getting required packages. | |
apt: name={{ item }} | |
with_items: | |
- tar | |
- firefox | |
- curl | |
- name: download application files. | |
get_url: | |
dest: /opt/DiTF/opt |
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
############## | |
## Bash prompt | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
function proml { | |
local BLUE="\[\033[0;34m\]" | |
local RED="\[\033[0;31m\]" | |
local LIGHT_RED="\[\033[1;31m\]" |
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 | |
mkdir $1 | |
cd $1 | |
split -l $2 ../$0 $1 | |
find . -type f -exec mv '{}' '{}'.csv \; | |
cd .. |
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
servers = [ | |
{"release_server"=> | |
{ | |
"name"=>"foo", | |
} | |
}, | |
{"release_server"=> | |
{ | |
"name"=>"bar", |
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
location = /Content/images/ESG_Logo_280x50.png { | |
log_not_found off; | |
access_log off; | |
error_page 404 =200 /sites/all/themes/foo/logo.png; | |
} | |
location / { | |
error_page 404 index.php | |
} |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjJAhl1l23ty9oLDhBbYDWBCaWivycC2vEueriluFwD9JrglN4I1W0LJ9HLIp1z07dhCwT1eaeZEp7Xq5gMyN0q//wo4vguBDFggwA1MLA9H/kKUg2sFkZRpIsbUaz4VKQ6tZ5KHrQEbrIYdZ3kxdEAjncMj1HVChOfz2Gy6p1qhGF9jtsBj41Yb2FXG+HV+Sw3kyfaKytHsrgBqY3qhUM0uixqPn2/a6ozW0Uxt+jMrq1wqsOU3OyZHF+MiNAQcfOQvcS2N9Tu3UM+5t1wpiIri/1qEmIjgnkB3F2rOUIw3iNji/aHT90srodwo9b0sZFg87HJkt6GYqCbiw9Mk1h [email protected] |
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
server { | |
listen 443 spdy; | |
listen 80; | |
server_name foo.org www.foo.org; | |
root /home/site/public; | |
#if ($request_method !~ "^(GET|HEAD|POST)$" ) { return 444; } | |
if ($https != 'on') { return 301 https://www.foo.org$request_uri; } | |
if ($host = "foo.org") { return 301 https://www.foo.org$request_uri; } |
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
### Password Protect /administrator area | |
location ~ /administrator/.* { | |
auth_basic "Restricted"; | |
auth_basic_user_file /var/www/prod.pac.cr/passwd; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini | |
# With php5-cgi alone: | |
#fastcgi_pass 127.0.0.1:9000; | |
# With php5-fpm: |
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
sudo apt-get purge nvidia* | |
#remove xorg.conf | |
sudo apt-get --reinstall xserver-xorg-core libgl1-mesa-glx:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:i386 libgl1-mesa-dri:amd64 | |
sudo dpkg-reconfigure xserver-xorg | |
sudo reboot | |
sudo apt-get install nvidia-current | |
#if this doesn't work | |
sudo apt-get install linux-headers-generic-pae |