- command line values (for example, -u my_user, these are not variables)
- role defaults (defined in role/defaults/main.yml)
- inventory file or script group vars
- inventory group_vars/all
I have collected and moderated these ideas from various public sources and put into one place so that problem solvers and solution developers may find inspirations. Because I wish to update it regularly, I have setup as a single page wiki. You may try these ideas on hackathons/competitions/research; some are quite intense problems and some are not. Many of the problems were prepared keeping Dhaka/Bangladesh in mind, but of course can be applied to just about any underdeveloped/developing and sometimes developed countries.
- Eradicate Extreme Poverty and Hunger
- Education
- Healthcare
- Governance
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
### PhpMyAdmin (by different root) | |
$ sudo apt-get install php5-mysql phpmyadmin | |
$ sudo apt-get install php5-fpm | |
$ sudo nano /etc/nginx/sites-available/default | |
location /phpmyadmin { | |
root /usr/share/; | |
index index.php index.html index.htm; |
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 | |
# add vhost reverse proxy for new docker instance for nginx and restart nginx | |
# use like this : do_nginx_proxy_vhost subdir.example.com http://192.168.0.20:8080 | |
function do_nginx_proxy_vhost() { | |
[ -z $1 -o -z $2 ] && echo "Give host and address" && return | |
host=$1 | |
address=$2 | |
[ -f /etc/nginx/sites-available/proxy_reverse_$host ] && (echo "Updating proxy for host: $host" && sudo rm /etc/nginx/sites-enabled/proxy_reverse_$host) || echo "Creating proxy for host: $host" |
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 | |
# Get id, name and ip adresses of all active docker container | |
function do_get_ip_address() { | |
paste <(sudo docker ps | tail -n +2 | awk {'printf "%s\t%s\n", $1, $2 '}) <(sudo docker ps -q | xargs sudo docker inspect | tail -n +2 | grep \"IPAddress\" | awk '{ print $2 }' | tr -d ',"') | |
} | |
# stop and remove a container based on his id | |
function do_stop_rm_container() { | |
[ -z "$1" ] && echo "Give me a container ID" && return |
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 | |
# https://github.com/jmeyo/dacorp-symfony-manager installer script | |
if [ "x"$USER != 'x' ]; then | |
if [ "x"$USER != 'xroot' ]; then | |
sm_path=$HOME/.symfony-manager | |
else | |
sm_path=/root/.symfony-manager | |
fi | |
else | |
sm_path=/root/.symfony-manager |
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
#!/usr/bin/env bash | |
# Fixes the annoying "You can't push to X. Use Y" git error. | |
while read -r line | |
do | |
read -a array <<< "$line" | |
remote="${array[0]}" | |
url="${array[1]}" |
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
#Install scipy: http://glowingpython.blogspot.it/2012/05/analyzing-your-gmail-with-matplotlib.html | |
from imaplib import IMAP4_SSL | |
from datetime import date,timedelta,datetime | |
from time import mktime | |
from email.utils import parsedate | |
from pylab import plot_date,show,xticks,date2num | |
from pylab import figure,hist,num2date | |
from matplotlib.dates import DateFormatter |
NewerOlder