Skip to content

Instantly share code, notes, and snippets.

View drizzt's full-sized avatar

Timothy Redaelli drizzt

View GitHub Profile
@drizzt
drizzt / bitcoind-online.service
Created March 22, 2018 09:55
bitcoin service files
[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'
#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
#!/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
<?php
echo mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $argv[2], base64_decode($argv[1]), MCRYPT_MODE_ECB, "0") . "\n";
?>
#!/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
<?php
require 'xpub.php';
?>
<html>
<head></head>
<body>
<script src="//blockr.io/js_external/coinwidget/coin.js"></script>
<script>
CoinWidgetCom.go({
wallet_address: '<?php echo(get_bitcoin_address('xpub6CWiJoiwxPQni3DFbrQNHWq8kwrL2J1HuBN7zm4xKPCZRmEshc7Dojz4zMah7E4o2GEEbD6HgfG7sQid186Fw9x9akMNKw2mu1PjqacTJB2')); ?>',
require 'json'
require 'uri'
require 'net/http'
uri = URI('https://medium.com/@terremotocentroitalia/latest')
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
req = Net::HTTP::Get.new(uri, 'Accept' => 'application/json')
http.request(req)
end
http://hlstv-g4.swisscom.com/iphone/smil:2204_iPhone.smil/playlist.m3u8?NHM=vyqqqqqxytu&NHM6=y&N6=MLKP5E6&J=yvvxvzssqttrv&E=xrrzz&76=x&6HM=TLOWUHaIBCLaB86PEy&F=-yMPtKMNzvMwwuqstqtzzutwvxMLyNvwu&MSK=true
@drizzt
drizzt / 00-README.md
Last active March 10, 2016 18:11
keepassx 2.0.2 binary for Tails

This gist includes the keepassx 2.0.2 (with Twofish support), built under a Virtual Machine with a vanilla Debian 8.3 (i386) using the following commands (as root):

apt-get install build-essential cmake libqt4-dev libgcrypt11-dev zlib1g-dev libxtst-dev makeself wget ca-certificates

ver=2.0.2
wget https://www.keepassx.org/releases/$ver/keepassx-$ver.tar.gz
tar xzf keepassx-$ver.tar.gz
cd keepassx-$ver
/*
Codo Player Free 2.1
codoplayer.com
Codo Player Free is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free Software Foundation,
either version 3 of the License, or (at your option) any later version.
You should have received a copy of the GNU General Public License along with Codo Player.
If not, see <http://www.codoplayer.com/policy/license/free>.