Skip to content

Instantly share code, notes, and snippets.

Avatar

João Pina tomahock

View GitHub Profile
View 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 Aug 28, 2019
Know who unfollows you on Twitter
View gist:ba58d8aae8e1a8d1570bc09428401550

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 :)
@tomahock
tomahock / ethtestnet-install-config.md
Last active May 17, 2017
Install and running Eth Testnet for example purposes only
View ethtestnet-install-config.md

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

View Genesis.json example for an ethereum testnet
{
"config": {
"chainId": 15,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
},
"difficulty": "20",
"gasLimit": "2100000",
"alloc": {
@tomahock
tomahock / TADA68 firmware flash how to
Last active Dec 2, 2018
TADA68 firmware flash how to
View 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 Aug 11, 2017
Fogos.pt first PDF parser
View parser.php
<?php
/**
* Created by PhpStorm.
* User: tomahock
* Date: 10/08/15
* Time: 01:05
*/
require_once '../vendor/autoload.php';
require_once '../lib/DatStore.php';
View env.php
<?php
echo '<pre>';
print_r($_SERVER);
View gist:443900f65589f8456a69f6b88afcb948
= 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
View gist:62c80aa5ad168771b5c226de4c6c4de1
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',