Skip to content

Instantly share code, notes, and snippets.

@scriptnull
scriptnull / fbspam.js
Created April 10, 2015 19:28
Spam the facebook chats with help of fbspam.js
var message = "Testing Facebook Spam Script."; //spam message
var interval = 1 ; // in seconds
var count = 1000 ; //number of times to send
var notifyInterval = 5 ; //notify
var i = 0 ;
var timer = setInterval(function(){
document.getElementsByClassName('uiTextareaNoResize uiTextareaAutogrow _1rv')[0].value = message;
document.getElementsByClassName('_1ri uiButton uiButtonConfirm')[0].children[0].click();
i++;
if( i == count )
@scriptnull
scriptnull / variableEquator.js
Created June 20, 2015 02:24
This is a snippet that supplements scriptnull.github.io/foreachline. Usage: a = b; will be converted to b = a;
var variables = line.replace(';','').split('=');
line = variables[1] + ' = ' + variables[0] + ';' ;
@scriptnull
scriptnull / bootStrapTable.js
Created June 28, 2015 05:25
This is a snippet that supplements scriptnull.github.io/foreachline. Usage: variable = value ; will be converted to a Bootstrap Table JS Object. ( http://bootstrap-table.wenzhixin.net.cn/ )
var variableName = line.split('=')[0].trim();
line =JSON.stringify({ field: variableName , title: variableName, align: 'center', valign: 'bottom', sortable: true, visible: true }) + ',' ;
@scriptnull
scriptnull / CallBroadCastReceiverCheatSheet.java
Created July 14, 2015 18:57
Easily handle calling events in Android by making use of this cheatsheet
//outgoing
//07-14 23:57:20.874 9111-9111/tb360.com.healthhub D/MessageUploaderApp﹕ BR PhoneNumber nullState OFFHOOK
//07-14 23:57:25.544 9111-9111/tb360.com.healthhub D/MessageUploaderApp﹕ BR PhoneNumber nullState IDLE
//incoming , not attended , cut by receiver or dialer
//07-15 00:22:32.924 9111-9111/tb360.com.healthhub D/MessageUploaderApp﹕ BR PhoneNumber +919535915747State RINGING
//07-15 00:22:34.954 9111-9111/tb360.com.healthhub D/MessageUploaderApp﹕ BR PhoneNumber +919535915747State IDLE
//incoming , attended ,cut by receiver or dialer
//07-15 00:27:28.524 9111-9111/tb360.com.healthhub D/MessageUploaderApp﹕ BR PhoneNumber +919535915747State RINGING
@scriptnull
scriptnull / EntityModelPropsExtractor.js
Last active August 29, 2015 14:26
This is a snippet that supplements http://scriptnull.github.io/foreachline/#/ . usage: public int apple ; or public int apple { get; set;} ; gets converted into oldObject.apple = newObject.apple;
if(line.indexOf('[') > 0 || line == ''){
line = "";
}else{
line = line.trimLeft().split(' ')[2];
line = "oldBook." + line + " = " + "book." + line;
}
@scriptnull
scriptnull / git_alias.sh
Created January 4, 2016 19:00
All the Alias in my git workflow.
#show last commit
git config --global alias.last 'log -1 HEAD'
#list all docker images currently available
docker images
#create a container to run a docker image
#if not present,it tires to pull from dockerhub
docker run hello-world
#run docker in interactive mode with pseudo tty
docker run -i -t ubuntu
@scriptnull
scriptnull / gitlab-notify-url.js
Last active August 21, 2016 17:47
gitlab-notify url service
'use strict';
var uuid = require('node-uuid');
var url = require('url');
var actionMap = {
'register' : {
allowedHttpMethod : 'POST',
executor : register
},
@scriptnull
scriptnull / friendd-dev-first-time-setup.sh
Last active November 3, 2016 23:01
Use this to bring up friendd application
#!/bin/bash -e
BASE_DIR="$HOME/friendd"
GO_WORKSPACE_NAME="go-workspace"
GO_WORKSPACE_PATH="$BASE_DIR/$GO_WORKSPACE_NAME"
GO_SRC_PATH="$GO_WORKSPACE_PATH/src/github.com/friendd"
GO_PKG_PATH="$GO_WORKSPACE_PATH/pkg"
GO_BIN_PATH="$GO_WORKSPACE_PATH/bin"
mkdir $BASE_DIR

Keybase proof

I hereby claim:

  • I am scriptnull on github.
  • I am scriptnull (https://keybase.io/scriptnull) on keybase.
  • I have a public key ASC9kVUYPTEjDhkbeLZU-JN5EtLXbBl8Rwvk6ZczumvO9Qo

To claim this, I am signing this object: