I hereby claim:
- I am danopia on github.
- I am danopia (https://keybase.io/danopia) on keybase.
- I have a public key ASBEZ12aAT05HKQDDSdJMNDPSp_-gSiMKCJD7tjQ67T3XAo
To claim this, I am signing this object:
this is the core of the github->IRC integration, it waits for new github hooks and calls notify() to send messages | |
https://gist.github.com/danopia/5bf79f4eb6f31857c1c95a96f313665b | |
this is the actual IRC-aware bit that talks to freenode | |
https://github.com/stardustapp/native-drivers/blob/master/irc-client/functions/open-connection.go | |
this codegen takes the IRC-aware code and compiles a standalone program that offers IRC as an API | |
https://github.com/stardustapp/core/tree/master/utils/stargen | |
this command-line program connects to the IRC API to send individual one-off messages |
[12:48:13] <redacted> uploading dog on bad internet, bear with me | |
[12:48:13] <redacted> uploading dog on bad internet, bear with me | |
[12:48:13] <redacted> rural cell service is abysmal | |
[12:48:13] <redacted> uploading dog on bad internet, bear with me | |
[12:48:13] <redacted> wow i can't even send text irc messages easily | |
[12:48:18] <redacted> rural cell service is abysmal | |
[12:48:18] <redacted> uploading dog on bad internet, bear with me | |
[12:48:18] <redacted> I've got no ideas which messages got through | |
[12:48:18] <redacted> irc sucks royal ass on spotty connections | |
[12:48:18] <redacted> uploading dog on bad internet, bear with me |
#!/bin/sh | |
set -ex | |
saPath="/run/secrets/kubernetes.io/serviceaccount" | |
ca=$(cat $saPath/ca.crt | base64 | tr -d '\n') | |
token=$(cat $saPath/token) | |
namespace=$(cat $saPath/namespace) | |
if [ ! -d ~/.kube ] | |
then mkdir ~/.kube |
scale = 3; | |
inAry = [[1,2],[3,4],[5,6]]; | |
outAry = new Array(inAry.length*scale).fill(0).map(_ => new Array(inAry[0].length*scale).fill(0)); | |
x1 = 0; xC = 0; | |
for (let x2 = 0; x2 < outAry.length; x2++) { | |
if (xC++ == scale) { x1++; xC = 1; } | |
y1 = 0; yC = 0; | |
for (let y2 = 0; y2 < outAry[0].length; y2++) { | |
if (yC++ == scale) { y1++; yC = 1; } | |
outAry[x2][y2] = inAry[x1][y1]; |
const DEFAULT_PACKAGES = [ | |
{ | |
sourceUri: 'platform://editor', | |
defaultKey: 'editor', | |
displayName: 'Editor', | |
mounts: { | |
'/data': { type: 'bind', source: 'account' }, | |
} | |
}, | |
{ |
$ starop enumerate path=/sessions/ee04f5312341/mnt depth=10 | |
>>> {"Op":"enumerate","path":"/sessions/ee04f5312341/mnt","depth":10} | |
0.00user 0.00system 0:00.04elapsed 11%CPU (0avgtext+0avgdata 4144maxresident)k | |
{ | |
"Children": [ | |
{ | |
"Name": "", | |
"Type": "Folder" | |
}, | |
{ |
{ | |
"mappings": { | |
"event": { | |
"dynamic_templates": [ | |
{ | |
"notanalyzed": { | |
"mapping": { | |
"type": "keyword", | |
"index": true, | |
"ignore_above": 10922 |
I hereby claim:
To claim this, I am signing this object:
[1672076.723289] java: page allocation stalls for 10968ms, order:0, mode:0x34200ca(GFP_HIGHUSER_MOVABLE|__GFP_WRITE) | |
[1672076.778589] CPU: 7 PID: 16793 Comm: java Not tainted 4.9.76-38.79.amzn2.x86_64 #1 | |
[1672076.782578] Hardware name: Xen HVM domU, BIOS 4.2.amazon 08/24/2006 | |
[1672076.782578] ffffc90008393948 ffffffff8133d5e2 ffffffff817c81a8 0000000000000001 | |
[1672076.782578] ffffc900083939d0 ffffffff8119f31a 034200ca00000000 ffffffff817c81a8 | |
[1672076.782578] ffffc90008393970 0000000000000010 ffffc900083939e0 ffffc90008393990 | |
[1672076.782578] Call Trace: | |
[1672076.782578] [<ffffffff8133d5e2>] dump_stack+0x63/0x81 | |
[1672076.782578] [<ffffffff8119f31a>] warn_alloc+0x13a/0x170 | |
[1672076.782578] [<ffffffff8119fcd5>] __alloc_pages_slowpath+0x915/0xc60 |
const fs = require('fs'); | |
let bulkBody = ''; | |
// transform /.kibana/_search?size=1000 output into a bulk index req | |
const hits = JSON.parse(fs.readFileSync('old-kibana-backup.json', 'utf8')); | |
hits.forEach(hit => { | |
const {_index, _type, _id, _source} = hit | |
bulkBody += JSON.stringify({index: {_index, _type, _id}}) + '\n'; | |
bulkBody += JSON.stringify(_source) + '\n'; |