Skip to content

Instantly share code, notes, and snippets.

View audebert's full-sized avatar
💭
Please Test.

Rémi Audebert audebert

💭
Please Test.
View GitHub Profile
import time
import threading
def foo():
print('foo')
def bar():
print('bar')
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 April 11, 2018 18:03
#prologin-staff mysql/php/drupal/
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
[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.
------------------------------------------
#!/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
@audebert
audebert / paris-i-prolofail
Last active April 9, 2016 07:56
Prologin SADM
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 March 20, 2016 21:14
Rust 1.0 lexer
// 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 August 29, 2015 14:18
NAS tests
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 April 2, 2015 18:12
prologin libvirt
sudo ip link add prolo-lan type bridge
sudo ip link add prolo-upstream type bridge
sudo ip link set eno1 master prolo-upstream