Skip to content

Instantly share code, notes, and snippets.

View PierreZ's full-sized avatar
👨‍💻
Working from home

Pierre Zemb PierreZ

👨‍💻
Working from home
View GitHub Profile
@PierreZ
PierreZ / hbase.md
Last active January 27, 2019 21:27
{
  "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
 },
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)
<?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/"/>
#include <Keyboard.h>
void setup() {
pinMode(2, INPUT_PULLUP);
// pinMode(4, INPUT_PULLUP);
pinMode(13, OUTPUT);
Keyboard.begin();
}
void loop() {
#!/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
package hrpc
import (
"context"
"github.com/golang/protobuf/proto"
"github.com/tsuna/gohbase/pb"
)
// AssignRegion represents a AssignRegion Hbase call request.
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

Name ideas

netinfo

Ideas

  • show interfaces stat (using /proc/net/dev)
  • -w option to watch. Watching for file descriptor will provide stream of events
  • search for process should include:
  • systemd service
FROM danisla/hadoop:2.7.3
ENV VERSION 1.3.1
ENV DESTINATION /opt/hbase
WORKDIR /
ADD http://archive.apache.org/dist/hbase/${VERSION}/hbase-${VERSION}-bin.tar.gz /
RUN tar -xvf /hbase-${VERSION}-bin.tar.gz
RUN ls /