Skip to content

Instantly share code, notes, and snippets.

View cabreraalex's full-sized avatar
👾

Alex Cabrera cabreraalex

👾
View GitHub Profile
@cabreraalex
cabreraalex / adult.csv
Created September 6, 2019 14:22
UCI Adult
We can't make this file beautiful and searchable because it's too large.
age,workclass,education,educational-num,marital-status,occupation,relationship,race,gender,hours-per-week,native-country,income
25,Private,11th,7,Never-married,Machine-op-inspct,Own-child,Black,Male,40,United-States,<=50K
38,Private,HS-grad,9,Married-civ-spouse,Farming-fishing,Husband,White,Male,50,United-States,<=50K
28,Local-gov,Assoc-acdm,12,Married-civ-spouse,Protective-serv,Husband,White,Male,40,United-States,>50K
44,Private,Some-college,10,Married-civ-spouse,Machine-op-inspct,Husband,Black,Male,40,United-States,>50K
18,?,Some-college,10,Never-married,?,Own-child,White,Female,30,United-States,<=50K
34,Private,10th,6,Never-married,Other-service,Not-in-family,White,Male,30,United-States,<=50K
29,?,HS-grad,9,Never-married,?,Unmarried,Black,Male,40,United-States,<=50K
63,Self-emp-not-inc,Prof-school,15,Married-civ-spouse,Prof-specialty,Husband,White,Male,32,United-States,>50K
24,Private,Some-college,10,Never-married,Other-service,Unmarried,White,Female,40,United-States,<=50K
! Solarized color scheme for the X Window System
!
! http://ethanschoonover.com/solarized
! Common
#define S_yellow #b58900
#define S_orange #cb4b16
#define S_red #dc322f
@cabreraalex
cabreraalex / imagetotext.py
Last active August 29, 2015 14:01
Simple script which reads an image of white and black tiles and converts it into ASCII
from PIL import Image
import binascii
i = Image.open("flag.png")
x = 0
y = 0
answer = ""
for x in range(0,361,20):
@cabreraalex
cabreraalex / birthday.sh
Created April 15, 2014 14:34
Colorful happy birthday message
#!/bin/bash
red='\e[0;31m'
blue='\e[0;34m'
yellow='\e[0;33m'
green='\e[0;32m'
purple='\e[0;35m'
white='\e[0;37m'
NC='\e[0m'
@cabreraalex
cabreraalex / image.py
Last active August 29, 2015 13:56
Attempt at Misc. 200 DEFKTHON CTF 2014
from PIL import Image
import numpy
flag = open("flag.txt")
pixels = flag.read().split("\n")
del pixels[-1]
myPixelsArray = ()