Skip to content

Instantly share code, notes, and snippets.

View vinzdef's full-sized avatar
🍋
][__( ͡~ ͜ʖ ͡°)__][

Vincent De Feo vinzdef

🍋
][__( ͡~ ͜ʖ ͡°)__][
View GitHub Profile
import fetch from 'isomorphic-fetch'
export function retrieve(url, actionCreator, id = null, collection = null) {
return (dispatch, getState) => {
function done(data) {
dispatch(actionCreator(data))
}
if (id !== null) {
@vinzdef
vinzdef / arp-poison.sh
Created May 11, 2016 15:01
Simple arp poisoning tool
#!/bin/bash
DATA_DIR=".poison_result"
DEVICES_FILE="$DATA_DIR/device-list.txt"
NEMESIS_LOGFILE="$DATA_DIR/nemesis_log.txt"
IP_REGEX="[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}"
MAC_REGEX="[a-z0-9]\{2\}\:[a-z0-9]\{2\}\:[a-z0-9]\{2\}\:[a-z0-9]\{2\}\:[a-z0-9]\{2\}\:[a-z0-9]\{2\}"
if [ ! -d "$DATA_DIR" ]; then
# MAC ADDRESS SPOOFER
MAC=""
for i in {0..5}; do
VAL=$RANDOM
PART=$(printf "%2X" $VAL)
MAC+=$(printf "%.2s" $PART)
if [ $i -lt 5 ]
var $ = require('jquery')
var TouchManager = function (callbacks) {
this.touchState = {
currentY: null,
currentX: null,
startY: null,
startX: null,
0 - natas0
1 - gtVrDuiDfck831PqWsLEZy5gyDz1clto
2 - ZluruAthQk7Q2MqmDeTiUij2ZvWy2mBi
3 - sJIJNW6ucpu6HPZ1ZAchaDtwd7oGrD14
4 - Z9tkRkWmpt9Qr7XrR5jWRkgOU901swEZ
5 - iX6IOfmpN7AYOQGPwtn3fXpbaJVJcHfq
6 - aGoY4q2Dc6MgDq4oL4YtoKtyAg9PeHa1
7 - 7z3hEENjQtflzgnT29q7wAvMNfZdh0i9
8 - DBfUBfqQG69KvJvJ1iAbMoIpwSNQ9bWe
9 - W0mMhUcRRnG8dcghE4qvk3JA9lGt8nDl
@vinzdef
vinzdef / D.js
Created September 12, 2015 09:23
Formatted logging and debug utils
var ERROR_CSS = "background-color: #f44336; color: #B2DFDB;"
var WARN_CSS = "background-color: #FDD835; color: #B2DFDB;"
var INFO_CSS = "background-color: #BDBDBD; color: #B2DFDB;"
var DEBUG_CSS = "background-color: #9575CD; color: #ECEFF1;"
var D = function () { this.console = console }
D.prototype.printStyledArgs = function(passedArgs, css, fn) {
for (var i = 0; i < passedArgs.length; i++) {
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
const char X = 'X', O = 'O', EMPTY = ' ', TIE = 'T', NO_ONE = 'N';
using namespace std;
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
class Job {
public:
string name;
{
"bold_folder_labels": true,
"color_scheme": "Packages/Oasis Theme/Oasis.tmTheme",
"file_exclude_patterns":
[
"*.sublime-*"
],
"font_face": "Envy Code R",
"font_size": 8,
"ignored_packages":
@vinzdef
vinzdef / debounce.js
Created May 8, 2015 14:56
Debounce a function, simplified from _.js
function debounce (fn, wait){
var timeout;
return function(){
var context = this, args = arguments
var later = function() {
timeout = null
fn.apply(context, args)
}
clearTimeout(timeout)
timeout = setTimeout(later, wait)