Skip to content

Instantly share code, notes, and snippets.

View matburt's full-sized avatar
😄

Matthew Jones matburt

😄
View GitHub Profile
@matburt
matburt / rbac.py
Last active March 8, 2016 20:50 — forked from j00bar/rbac.py
if is_used_by_job_template(cred):
if is_used_by_multiple_jts(cred):
duplicate_creds()
convert_cred_to_org_cred(cred)
else:
convert_cred_to_org_cred(cred)
elif cred.team:
convert_cred_to_org_cred(cred)
give_team_role_on_cred(cred, cred.team)
elif cred.user:
@matburt
matburt / gitversion.sh
Created January 16, 2012 18:47 — forked from seanf/VERSION-GEN
Generate Git Versions/revisions
#!/bin/bash
VERNAME=`git describe --long | sed "s/-g.*//g"`
VERCODE=`git rev-list --all | wc -l`
# Do something with the verson number here.
#include <stdio.h>
#include <stdint.h>
uint8_t* foo(){
static uint8_t out[2] = {1,2};
return out;
}
int main(int argv, char** argc){
uint8_t* bar = foo();
#!/usr/bin/python
"""
Criptosistema ACYMOS2 por Agustin, Kriptopolis
Notas:
"~" representa la "enye"
Los comentarios estan sin acentos y caracteres especiales