Skip to content

Instantly share code, notes, and snippets.

View argaghulamahmad's full-sized avatar
🎯
Focusing

Arga Ghulam Ahmad argaghulamahmad

🎯
Focusing
View GitHub Profile
@argaghulamahmad
argaghulamahmad / zsh.md
Created September 23, 2017 02:41 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
@argaghulamahmad
argaghulamahmad / ubuntu_agnoster_install.md
Created September 23, 2017 11:44 — forked from renshuki/ubuntu_agnoster_install.md
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH

@argaghulamahmad
argaghulamahmad / ubuntu-install-applications.md
Created September 24, 2017 06:49
Ubuntu 16.04 Unity configs and apps
@argaghulamahmad
argaghulamahmad / README.md
Created July 17, 2018 04:14 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
/* *******************************************************************************************
* GLOBAL CONFIG
* Vue.config is an object containing Vue’s global configurations.
* You can modify its properties listed below before bootstrapping your application.
* https://vuejs.org/v2/api/#Global-Config
* ******************************************************************************************* */
// Configure whether to allow vue-devtools inspection
Vue.config.devtools = true
@argaghulamahmad
argaghulamahmad / .gitlab-ci.yml
Last active October 31, 2018 14:16
func & unit test gitlab yml config
stages:
- test
- deploy
UnitTest:
image: python:3.6
stage: test
before_script:
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
- echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
@argaghulamahmad
argaghulamahmad / docker-compose.yml
Created February 19, 2019 05:00
AdHub's Stack Config
version: '2'
services:
database:
image: postgres:latest
volumes:
- data:/var/lib/postgresql
ports:
- "21202:5432"
web:
class GDA:
def __init__(self):
self.phi = None
self.sigma = None
self.mu0 = None
self.mu1 = None
# update phi, sigma, mu0(mean 0), mu1(mean 1) here
def fit(self, X, y):
# -- alias --
## tools
alias vpn-ui='while true; do sudo openvpn /etc/openvpn/VPN-UI.ovpn; done'
alias howmuch='find . -type f | wc -l'
alias alice="kill $(ps -A -ostat,ppid | awk '/[zZ]/ && !a[$2]++ {print $2}')"
alias anaconda="source ~/.conda-initializer.sh"
alias update="sudo apt-get autoremove; du -sh ~/.cache/thumbnails; sudo rm -rf ~/.cache/thumbnails/*; sudo du -sh /var/cache/apt; sudo apt-get clean; sudo apt-get update; sudo apt-get upgrade"
## brightness
alias brightlow="echo 50 | sudo tee /sys/class/backlight/intel_backlight/brightness"
function pathcalculator(n)
plot([-1 1],[0,0],'k',[0 0],[-1 1],'k');hold on
t=0:.02:1;
xdata = zeros(1,n);
ydata = zeros(1,n);
for i=1:n
[x,y] = ginput(1) % get three mouse clicks
plot(x, y, 'bo');