Skip to content

Instantly share code, notes, and snippets.

View mohsinhijazee's full-sized avatar

Mohsin Hijazee mohsinhijazee

View GitHub Profile
PLAY [localhost] *******************************************************************************************************************************************************************************************
Thursday 18 June 2020 13:31:56 +0200 (0:00:00.119) 0:00:00.119 *********
TASK [Gathering Facts] *************************************************************************************************************************************************************************************
ok: [localhost]
Thursday 18 June 2020 13:31:57 +0200 (0:00:01.009) 0:00:01.129 *********
TASK [Check ansible version >=2.8.0] ***********************************************************************************************************************************************************************
ok: [localhost] => {
@mohsinhijazee
mohsinhijazee / gitutils.sh
Created April 26, 2018 07:29
Deleting all branches other then current and master
# Delete every branch other then current and specified branches
git branch -D `git branch | grep -E '^[^\*]' | grep -Fv "master" | grep -Fv "develop"`
@mohsinhijazee
mohsinhijazee / encdec.py
Last active December 15, 2016 15:38
2 way encryption decryption based on pycrypto
# Inspired and adopted from https://gist.github.com/sekondus/4322469
# COMES WITH ABOSLUTELY NO WARRANTY OF ANY KIND.
# TOTAL FREEWARE, NO CLAIMS MADE OF ANY SORT.
# SELL IT, BURN IT, PRETEND ITS YOUR OWN.
# RELEASED UNDER NOBODY CARES LICENSE.
import os
import base64
from Crypto.Cipher import AES