Skip to content

Instantly share code, notes, and snippets.

Pierre Zemb PierreZ

Block or report user

Report or block PierreZ

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
View gist:c1599fec8649cbbd637118ee745de351
linux-vdso.so.1 (0x00007ffdc45aa000)
libSDL2-2.0.so.0 => /lib64/libSDL2-2.0.so.0 (0x00007f4533950000)
libX11.so.6 => /lib64/libX11.so.6 (0x00007f453380b000)
libXrandr.so.2 => /lib64/libXrandr.so.2 (0x00007f45337fe000)
libcef.so => not found
libopus.so.0 => /lib64/libopus.so.0 (0x00007f453379c000)
libuv.so.1 => /lib64/libuv.so.1 (0x00007f453376b000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4533748000)
libssl.so.1.1 => /lib64/libssl.so.1.1 (0x00007f45336b2000)
libcrypto.so.1.1 => /lib64/libcrypto.so.1.1 (0x00007f45333d1000)
View hbase.md
{
  "fr.pierrezemb.www": {          // Row key
    "contents": {                 // Column family
      "content:html": {	          // Column qualifier
        "2017-01-01":             // A timestamp
          "<html>...",            // The actual value
        "2016-01-01":             // Another timestamp
          "<html>..."             // Another cell
      },
View keyby.java
final DataStream<Tuple4<PlanIdentifier, Alert, Plan, Operation>> alertStream =
// Partitioning Stream per AlertIdentifier
cleanedAlertsStream.keyBy(0)
// Applying a Map Operation which is setting since when an alert is triggered
.map(new SetSinceOnSelector())
.name("setting-since-on-selector").uid("setting-since-on-selector")
// Partitioning again Stream per AlertIdentifier
.keyBy(0)
View gist:ba37da39b6a18118d2c41afa28cc5686
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Pierre subscriptions in feedly Cloud</title>
</head>
<body>
<outline text="llvm" title="llvm">
<outline type="rss" text="LLVM Project Blog" title="LLVM Project Blog" xmlUrl="http://blog.llvm.org/feeds/posts/default" htmlUrl="http://blog.llvm.org/"/>
<outline type="rss" text="LLVM Weekly" title="LLVM Weekly" xmlUrl="http://llvmweekly.org/rss.xml" htmlUrl="http://llvmweekly.org/"/>
View keyboard.ino
#include <Keyboard.h>
void setup() {
pinMode(2, INPUT_PULLUP);
// pinMode(4, INPUT_PULLUP);
pinMode(13, OUTPUT);
Keyboard.begin();
}
void loop() {
View mount.sh
#!/bin/bash
mkdir /mnt/exherbo && mount /dev/nvme0n1p2 /mnt/exherbo && cd /mnt/exherbo
mount -o rbind /dev /mnt/exherbo/dev/
mount -o bind /sys /mnt/exherbo/sys/
mount -t proc none /mnt/exherbo/proc/
mount /dev/nvme0n1p1 /mnt/exherbo/boot/
env -i TERM=$TERM SHELL=/bin/bash HOME=$HOME $(which chroot) /mnt/exherbo /bin/bash
source /etc/profile
View flink.log
View yolo.go
package hrpc
import (
"context"
"github.com/golang/protobuf/proto"
"github.com/tsuna/gohbase/pb"
)
// AssignRegion represents a AssignRegion Hbase call request.
View gist:017b16e449090af681b2acf188e0e51d
cryptsetup luksOpen
cd /mnt/arch # or where you are preparing the chroot dir
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/
chroot .
mkinipcipio -p linux
View feedly.opml
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Pierre subscriptions in feedly Cloud</title>
</head>
<body>
<outline text="IT" title="IT">
<outline type="rss" text="TechCrunch" title="TechCrunch" xmlUrl="http://feeds.feedburner.com/Techcrunch" htmlUrl="https://techcrunch.com"/>
<outline type="rss" text="Scott Hanselman's Blog" title="Scott Hanselman's Blog" xmlUrl="http://feeds.feedburner.com/ScottHanselman" htmlUrl="https://www.hanselman.com/blog/"/>
You can’t perform that action at this time.