Skip to content

Instantly share code, notes, and snippets.

@daliborgogic
daliborgogic / GitDeleteCommands.ps1
Last active Jan 3, 2019 — forked from cmatskas/GitDeleteCommands.ps1
Git Delete Branch commands
View GitDeleteCommands.ps1
## Delete a remote branch
$ git push origin --delete <branch> # Git version 1.7.0 or newer
## Delete a local branch
$ git branch --delete <branch>
$ git branch -d <branch> # Shorter version
$ git branch -D <branch> # Force delete un-merged branches
## Delete a local remote-tracking branch
$ git branch --delete --remotes <remote>/<branch>
@daliborgogic
daliborgogic / nginx-geoip-module.md
Created Jun 12, 2018 — forked from VirtuBox/nginx-geoip-module.md
How to configure GeoIP module for Nginx
View nginx-geoip-module.md

Create a folder to store the databases :

mkdir -p /usr/share/GeoIP

Download Country IP database

wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gunzip GeoIP.dat.gz
@daliborgogic
daliborgogic / cities.csv
Created Aug 15, 2017 — forked from d3noob/.block
World map with zoom / pan and cities
View cities.csv
code city country lat lon
ZNZ ZANZIBAR TANZANIA -6.13 39.31
TYO TOKYO JAPAN 35.68 139.76
AKL AUCKLAND NEW ZEALAND -36.85 174.78
BKK BANGKOK THAILAND 13.75 100.48
DEL DELHI INDIA 29.01 77.38
SIN SINGAPORE SINGAPOR 1.36 103.75
BSB BRASILIA BRAZIL -15.67 -47.43
RIO RIO DE JANEIRO BRAZIL -22.90 -43.24
YTO TORONTO CANADA 43.64 -79.40
View install-postman.sh
#!/bin/bash
cd /tmp || exit
echo "Downloading Postman ..."
wget -q https://dl.pstmn.io/download/latest/linux?arch=64 -O postman.tar.gz
tar -xzf postman.tar.gz
rm postman.tar.gz
echo "Installing to opt..."
if [ -d "/opt/Postman" ];then
sudo rm -rf /opt/Postman
You can’t perform that action at this time.