Skip to content

Instantly share code, notes, and snippets.

View Alafazam's full-sized avatar

Alaf Azam Khan Alafazam

View GitHub Profile
@Alafazam
Alafazam / managePom.py
Created June 3, 2020 09:48 — forked from dizzythinks/managePom.py
Read a pom.xml and get version or update it in Python
def managePom(update=False):
from xml.etree import ElementTree as et
ns = "http://maven.apache.org/POM/4.0.0"
et.register_namespace('', ns)
tree = et.ElementTree()
tree.parse('pom.xml')
p = tree.getroot().find("{%s}version" % ns)
if update:
p.text = update
tree.write('pom.xml')
@Alafazam
Alafazam / sites.txt
Created January 29, 2018 07:06 — forked from addyosmani/sites.txt
Sites using Webpack in production (BigQuery)
http://www.corral.net/
http://www.arizonasportsfans.com/
http://www.oi.com.br/
http://www.likeable.com/
http://www.nysportsday.com/
http://www.tstllc.net/
http://www.statnews.com/
http://www.springmobile.com/
http://www.folhadeparnaiba.com.br/
http://www.bilibili.com/
@Alafazam
Alafazam / day-mode
Created December 16, 2017 08:22 — forked from Skehmatics/day-mode
#!/bin/bash
# export DBUS_SESSION_BUS_ADDRESS environment variable because cron hates me
PID=$(pgrep -u USER gnome-session-b)
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-)
/usr/bin/gsettings set org.gnome.shell.extensions.user-theme name 'Flat-Plat'
/usr/bin/gsettings set org.gnome.desktop.interface gtk-theme 'Flat-Plat'
/usr/bin/gsettings set org.gnome.desktop.background picture-uri 'file://WALLPAPER-PATH'
/usr/bin/gsettings --schemadir ~/.local/share/gnome-shell/extensions/drop-down-terminal@gs-extensions.zzrough.org set org.zzrough.gs-extensions.drop-down-terminal background-color 'rgb(69,90,100)'
@Alafazam
Alafazam / tmux_local_install.sh
Last active February 20, 2017 21:14 — forked from ryin/tmux_local_install.sh
bash script for installing tmux without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=2.3
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
@Alafazam
Alafazam / Bubbly....markdown
Last active February 20, 2016 07:53 — forked from anonymous/Bubbly....markdown
Bubbly...
@Alafazam
Alafazam / comparison.md
Last active January 3, 2016 13:10
Comparison between different hosting providers

Comparison between different hosting providers

Service Provider Plan cost RAM Storage CPU
Digital Ocean $80/ mo 8GB 80GB SSD 4 cores
Linode $80/ mo 8GB 192GB SSD 6 cores
Hostgater $89.95/mo 2GB 120GB 2 cores
a_small_orange $90*/mo 6GB 150GB 6 cores
@Alafazam
Alafazam / gist:09a44faa01cd8fb16120
Created December 31, 2015 21:21 — forked from entaroadun/gist:1653794
Recommendation and Ratings Public Data Sets For Machine Learning

Movies Recommendation:

Music Recommendation:

@Alafazam
Alafazam / 0_reuse_code.js
Created December 11, 2015 12:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console