Skip to content

Instantly share code, notes, and snippets.

View git-ashish's full-sized avatar
🏠
Freelancing – Open to exciting opportunities

Ashish Singh git-ashish

🏠
Freelancing – Open to exciting opportunities
View GitHub Profile
@git-ashish
git-ashish / ubuntu-perl-ssl
Created February 22, 2013 18:35
Perl module for Secure Sockets Layer (SSL)
sudo apt-get install libnet-ssleay-perl
@git-ashish
git-ashish / perl-smtp-tls-module
Created February 22, 2013 18:39
Perl - Send Email using Net::SMTP::TLS Can be used for Gmail, Outlook, Yahoo etc.
sudo apt-get install cpanminus
sudo cpanm Email::Send::SMTP::TLS
@git-ashish
git-ashish / git-unstage-deleted-files
Last active December 16, 2015 10:18
Git - Unstage all deleted files
git status --porcelain | awk '$1 == "D" {print $2}' | xargs git reset HEAD
@git-ashish
git-ashish / gist:5539764
Created May 8, 2013 11:01
Recursively apply permissions depending on the file type
find . -type d -exec chmod 644 {} \;
@git-ashish
git-ashish / gist:5625296
Created May 22, 2013 04:44
Git - Get a file from a specific commit.
git show HEAD~4:file.html > oldFile.html
@git-ashish
git-ashish / git-track-remote-branch
Created May 30, 2013 09:15
Track a newly added Remote repo's branch
git remote show origin
git remote update
git fetch
git checkout -b local-name origin/remote-name
@git-ashish
git-ashish / index.html
Last active December 20, 2015 21:08
Scaling and Panning - d3.js colored world map using topojson
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.graticule {
fill: none;
stroke: #777;
stroke-opacity: .5;
stroke-width: .5px;
@git-ashish
git-ashish / README
Created September 24, 2013 06:45 — forked from rmarimon/README
Click on the x axis line and drag to change the scale of the graph.
@git-ashish
git-ashish / index.html
Last active October 18, 2017 10:00 — forked from bunkat/index.html
d3 - Swimlane zoomable
<!--
The MIT License (MIT)
Copyright (c) 2013 bill@bunkat.com
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
# 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