Skip to content

Instantly share code, notes, and snippets.

Freelancing – Open to exciting opportunities

Ashish Singh git-ashish

Freelancing – Open to exciting opportunities
View GitHub Profile
git-ashish / ubuntu-perl-ssl
Created Feb 22, 2013
Perl module for Secure Sockets Layer (SSL)
View ubuntu-perl-ssl
sudo apt-get install libnet-ssleay-perl
git-ashish / perl-smtp-tls-module
Created Feb 22, 2013
Perl - Send Email using Net::SMTP::TLS Can be used for Gmail, Outlook, Yahoo etc.
View perl-smtp-tls-module
sudo apt-get install cpanminus
sudo cpanm Email::Send::SMTP::TLS
git-ashish / git-unstage-deleted-files
Last active Dec 16, 2015
Git - Unstage all deleted files
View git-unstage-deleted-files
git status --porcelain | awk '$1 == "D" {print $2}' | xargs git reset HEAD
git-ashish / gist:5539764
Created May 8, 2013
Recursively apply permissions depending on the file type
View gist:5539764
find . -type d -exec chmod 644 {} \;
git-ashish / gist:5625296
Created May 22, 2013
Git - Get a file from a specific commit.
View gist:5625296
git show HEAD~4:file.html > oldFile.html
git-ashish / git-track-remote-branch
Created May 30, 2013
Track a newly added Remote repo's branch
View git-track-remote-branch
git remote show origin
git remote update
git fetch
git checkout -b local-name origin/remote-name
git-ashish / index.html
Last active Dec 20, 2015
Scaling and Panning - d3.js colored world map using topojson
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
.graticule {
fill: none;
stroke: #777;
stroke-opacity: .5;
stroke-width: .5px;
Click on the x axis line and drag to change the scale of the graph.
git-ashish / index.html
Last active Oct 18, 2017 — forked from bunkat/index.html
d3 - Swimlane zoomable
View index.html
The MIT License (MIT)
Copyright (c) 2013
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
View install-gdal
# Install subversion
sudo apt-get -y install subversion
# Install g++
sudo apt-get -y install g++
# Install Hierarchical Data Format library
# NOTE: This library is not necessarily needed, but was required
# in order for this to compile against a clean Ubuntu 12.04 LTS system.
# I didn't need it on a clean EC2 Ubuntu 12.10 instance, so