Skip to content

Instantly share code, notes, and snippets.

@captn3m0
captn3m0 / Bash 1 liners
Created April 15, 2011 20:19
One liners for doing common things in bash
#delete all files in current directory with 0 size
rm -f $(find . -empty)
#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
List of server names :
- jade
- pearl
- beryl
- ruby
- quartz
- moonstone
- onyx
- amber
@captn3m0
captn3m0 / LICENSE.txt
Created September 28, 2011 14:16 — forked from p01/LICENSE.txt
Sudoku Solver in 140bytes
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 October 18, 2011 22:53
MsgBoy Console Log
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 January 21, 2012 08:19
Aarti's About Me Page
<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 September 30, 2015 12:47
Node Installation via nvm on Ubuntu
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 October 6, 2015 00:58
Quick Primer to Software Development

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.

{
"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 June 16, 2012 06:13 — forked from AartiNdi/Hash Functions.
Brief summary of what I know about hash functions

##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: