Skip to content

Instantly share code, notes, and snippets.

aeris aeris

Block or report user

Report or block aeris

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
aeris / migrate.rb
Created Oct 14, 2018
Migrate PrivateBin from filesystem to PostgreSQL
View migrate.rb
#!/usr/bin/env ruby
require 'awesome_print'
require 'pg'
require 'json'
con = PG.connect host: 'localhost', user: 'postgres', password: 'postgres', dbname: 'privatebin'
files = Dir['**/*.php'].sort
con.exec 'TRUNCATE TABLE paste'
aeris / death-letter-en.txt
Last active Nov 6, 2019
GDPR death letter
View death-letter-en.txt
Dear Sir/Madam:
I am writing to you in your capacity as data protection officer for your
company. In light of recent spam received on this email address,
I am making this request for access to personal data
pursuant to Article 15 of the General Data Protection Regulation.
I am concerned that your company’s information practices may be putting my
personal information at undue risk of exposure or in fact has breached its
obligation to safeguard my personal information.
aeris / death_letter.tex
Created Aug 9, 2018
Lettre de la mort GDPR
View death_letter.tex
View gist:66fe472ed6dfe9d0aa2db2bc69402bda
[42] pry(main)> f = { [] }
=> {}
[43] pry(main)> f[:foo] << :bar
=> [:bar]
[44] pry(main)> f
=> {}
[45] pry(main)> f.keys
=> []
[46] pry(main)> f[:bar]
=> []
aeris / .env
Created Apr 16, 2018
View .env
aeris / dice.ino
Last active Feb 18, 2018
Arduino dice (based on HelioxLab work :
View dice.ino
// Pour les LED
#define LED_PIN_1 2
#define LED_PIN_2 3
#define LED_PIN_3 4
#define LED_PIN_4 5
// Pour le capteur d’inclinaison
#define BUTTON_PIN 6
aeris / kitten.ino
Last active Feb 17, 2018
Kitten laser tower
View kitten.ino
// License: AGPLv3
#include <Servo.h>
#define MIN_DURATION 200
#define MAX_DURATION 500
#define MIN_FREEZE 100
#define MAX_FREEZE 200
#define LASER_PIN 9
class PanTilt {
aeris / gpgit-rspamc-learn
Last active Nov 4, 2017
rspamc spam learn with gpgit encrypted email
View gpgit-rspamc-learn
#!/usr/bin/env ruby
# License AGPLv3 (
IMAPS_USER = 'xxx'
KWALLET_APP = 'gpgit-rspamc-learn'
require 'awesome_print'
require 'net/imap'
aeris / export-photo.rb
Created Nov 2, 2017
Export photo Cozy v2
View export-photo.rb
#!/usr/bin/env ruby
require 'typhoeus'
require 'oj'
require 'base64'
require 'fileutils'
def get(url, params = {})
res = Typhoeus.get url, params: params, headers: {'Accept' => 'application/json'}
aeris / uncommitted
Created Oct 11, 2017
Detect uncommitted git changes
View uncommitted
#!/usr/bin/env ruby
require 'find'
require 'open3'
require 'optparse'
require 'ostruct'
options = do |opts|
opts.on('-u', '--[no-]untrack', 'Include untracked files') { |v| options.untrack = v }
You can’t perform that action at this time.