Skip to content

Instantly share code, notes, and snippets.

View xmunoz's full-sized avatar
💜

Cristina xmunoz

💜
  • Quito
View GitHub Profile
@xmunoz
xmunoz / ctf_commands.md
Last active February 15, 2017 22:15
CTF Tools

Read a binary TLS certificate (exported from wireshark).

openssl x509 -inform DER -in cert.bin -text

Extract public key from certificate

openssl x509 -inform DER -in cert.bin -pubkey -noout > key.pub
@xmunoz
xmunoz / keybase.md
Last active September 11, 2017 18:35

Keybase proof

I hereby claim:

  • I am xmunoz on github.
  • I am xmun0x (https://keybase.io/xmun0x) on keybase.
  • I have a public key ASDOccCmlU8Kmx0_8ZQM5xnUV1Gc-I8A4YR__q1mvP9-5wo

To claim this, I am signing this object:

let buttons = `<button type="button" class="btn btn-warning lessFields"><span class="glyphicon glyphicon-minus"></span></button>
<button type="button" class="btn moreFields"><span class="glyphicon glyphicon-plus"></span></button>`;
prefillFields();
$(".moreFields").click(function() {
console.log("on click moreFields");
// TODO: refactor to permit more than 10 filters
var step = parseInt($(".moreFields").parent().get(0).id.slice(-1)[0]);
addNewField(step + 1);
this.remove();
@xmunoz
xmunoz / recurse_server.py
Last active November 8, 2016 20:55
recurse center pairing interview
from http.server import HTTPServer, BaseHTTPRequestHandler
import re
HOST, PORT = "localhost", 4000
INPUTS = {}
class HashHandler(BaseHTTPRequestHandler):
# assuming the challenge refers to HTTP GET requests
def do_GET(self):
regex = r"/(set|get)\?(\w+)=(\w+)"
@xmunoz
xmunoz / .gitconfig
Created October 10, 2016 20:27
gitconfig
[push]
default = current
[user]
name = Cristina Munoz
email = [email protected]
[core]
editor = /usr/local/bin/vim
pager = less
@xmunoz
xmunoz / molcajete.jl
Created October 8, 2016 15:21
try to learn julia
__precompile__()
module Molcajete
import Requests: get, post, put, delete, options, json
global base_url = "https://api.meetup.com/"
if !haskey(ENV, "MEETUP_API_TOKEN")
error("MEETUP_API_TOKEN environment variable is required.")
import random
from copy import deepcopy
class Piece:
def __init__(self, display, stuck = False):
self.display = display
self.stuck = stuck
# 4 x 4
self.height = len(display)
self.width = len(display[0])
@xmunoz
xmunoz / dead_links.go
Last active August 29, 2015 14:22
Finding dead links of underwater rugby teams
@xmunoz
xmunoz / permute.py
Created October 26, 2013 01:21
recursive permutations with memoization
#!/usr/bin/env python
import sys
import timing
from pprint import pprint
'''
Recurse elements in passed in string.
'''