#
# This script builds a database containing credentials, in order to check if email+password have leak.
# For a few searchs, the grep command is perfect. No need of an aircraft carrier for fishing in a lake. ;)
# Data source contains 1.4 billon (yes, billon!) passwords from 4iQ (41GB large)
#
# PS: Use. Don't abuse !
#
mkdir 1.4B-password-dump/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include_recipe "apt" | |
cookbook_file "/etc/apt/sources.list.d/mysql.list" do | |
source "mysql.list" | |
mode 0644 | |
owner "root" | |
group "root" | |
notifies :run, resources(:bash => "mysql keys"), :immediately | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wget https://releases.hashicorp.com/terraform/0.11.4/terraform_0.11.4_linux_amd64.zip | |
unzip terraform_0.11.4_linux_amd64.zip | |
sudo mv terraform /usr/local/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# When you get bored in plane and want to play with your french friend | |
# | |
# $> python3 chiffres.py | |
# | |
# Enjoy ;) | |
import random | |
print("find:") | |
print(random.randint(100, 1000)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"flag" | |
"encoding/xml" | |
) | |
type Row struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function make_noise() { | |
say -v '?' | awk '{print $1}' | while read voice; do printf "using $voice...\\ | |
n"; say -v $voice "hello, this is me using the $voice voice"; sleep 1; done | |
} | |
function notify_coinbase_up() { | |
COUNTER=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head></head> | |
<body> | |
<div id="tweet" tweetID="934142793836089344"></div> | |
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script> | |
<script sync src="https://platform.twitter.com/widgets.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To store personal documents that really matter (such as tax reports, bank terms, | |
// employment conditions...) you should opt for a cloud storage (Dropbox, Google Drive...). | |
// Even if famous SaaS services might be safe enough to not make backups by ourselves, it | |
// may be even safer to not rely on them and setup this short script for copying a Drive folder | |
// into Dropbox. | |
// To generate a Dropbox access token, please follow this guide: http://99rabbits.com/get-dropbox-access-token/ | |
// Don't forget to setup a cronjob: | |
// 1- Click on 'Edit' menu > 'Current project's triggers' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import httplib2 | |
import apiclient | |
from oauth2client.client import OAuth2WebServerFlow | |
scopes = [ | |
'https://mail.google.com/', | |
'https://www.googleapis.com/auth/gmail.settings.basic', | |
'https://www.googleapis.com/auth/userinfo.profile', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "root", | |
"value": 1, | |
"children": [ | |
{ | |
"name": "(root)", | |
"value": 1, | |
"children": [ | |
{ | |
"name": "_handle.close", |