Skip to content

Instantly share code, notes, and snippets.

View Keruspe's full-sized avatar
🦀
Smashing bugs to outerspace

Marc-Antoine Perennou Keruspe

🦀
Smashing bugs to outerspace
View GitHub Profile
keruspe@Lou ~ % bash
keruspe@Lou ~ $ echo $BASHOPTS
checkwinsize:cmdhist:complete_fullquote:expand_aliases:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
keruspe@Lou ~ $ echo $BASH_COMPAT
keruspe@Lou ~ $ BASH_COMPAT=3.2 bash
keruspe@Lou ~ $ echo $BASHOPTS
checkwinsize:cmdhist:compat32:complete_fullquote:expand_aliases:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
keruspe@Lou ~ $ echo $BASH_COMPAT
3.2
keruspe@Lou ~ % BASH_COMPAT=3.2 bash
keruspe@Lou ~ $ echo $BASH_COMPAT
3.2
keruspe@Lou ~ $ shopt -s compat32
keruspe@Lou ~ $ echo $BASH_COMPAT
32
In file included from ./include/linux/kernel.h:10:0,
from ./include/linux/skbuff.h:17,
from ./include/linux/ip.h:20,
from ./net/wireguard/compat/compat.h:528,
from <command-line>:0:
./include/linux/compiler.h:254:0: warning: "READ_ONCE" redefined
#define READ_ONCE(x) __READ_ONCE(x, 1)
In file included from <command-line>:0:0:
./net/wireguard/compat/compat.h:46:0: note: this is the location of the previous definition

Keybase proof

I hereby claim:

  • I am Keruspe on github.
  • I am keruspe (https://keybase.io/keruspe) on keybase.
  • I have a public key whose fingerprint is 97E0 576D A94A CF81 FFB0 CC38 47CC 6F68 F1C3 A943

To claim this, I am signing this object:

@Keruspe
Keruspe / stdin
Created February 3, 2016 14:37
stdin
diff --git a/src/parser.rs b/src/parser.rs
index 3945963..a0b9b53 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -334,13 +334,7 @@ fn parse_ustar00<'a, 'b>(i: &'a [u8], flag: &'b TypeFlag) -> IResult<&'a [u8], E
}
fn parse_ustar<'a, 'b>(i: &'a [u8], flag: &'b TypeFlag) -> IResult<&'a [u8], ExtraHeader<'a>> {
- chain!(i,
- tag!("ustar\0") ~
@Keruspe
Keruspe / toolchain-compat-symlinks-1.exheres-0
Created January 25, 2016 15:54
toolchain-compat-symlinks-1.exheres-0
@Keruspe
Keruspe / stdin
Created December 17, 2015 22:21
stdin
diff --git a/foo.cc b/foo.cc
index 3c4f06c..51e8965 100644
--- a/foo.cc
+++ b/foo.cc
@@ -33,11 +33,13 @@ Bank* Bank::global_instance = nullptr;
// Singleton instance of the bank
Bank* Bank::instance() {
// avoid multiple creations of a bank instance
- global_lock.lock();
if (global_instance == nullptr) {
@Keruspe
Keruspe / stdin
Created December 17, 2015 22:05
stdin
From e71bfae7f3a64f152cf7de9878f31e38b468ce1f Mon Sep 17 00:00:00 2001
From: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Date: Thu, 17 Dec 2015 23:05:19 +0100
Subject: [PATCH] lots of fixes lol
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
---
foo.cc | 34 +++++++++++++++++++++++-----------
1 file changed, 23 insertions(+), 11 deletions(-)
@Keruspe
Keruspe / stdin
Created December 15, 2015 17:57
stdin
gdm 577 0.0 0.0 275884 8108 ? Ssl 17:35 0:00 /usr/x86_64-pc-linux-gnu/libexec/gvfsd
gdm 701 0.0 0.0 289916 9992 ? Ssl 17:35 0:00 /usr/x86_64-pc-linux-gnu/libexec/gvfs-udisks2-volume-monitor
gdm 711 0.0 0.0 254856 4188 ? Ssl 17:35 0:00 /usr/x86_64-pc-linux-gnu/libexec/gvfs-goa-volume-monitor
keruspe 789 0.0 0.0 275884 6208 ? Ssl 17:35 0:00 /usr/x86_64-pc-linux-gnu/libexec/gvfsd
keruspe 859 0.0 0.0 289912 7868 ? Ssl 17:35 0:00 /usr/x86_64-pc-linux-gnu/libexec/gvfs-udisks2-volume-monitor
keruspe 864 0.0 0.0 263812 5824 ? Ssl 17:35 0:00 /usr/x86_64-pc-linux-gnu/libexec/gvfs-goa-volume-monitor
keruspe 898 0.0 0.0 191992 8848 ? Ssl 17:35 0:00 /usr/x86_64-pc-linux-gnu/libexec/gvfsd-metadata
keruspe 8785 0.0 0.0 290412 7500 ? Sl 17:53 0:00 /usr/x86_64-pc-linux-gnu/libexec/gvfsd-http --spawner :1.2 /org/gtk/gvfs/exec_spaw/0
keruspe 17031 0.0 0.0 430004 8932 ? Sl 18:25
@Keruspe
Keruspe / stdin
Created November 17, 2015 15:21
stdin
drwx-wx--T 2 root cron 4096 févr. 6 2014 crontabs