Skip to content

Instantly share code, notes, and snippets.

@captn3m0
captn3m0 / Bash 1 liners
Created Apr 15, 2011
One liners for doing common things in bash
View Bash 1 liners
#delete all files in current directory with 0 size
rm -f $(find . -empty)
View pidgin-behind-firewalls
#For Pidgin
Protocol: XMPP
Username: <your username>
Domain: gmail.com
Password: <your password>
Connection Security: Use old-style SSL
Connect Port: 443
Connect Server: talk.google.com
#For Facebook
View gist:1134621
List of server names :
- jade
- pearl
- beryl
- ruby
- quartz
- moonstone
- onyx
- amber
@captn3m0
captn3m0 / LICENSE.txt
Created Sep 28, 2011 — forked from p01/LICENSE.txt
Sudoku Solver in 140bytes
View LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mathieu 'p01' Henri <http://www.p01.org/releases/>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@captn3m0
captn3m0 / msgboy.txt
Created Oct 18, 2011
MsgBoy Console Log
View msgboy.txt
Attempting to register
https://ssl.google-analytics.com/ga.js Failed to load resource
webintents.min.js:15 Webintents frame ready
webintents.min.js:15 Attempting to register
Msgboy : Loaded inbox for 1318926976197695
Msgboy : Websocket connecting to ws://msgboy.com:5280
Msgboy : Websocket disconnected
Msgboy : Msgboy is disconnected. Reconnect in 1 seconds.
Msgboy : Msgboy is connecting.
Msgboy : Websocket connecting to ws://msgboy.com:5280
@captn3m0
captn3m0 / abtme.html
Created Jan 21, 2012
Aarti's About Me Page
View abtme.html
<html>
<head>
<title>About Aarti Dwivedi
</title>
<link rel="stylesheet" type="text/css" href="mystyle.css"/>
</head>
<body>
<img src="me.jpg" alt="how people see me">
<div id="table1">
<table>
@captn3m0
captn3m0 / nvm-install.sh
Last active Sep 30, 2015
Node Installation via nvm on Ubuntu
View nvm-install.sh
git clone https://github.com/creationix/nvm.git ~/.nvm #clone the repo
. ~/.nvm/nvm.sh #load nvm
echo ". ~/.nvm/nvm.sh" >> ~/.bashrc #add nvm to bashrc, so it loads automatically
nvm install v0.8.16 #install nvm (will download binaries)
nvm use v0.8.16
#load this version as default from next time
nvm alias default v0.8.16
@captn3m0
captn3m0 / 01-Introduction.mkd
Last active Oct 6, 2015
Quick Primer to Software Development
View 01-Introduction.mkd

This document is guided at SDSLabs members, but should be equally valid to anyone working in technology.

I've tried to keep all advice language agnostic and independent from any technology. This is like a series of short blog posts I've condensed to a single gist. Feel free to fork and give some more of such advice.

View config.json
{
"name":"Test",
"subtext":"its static",
"twitter":"capt_n3m0",
"email":"nemo@sdslabs.co.in",
"url":"http://captnemo.in",
"posts":[
{
"title":"[http://localhost/](Demo)",
"id":2908382
@captn3m0
captn3m0 / index.mkd
Created Jun 16, 2012 — forked from AartiNdi/Hash Functions.
Brief summary of what I know about hash functions
View index.mkd

##BLOG ON CRYPTOGRAPHY

Today, people in general relate to cryptography mostly in regard to the security of their passwords. The passwords are worthless if others have resources to know it.

Today most of the websites dont simply use cryptographic hash functions like SHA256, MD5 etc. directly on the password. Instead random bits ( salt ) are added while encrypting them so that even when two users enter the same password the hashes that are generated are different from each other.

Hashes like SHA1 , SHA256, MD5 etc. are general purpose hashes. They have been designed to hash a large amount of data as quickly as possible.

An encryption algorithm for securely storing your password should have the following characteristics: