Skip to content

Instantly share code, notes, and snippets.

View spicyramen's full-sized avatar

Gonzalo Gasca Meza spicyramen

  • Silicon Valley
View GitHub Profile
@spicyramen
spicyramen / honeypot.py
Created February 22, 2018 10:10
Binary classifier
"""Honeypot classifier. Based on https://www.kaggle.com/mrklees/applying-keras-scikit-learn-to-titanic"""
import pandas as pd
import numpy as np
from keras.utils import to_categorical
from keras.models import Sequential
from keras.layers import Dense, Dropout
from sklearn.model_selection import train_test_split
from nltk.tokenize import word_tokenize
import pickle
import pprint
import json
"""
(heads, descs, keywords) = ([headline], [description], )
"""
@spicyramen
spicyramen / gist:aa73c7376381c66c1054
Created October 15, 2014 04:56
Send SIP Register message via Secure Web Sockets
__author__ = 'gogasca'
#!/usr/bin/python
import websocket
import thread
import time
import ssl
register = "REGISTER sip:open-ims.test SIP/2.0\r\n" +\
"Test-Header: 0\r\n" + \
@spicyramen
spicyramen / gist:9126932
Created February 21, 2014 01:12
qualy.c
/*
* qualy.c by Gonzalo Gasca -- 2013-06-01 -- v.1.0
*
* Copyright (c) 2013 Gonzalo Gasca
*
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.