Skip to content

Instantly share code, notes, and snippets.

View tariquesani's full-sized avatar

Dr. Tarique Sani tariquesani

View GitHub Profile

Keybase proof

I hereby claim:

  • I am tariquesani on github.
  • I am tariquesani (https://keybase.io/tariquesani) on keybase.
  • I have a public key ASAVmcBqc3-h15UgX6kWGuquaK4NJ3lbOnrkf3y8LK2HPwo

To claim this, I am signing this object:

@tariquesani
tariquesani / myinstapy.py
Created December 13, 2018 10:11
A wee bit complex InstaPy script.
import random
import traceback
import sys
import requests
from instapy import InstaPy
from instapy.util import smart_run
from tendo import singleton
bot = singleton.SingleInstance() # will sys.exit(-1) if other instance is running
@tariquesani
tariquesani / index.html
Last active November 6, 2018 03:50
Sort Values for life coaching!
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<style>
@tariquesani
tariquesani / bash_aliases.sh
Created March 21, 2018 05:49 — forked from Fuxy22/bash_aliases.sh
Bash Script functions to Manage /etc/hosts file for adding/removing hostnames.
# remove specified host from /etc/hosts
function removehost() {
if [[ "$1" ]]
then
HOSTNAME=$1
if [ -n "$(grep $HOSTNAME /etc/hosts)" ]
then
echo "$HOSTNAME Found in your /etc/hosts, Removing now...";
sudo sed -i".bak" "/$HOSTNAME/d" /etc/hosts
@tariquesani
tariquesani / resizeimages
Last active August 2, 2016 06:30
QnD bash script to resize images for Lektor content
#!/bin/bash
echo "Started watching (Press CRTL+C to quit) "
while true; do
inotifywait -q -e moved_to -r ./content |
while read path action file; do
echo "The file '$file' appeared in directory '$path' via '$action'"
if [ $file == 'contents.lr' ]
then