This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "wow... loading your aliases GGB" | |
alias gita='git add' | |
alias gitc='git commit -m' | |
alias gits='git status' | |
alias gitba='git branch -a' | |
alias gitl='git log' | |
alias gitd='git diff' | |
alias gitcm='git checkout master' | |
alias gitp='git pull' | |
alias gitpp='git push' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Port of http://www.ariel.com.au/a/python-point-int-poly.html in lua | |
-- # Determine if a point is inside a given polygon or not | |
-- # Polygon is a list of (x,y) pairs. This function | |
-- # returns True or False. The algorithm is called | |
-- # the "Ray Casting Method". | |
function point_inside_poly(x,y,poly) | |
-- poly is like { {x1,y1},{x2,y2} .. {xn,yn}} | |
-- x,y is the point | |
local inside = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python | |
# author : Giri Gaurav Bhatnagar | |
# email : [email protected] | |
# Sends a notification in the Notification Center | |
# when Battery is less than THRESHOLD value | |
# Needs terminal-notifier : https://github.com/julienXX/terminal-notifier | |
import os,time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.Desktop; | |
import java.io.IOException; | |
import java.net.URI; | |
import java.net.URISyntaxException; | |
public static void main(String args[]){ | |
Desktop desktop = java.awt.Desktop.getDesktop(); | |
try { | |
//specify the protocol along with the URL | |
URI oURL = new URI( |