Skip to content

Instantly share code, notes, and snippets.

View tomahock's full-sized avatar

João Pina tomahock

View GitHub Profile
@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 11, 2017 17:43
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
function remove_accents($string) {
if ( !preg_match('/[\x80-\xff]/', $string) )
return $string;
$chars = array(
// Decompositions for Latin-1 Supplement
chr(195).chr(128) => 'A', chr(195).chr(129) => 'A',
chr(195).chr(130) => 'A', chr(195).chr(131) => 'A',
chr(195).chr(132) => 'A', chr(195).chr(133) => 'A',
chr(195).chr(135) => 'C', chr(195).chr(136) => 'E',