Skip to content

Instantly share code, notes, and snippets.

View DNA's full-sized avatar

Leonardo Prado DNA

View GitHub Profile
@DNA
DNA / bgp-table-process.php
Last active December 20, 2015 12:08
Process a BGP table, returning the tabulated data into an array
<?php
/**
* Código feito em PHP, Haters Gonna Hate! :P
*
* Brincadeiras a parte, foi a forma mais eficiente de resolver o
* problema, tenho certeza que passar a lógica pra Python pra vc vai
* ser fichinha! :P
*/
@DNA
DNA / keybase.md
Last active August 29, 2015 14:00
keybase.md

Keybase proof

I hereby claim:

  • I am DNA on github.
  • I am leonardodna (https://keybase.io/leonardodna) on keybase.
  • I have a public key whose fingerprint is 246A 18FC 2802 CE92 1BA6 9656 5242 8DE1 A4E9 0A33

To claim this, I am signing this object:

@DNA
DNA / autophoto.sh
Created August 26, 2015 17:24
take photo and screenshot every 5 minutes
#!/bin/bash
# 0/5 * * * * $HOME/Code/autophoto.sh >> /dev/null
if [ ! -d "$HOME/Pictures/AutoPhotos/screen/$(date +%Y%m%d)/" ]; then
mkdir -p "$HOME/Pictures/AutoPhotos/screen/$(date +%Y%m%d)/"
fi
if [ ! -d "$HOME/Pictures/AutoPhotos/picz/$(date +%Y%m%d)/" ]; then
mkdir -p "$HOME/Pictures/AutoPhotos/picz/$(date +%Y%m%d)/"
fi