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 / 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 / prog-100.sh
Created September 26, 2015 14:28
Trend Micro CTF Programming 100 Challenge Solution
#!/bin/bash
ROOT='http://ctfquest.trendmicro.co.jp:43210'
URL="$ROOT/click_on_the_different_color"
function get_coord() {
IMAGE=$1
COLOR=`convert $IMAGE -define histogram:unique-colors=true -format %c histogram:info:- | head -2 | tail -1 | grep -oe '#[A-Z0-9]\{6\}'`
CORDS=`convert $IMAGE txt:- | grep "$COLOR"|head -1|cut -d ':' -f 1`
X=`echo $CORDS|cut -d ',' -f 1`
Y=`echo $CORDS|cut -d ',' -f 2`
@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.html
Created June 16, 2012 10:13 — forked from demonslayer68/Injection attacks.md
a simple guide to injection attacks
<html>
<body>
<form action='submit.php' method='get'>
Enter your name : <input type='text' name='name' /><br />
<input type='submit' value='Submit' />
</form>
</body>
</html>