Skip to content

Instantly share code, notes, and snippets.

View tomahock's full-sized avatar

João Pina tomahock

View GitHub Profile
{"viana do castelo":{"id":2601,"concelhos":[{"id":2602,"parentId":2601,"typeId":6,"descriptionShort":"Arcos de Valdevez","final":false,"resultados":{"votingState":"Published","availableMandates":0,"totalBoycotts":0,"subscribedVoters":24107,"blankVotes":358,"blankVotesPercentage":2.44,"nullVotes":145,"nullVotesPercentage":0.99,"totalVoters":14659,"percentageVoters":60.81,"totalMandates":7,"resultsParty":[{"id":1779,"typeId":1,"acronym":"PPD\/PSD","votes":8600,"percentage":58.67,"mandates":5,"presidents":1,"absoluteMajority":1},{"id":1758,"typeId":1,"acronym":"PS","votes":3505,"percentage":23.91,"mandates":2,"presidents":0,"absoluteMajority":0},{"id":1762,"typeId":1,"acronym":"CH","votes":1635,"percentage":11.15,"mandates":0,"presidents":0,"absoluteMajority":0},{"id":1759,"typeId":1,"acronym":"CDS-PP","votes":244,"percentage":1.66,"mandates":0,"presidents":0,"absoluteMajority":0},{"id":1760,"typeId":2,"acronym":"PCP-PEV","votes":172,"percentage":1.17,"mandates":0,"presidents":0,"absoluteMajority":0}]}},{"id":26
@tomahock
tomahock / keybase.md
Created November 25, 2019 15:36
keybase.md

Keybase proof

I hereby claim:

  • I am tomahock on github.
  • I am tomahock (https://keybase.io/tomahock) on keybase.
  • I have a public key whose fingerprint is B854 C81F BF98 1A55 6529 363A AE40 F06C 84EB 410D

To claim this, I am signing this object:

@tomahock
tomahock / gist:ba58d8aae8e1a8d1570bc09428401550
Last active August 28, 2019 11:46
Know who unfollows you on Twitter

Only catch the first one. will update it soon.

  1. Go to a person profile that follows someone that you suspect that blocks you.
  2. Click on that person 'Following'
  3. Open Console
  4. execute setInterval(function(){window.scrollTo(0,document.body.scrollHeight);},500);
  5. execute $('.blocks-you').parent().parent().parent().parent().parent().find('a').attr('href')
  6. check the console :)
0x1533284D3bdB205900251DD3a6803c84AEAd55A7
@tomahock
tomahock / ethtestnet-install-config.md
Last active May 17, 2017 14:50
Install and running Eth Testnet for example purposes only

Install and running Eth Testnet

Geth

Install

  • $ sudo apt-get install software-properties-common
  • $ sudo add-apt-repository -y ppa:ethereum/ethereum
  • $ sudo apt-get update
  • $ sudo apt-get install ethereum

Prepare

{
"config": {
"chainId": 15,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
},
"difficulty": "20",
"gasLimit": "2100000",
"alloc": {
@tomahock
tomahock / TADA68 firmware flash how to
Last active December 2, 2018 03:17
TADA68 firmware flash how to
Build your layout here: http://123.57.250.164:3000/
```
$ git clone https://github.com/dfu-programmer/dfu-programmer.git
$ cd dfu-programmer
$ ./bootstrap.sh
$ ./configure
$ make
$ make install
```
@tomahock
tomahock / parser.php
Last active August 13, 2024 13:48
Fogos.pt first PDF parser
<?php
/**
* Created by PhpStorm.
* User: tomahock
* Date: 10/08/15
* Time: 01:05
*/
require_once '../vendor/autoload.php';
require_once '../lib/DatStore.php';
@tomahock
tomahock / env.php
Created January 17, 2017 16:21
php env
<?php
echo '<pre>';
print_r($_SERVER);
= Y
:neo4j-version: 2.3.0
:author: Tomahock
:twitter: @tomahock
:style: red:ARTICLE(desc) blue:SOURCE(desc) green:ARTICLE(desc)
== Introduction
Artigos - Vermelho
Sources - Azul