Skip to content

Instantly share code, notes, and snippets.

@tsaqib
tsaqib / ubuntu-survival-guide.md
Last active May 30, 2016 09:26
Ubuntu Survival Guide
@tsaqib
tsaqib / ideas.md
Last active February 3, 2024 00:52
Ideas that you can use for hackathons, competitions and research.

Ideas

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.

Categories:
  • Eradicate Extreme Poverty and Hunger
  • Education
  • Healthcare
  • Governance
@tsaqib
tsaqib / install-docker-ubuntu1604.sh
Last active September 11, 2018 09:20
Docker installation script for Ubuntu 16.04 (Xenial) on Azure
# Docker installation script for Ubuntu 16.04 (Xenial) on Azure
# Usage: execute sudo -i, first.
# wget -q -O - "$@" https://gist.githubusercontent.com/tsaqib/9c7c6eed460930b1a14665043bd2157c/raw/ --no-cache | sh
# After running the script reboot and check whether docker is running.
apt-get update -y
apt-get upgrade -y
apt-get install -y apt-transport-https ca-certificates
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
@tsaqib
tsaqib / install-docker-ubuntu1504.sh
Last active June 30, 2017 18:42
A simple script to install Docker on Ubuntu 15.04 LTS
# Usage: curl -H 'Cache-Control: no-cache' -s https://gist.githubusercontent.com/tsaqib/737607e64a1fba4d4562f2de21fd16d8/raw/ | sudo sh
# Works on: https://azure.microsoft.com/en-us/marketplace/partners/canonicalandmsopentech/dockeronubuntuserver1404lts/
# 'Docker on Ubuntu 15.04 LTS' works flawlessly on Azure's classical port mapping. If you map port 20001 from docker,
# you may easily map at Azure's Endpoints, for example public port = private port = 20001.
apt-get update -y
apt-get install apt-transport-https ca-certificates -y
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
rm -rf /etc/apt/sources.list.d/docker.list
touch /etc/apt/sources.list.d/docker.list
@tsaqib
tsaqib / install-docker-deb8.sh
Last active May 23, 2018 06:17
Docker installer script for Debian 8 Jessie
# Docker installation script for Debian 8 Jessie on Azure
# Usage: execute sudo -i, first.
# wget -q -O - "$@" https://gist.githubusercontent.com/tsaqib/b2c83ac30f962ab78a5472902c325aa9/raw/ --no-cache | sh
# After running the script reboot and check whether docker is running.
apt-get purge lxc-docker*
apt-get purge docker.io*
apt-get update -y && sudo apt-get upgrade -y
apt-get install -y apt-transport-https ca-certificates
@tsaqib
tsaqib / install-docker-centos72.sh
Created May 16, 2016 04:40
Docker installer script for CentOS 7.2
# Docker installation script for CentOS 7.2 on Azure
# Usage: execute sudo -i, first.
# wget -q -O - "$@" https://gist.githubusercontent.com/tsaqib/c355495947dc4a4d3ec45397482edcff/raw/ --no-cache | sh
# After running the script reboot and check whether docker is running.
yum -y update
tee /etc/yum.repos.d/docker.repo <<-'EOF'
[dockerrepo]
name=Docker Repository
@tsaqib
tsaqib / install-odoo8.sh
Last active November 8, 2017 08:00
Installer script for Odoo 8 on Debian & Ubuntu VM/Azure
# Manually execute first: sudo -i
# Usage: wget -q -O - "$@" https://gist.githubusercontent.com/tsaqib/c8915096c7fde8ade3971ff51f764da7/raw/ --no-cache | sh
# After installation, codebase can be found at /usr/lib/python2.7/dist-packages/openerp
apt-get update -y && apt-get upgrade -y
wget http://nightly.odoo.com/extra/wkhtmltox-0.12.1.2_linux-jessie-amd64.deb
dpkg -i wkhtmltox-0.12.1.2_linux-jessie-amd64.deb
apt-get install -f
rm wkhtmltox-0.12.1.2_linux-jessie-amd64.deb
wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
@tsaqib
tsaqib / springboot-bootstrap.sh
Created May 27, 2016 06:56
A bootstrapper for SpringBoot example application
echo -e '\nMake sure you have installed & configured JDK and Maven.'
echo -e '-----'
cat >pom.xml <<EOL
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>