Skip to content

Instantly share code, notes, and snippets.

---
- name: Group by Distribution
hosts: all
tasks:
- group_by: key={{ansible_distribution}}
- name: Set Time Zone
hosts: Ubuntu
gather_facts: False
vars:
@asimzeeshan
asimzeeshan / svn2git.sh
Created December 18, 2014 12:55
Migrating SVN (with no branches) to GIT on Debian based systems (all steps)
# ============================================================
# Author: Asim Zeeshan
# Web: http://asim.pk
# ============================================================
# Ensure you have SVN, GIT & GIT-SVN packages installed
# apt-get install subversion git git-svn
#
# NOTE: DO NOT TRY WITH "-no-metadata" SWITCH BECAUSE I RAN INTO MANY ISSUES WITH IT
# Lets Begin!
# -*- coding: utf-8 -*-
"""
This script will delete all of the tweets in the specified account.
You may need to hit the "more" button on the bottom of your twitter profile
page every now and then as the script runs, this is due to a bug in twitter.
You will need to get a consumer key and consumer secret token to use this
script, you can do so by registering a twitter application at https://dev.twitter.com/apps
@requirements: Python 2.5+, Tweepy (http://pypi.python.org/pypi/tweepy/1.7.1)
@asimzeeshan
asimzeeshan / balsamiq_install_ubuntu.sh
Created September 30, 2014 05:29
Preparing to Install BALSAMIQ on KUBUNTU 14.04
# gnome-keyring is required by AIR, gdebi is required to install the balsamiq
# package which will fail as “bad quality” in the Ubuntu Software Center. You can
# skip the gdebi install if you’re using X File Package (or probably anything
# other than Ubuntu Software Center) to install .deb packages.
sudo apt-get install gnome-keyring gdebi gdebi-core
# Lots of sites say you need to install ia32-libs, which don’t exist in the Ubuntu
# repositories. Here is what’s required (taken from this post on askubuntu.com
# http://askubuntu.com/questions/404160/cannot-install-adobe-air-on-13-10-i386-pkgs-dont-exist
# and this other post on askubuntu.com http://askubuntu.com/a/440540/8750 )
@asimzeeshan
asimzeeshan / replace_openjdk_with_java8.sh
Created September 30, 2014 05:07
Install Oracle 8 instead of OpenJDK using PPA
# Reference: http://wiki.jetbrains.net/intellij/Installing_and_running_PHPStorm_on_Ubuntu#Installing_Oracle_.28Sun.29_JDK
#
# Before you install it, remove OpenJDK, if you have it installed:
sudo apt-get purge openjdk*
# To install Java 8/7/6, do this:
# In order not to get issues with the add-apt-repository command, install the following package:
sudo apt-get install software-properties-common
# Add the PPA:
@asimzeeshan
asimzeeshan / archlinux_googlechrome.sh
Created July 4, 2014 20:46
Install Google-Chrome in ArchLinux
# ============================================================
# Author: Asim Zeeshan
# Web: http://asim.pk
# ============================================================
# Lets Begin!
# ============================================================
# Get the URL from https://aur.archlinux.org/packages/libgcrypt15/
# ============================================================
cd /usr/src
@asimzeeshan
asimzeeshan / archlinux_dropbox.sh
Created July 4, 2014 20:40
Install Dropbox in ArchLinux
# ============================================================
# Author: Asim Zeeshan
# Web: http://asim.pk
# ============================================================
# Lets Begin!
cd /usr/src
# ============================================================
# Get the URL from https://aur.archlinux.org/packages/dropbox/
# ============================================================
@asimzeeshan
asimzeeshan / keybase.md
Created June 21, 2014 16:08
keybase.md

Keybase proof

I hereby claim:

  • I am asimzeeshan on github.
  • I am asimz (https://keybase.io/asimz) on keybase.
  • I have a public key whose fingerprint is 3C14 53A1 0338 C90F 479D 64F6 DC31 F422 F0E1 3945

To claim this, I am signing this object:

@asimzeeshan
asimzeeshan / uprecords.centos.sh
Created January 11, 2014 11:54
A simple bash script to install UPTIMED / UPRECORDS in CentOS Home: http://uptimed.technicalissues.us/ Project Downloads: https://github.com/genebean/uptimed/downloads
#!/bin/bash
############################################################
# Author: Asim
# Bash script created Jan 11, 2014
#
# TODO
# 1) Add interactivity
# 2) Check from CDN for latest file updates
# 3) Install dependancies
@asimzeeshan
asimzeeshan / gist:4080722
Created November 15, 2012 19:36
Install Ubuntu Desktop OS on Ubuntu Server deployment
# apt-get update && apt-get upgrade
aptitude update && aptitude full-upgrade
apt-get install ubuntu-desktop
apt-cache depends ubuntu-desktop | awk -F ":" '{print $2}' | sed '/^$/d' | xargs sudo apt-get install --reinstall --install-recommends --yes
dpkg -l ubuntu-desktop
startx