Skip to content

Instantly share code, notes, and snippets.

View siegfried's full-sized avatar

siegfried

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@siegfried
siegfried / dashboard.json
Created March 9, 2021 18:10
Grafana Settings
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@siegfried
siegfried / .profile
Last active March 7, 2021 17:35
Cardano Script
CARDANO_TOPOLOGY=${HOME}/config/mainnet-topology.json
CARDANO_CONFIG=${HOME}/config/mainnet-config.json
CARDANO_PORT=12000
export HOME TERM CARDANO_TOPOLOGY CARDANO_CONFIG CARDANO_PORT
@siegfried
siegfried / metadata.json
Last active March 5, 2021 16:48
testnet-pool-metadata
{
"name": "Test PSI Pool",
"description": "The pool that tests all the pools",
"ticker": "TPSI0",
"homepage": "https://testnet.psionic.link"
}
@siegfried
siegfried / bruteforcers.txt
Last active February 24, 2021 13:25
OpenBSD SSH bruteforcers block
1.2.205.132
1.6.10.90
1.10.162.113
1.11.201.18
1.20.151.79
1.22.156.146
1.23.183.197
1.30.218.89
1.32.33.69
1.32.210.109
@siegfried
siegfried / doRedis-example.R
Created December 16, 2020 06:55
tune_bayes() example on `doRedis`
library(tidymodels)
library(modeldata)
data(cells)
set.seed(2369)
tr_te_split <- initial_split(cells %>% select(-case), prop = 3/4)
cell_train <- training(tr_te_split)
cell_test <- testing(tr_te_split)
@siegfried
siegfried / mkjail.sh
Last active May 28, 2021 14:36
A shell script to create chroot jail
#!/bin/sh
set -e
arch=`uname -m`
release=`uname -r`
show_help() {
cat << EOF
Usage: ${0##*/} [-h] [-m ARCH] [-r RELEASE] [-i IMAGE] [-d DIR] PATH
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@siegfried
siegfried / port_demo.c
Created June 9, 2017 06:26
Demo C port program for Erlang/Elixir
#include <unistd.h>
#include <stdint.h>
#include <errno.h>
#include <arpa/inet.h>
int
read_packet(unsigned char *buffer)
{
ssize_t nr;
uint16_t packet_size;