Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Please Test.

Rémi Audebert audebert

💭
Please Test.
  • France
View GitHub Profile
View repro.py
import time
import threading
def foo():
print('foo')
def bar():
print('bar')
View repro
Disassembly of bar:
11 0 LOAD_GLOBAL 0 (print)
2 LOAD_CONST 1 ('bar')
4 CALL_FUNCTION 1
6 POP_TOP
8 LOAD_CONST 0 (None)
10 RETURN_VALUE
Disassembly of delayed:
18 0 LOAD_GLOBAL 0 (time)
@audebert
audebert / gist:4a2754f0145d11c84f2525826ab5f337
Created Apr 11, 2018
#prologin-staff mysql/php/drupal/
View gist:4a2754f0145d11c84f2525826ab5f337
20:39 <zopieux> seirl: on a pas besoin du mysql pour autre chose que le drupal ?
20:39 <seirl> non
20:41 <Bruce_> le drupal est encore up ? :D
20:41 <seirl> oui
20:41 <seirl> oldsite.prologin.org
20:41 <zopieux> halfr propose de le cloisonner dans une VM et j'approuve
20:41 <zopieux> on devrait pouvoir supprimer apache et php
20:41 <seirl> pourquoi vous voulez spawn des VM pour n'importe quoi
20:41 <zopieux> parce que drupal
20:42 <seirl> non mais ok mais faites un conteneur alors
View gist:ef6e206a27ededd1386cff48604e9335
[Description]
An issue was discovered on MECO USB Memory Stick with Fingerprint
MECOZiolsamDE601 devices. The fingerprint authentication requirement
for data access can be bypassed. An attacker with physical access can
send a static packet to a serial port exposed on the PCB to unlock the
key and get access to the data without possessing the required
fingerprint.
------------------------------------------
View gist:3833d552413f6355f7416192870a1943
#!/bin/bash
# Run this script if you are installing from an Arch Linux install media.
# It does a standalone clone and setup of sadm from the main git repository. If
# you are developping on SADM, directly use install_scripts/setup_sadm.sh
REPO_URL=https://github.com/prologin/sadm
BRANCH=2017-halfr-breaks-everything
if mount | grep --quiet archiso; then
View paris-i-prolofail
fail pendant l'installation du venv -> c'est bon c'est les packages qui ne
suppotent pas les wheels python (successeurs des eggs).
resolved ne prend pas en compte les DNS indiqués dans *.network -> euh si, wtf,
à investiguer
RFE: activer la réplication postgres ?
TODO: mettre à jour openresty
@audebert
audebert / lexer.rs
Last active Mar 20, 2016
Rust 1.0 lexer
View lexer.rs
// From: https://www.reddit.com/r/rust/comments/2ow729/writing_a_lexer/
use std::iter::Peekable;
fn main() {
let input = "abcdABCDabcd,".chars();
let tokenizer = Tokenizer::new(input);
for token in tokenizer {
println!("{:?}", token);
@audebert
audebert / RAID1+0
Last active Aug 29, 2015
NAS tests
View RAID1+0
root@archiso ~ # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 698.7G 0 disk
└─md127 9:127 0 698.5G 0 raid1
└─md124 9:124 0 1.8T 0 raid0
sdb 8:16 0 698.7G 0 disk
└─md127 9:127 0 698.5G 0 raid1
└─md124 9:124 0 1.8T 0 raid0
sdc 8:32 0 931.5G 0 disk
└─md126 9:126 0 931.4G 0 raid1
@audebert
audebert / gw
Created Apr 2, 2015
prologin libvirt
View gw
sudo ip link add prolo-lan type bridge
sudo ip link add prolo-upstream type bridge
sudo ip link set eno1 master prolo-upstream