This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
OF_VERSION=OpenFlow15 | |
ovs_setenv() { | |
local ovs_dir=$1 | |
OVS_RUNDIR=$ovs_dir; export OVS_RUNDIR | |
OVS_LOGDIR=$ovs_dir; export OVS_LOGDIR | |
OVS_DBDIR=$ovs_dir; export OVS_DBDIR | |
OVS_SYSCONFDIR=$ovs_dir; export OVS_SYSCONFDIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $argv[2], base64_decode($argv[1]), MCRYPT_MODE_ECB, "0") . "\n"; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export LC_ALL=C | |
get_top_of_version() { | |
ovs-vsctl get bridge "$1" protocol | sed -n 's/^.*"\([^"]*\)"]$/\1/p' | |
} | |
save_flows () { | |
for bridge; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <elf.h> | |
#include <fcntl.h> | |
#include <assert.h> | |
#include <unistd.h> | |
#if defined(__GLIBC__) && defined(__GLIBC_PREREQ) | |
#if __GLIBC_PREREQ(2, 16) | |
#include <sys/auxv.h> | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
BindsTo=bitcoind.service | |
After=bitcoind.service | |
[Service] | |
User=bitcoin | |
Group=bitcoin | |
Type=notify | |
ExecStart=/bin/sh -c 'while sleep 10; do /home/bitcoin/bin/bitcoin-cli ping && exec /usr/bin/systemd-notify --ready; done' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
LEDGER_LIVE_DESKTOP_VERSION=${1:-1.0.2} | |
TMPDIR=$(mktemp -d) | |
trap 'rm -rf "$TMPDIR"' EXIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: | |
# git clone --recurse --branch windows https://github.com/drizzt/grin.git | |
# cd grin | |
# wget -O Dockerfile https://gist.githubusercontent.com/drizzt/fa4d62fc1118b387078bc06bd6c69009/raw/Dockerfile | |
# docker build -t grin-mingw . | |
# docker run -ti --rm --user $(id -u) -v $PWD:/usr/src/grin grin-mingw | |
# ls target/x86_64-pc-windows-gnu/debug/grin.exe | |
FROM rust:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import aiohttp | |
import logging | |
from collections import defaultdict | |
import time | |
from telethon.sync import TelegramClient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
NANOVAULT_VERSION=${1:-1.2.1} | |
TMPDIR=$(mktemp -d) | |
trap 'rm -rf "$TMPDIR"' EXIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import json | |
import uuid | |
import lxml.html | |
import requests | |
def main(): | |
""" |