created by xhanze10
- Run the crash utility on core dump -
crash vmlinux vmcore
KERNEL: vmlinux
DUMPFILE: vmcore [PARTIAL DUMP]
CPUS: 8
#!/bin/bash | |
now=$(date +%s)000 | |
curl -s -H "Content-Type: application/json" -H 'x-api-key:PDh^2-$-M]8(dG8E+Q,FR}zsfz"Q~:N2pp\ykmg9ZEgKVrh42PHS?^sQ6<3;X,?-' https://app.zssk.sk/api/v1/train/delay -d '[{"trainNumber":"'$1'","travelDate":'$now'}]' | jq |
#!/bin/bash | |
branch=$(git rev-parse --abbrev-ref HEAD) | |
line=$(head -n1 "$1") | |
if [ -z "$line" ]; then | |
sed -i "1s,^,$branch: ," "$1" | |
fi | |
#include <stdlib.h> | |
typedef int rbq_val_t; | |
struct rbq_t { | |
rbq_val_t *buffer; | |
size_t capacity, size; | |
size_t p; | |
}; | |
void init_rbq(struct rbq_t *Q, size_t capacity) { |
#!/bin/python | |
import os, random, sys | |
CMD = 'mpv --really-quiet --vid=no "{}"' | |
if len(sys.argv) != 3: | |
print(f"Usage {sys.argv[0]} FILE_A FILE_B") | |
sys.exit(1) |
I hereby claim:
To claim this, I am signing this object:
from itertools import product | |
def lazy_product(*iterables): | |
iters = [[i.__iter__(), [], False] for i in iterables] | |
def _p_next(i, il, _): | |
z = i.__next__() | |
il.append(z) | |
return z | |
s = True |
lambda n: list(chain.from_iterable(chain.from_iterable(map(list, [chain.from_iterable(map(lambda s: [[[(-1 if i in j else 1)*int(i in s) for i in range(n)] for j in combinations(s[1:],q)] for q in range(len(s))], combinations(range(n),M))) for M in range(1,n+1)])))) |
<link rel="import" href="../paper-tabs/paper-tabs.html"> | |
<link rel="import" href="../paper-tabs/paper-tab.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |