Skip to content

Instantly share code, notes, and snippets.

View pedro16v's full-sized avatar

Pedro Almeida pedro16v

View GitHub Profile
@pedro16v
pedro16v / timor-leste-admin-division.json
Last active March 25, 2019 07:22
Timor-Leste administrative division
{
"name": "Timor-Leste",
"description": "Administrative division of Timor-Leste",
"administrativePosts": [
{
"name": "Aileu",
"municipalities": [
{
"name": "Aileu",
"sucos": [
@pedro16v
pedro16v / tl-wn725n.md
Last active September 3, 2015 17:33 — forked from Couto/tl-wn725n.md
Install TL-WN725N on Raspbian

TL-WN725N (8188eu)

This was tested on the Raspbian wheezy (2014-01-07)

Update the system

apt-get update --fix-missing
apt-get upgrade
apt-get dist-upgrade

Keybase proof

I hereby claim:

  • I am pedro16v on github.
  • I am pedro16v (https://keybase.io/pedro16v) on keybase.
  • I have a public key whose fingerprint is 7ADF 89A3 C5CB 143A A6DF 7B74 4156 CC61 C4C1 98B2

To claim this, I am signing this object:

@pedro16v
pedro16v / Brewfile
Last active August 29, 2015 14:01
Brewfile
# REPOS
tap phinze/homebrew-cask
tap caskroom/versions
# SHELL
install autoconf
install gettext
install libevent
install mysql
install ossp-uuid
@pedro16v
pedro16v / ProcessMBID
Last active December 30, 2015 00:19
PHP MBID (UUID) format validator
function ProcessMBID($string) //check if MBID {
return !empty($string) && preg_match('/^\{?[A-Za-z0-9]{8}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{12}\}?$/', $string);
//^[a-f0-9]{8}-([a-f0-9]{4}-){3}[a-f0-9]{12}$
}