Skip to content

Instantly share code, notes, and snippets.

@guilhermednt
guilhermednt / check_intermedium_private_key_leak.sh
Created May 9, 2018 23:08
Verifying Banco Intermedium's private key leak
# Today the twitter user @ayubio said he had received the private key for a Brazillian bank's HTTPS certificate:
# - https://twitter.com/ayubio/status/994260981294469120
# - https://twitter.com/ayubio/status/994262029929246722
# - https://twitter.com/ayubio/status/994277992351391744
# To prove he actualy had the key, another user asked him to sign a message with such key and so he did:
# - http://pastebin.xyz/p?q=bXllODA
# The commands bellow will check that signature
# Store the message in a file (tweet.txt) in the same way @ayubio did:
@guilhermednt
guilhermednt / gist:bbc1ba43c298341acc5a7e5293414fa5
Created January 6, 2017 19:08
react-native run-android problem
$ react-native init AwesomeProject
This will walk you through creating a new React Native project in /home/.../AwesomeProject
Installing react-native...
Consider installing yarn to make this faster: https://yarnpkg.com
npm WARN deprecated node-uuid@1.4.7: use uuid module instead
├── UNMET PEER DEPENDENCY react@~15.4.0-rc.4
└─┬ react-native@0.40.0
├── absolute-path@0.0.0
├── art@0.10.1
├── async@2.1.4
### Keybase proof
I hereby claim:
* I am guilhermednt on github.
* I am gdnt (https://keybase.io/gdnt) on keybase.
* I have a public key whose fingerprint is E273 C1AA A1DA 3EE3 ADD7 B4AF 1FC6 30E0 2096 194A
To claim this, I am signing this object:
#/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"