Skip to content

Instantly share code, notes, and snippets.

View SteenSchutt's full-sized avatar

Steen Schütt SteenSchutt

View GitHub Profile
@SteenSchutt
SteenSchutt / dwm-alpha-6.2.diff
Created February 13, 2020 20:22
An updated patch for status bar transparency in suckless/dwm. 100% credit goes to vicooi. I stole all of this from this commit: https://notabug.org/vicooi/dwm/commit/502967ea50115579e8e650d9b28b58a341ad8735
diff --git a/config.def.h b/config.def.h
index 1c0b587..6a75355 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,23 +1,31 @@
/* See LICENSE file for copyright and license details. */
/* appearance */
-static const unsigned int borderpx = 1; /* border pixel of windows */
-static const unsigned int snap = 32; /* snap pixel */
@SteenSchutt
SteenSchutt / abe.php
Last active November 24, 2017 19:06
PHP class for interaction with bitcoin-abe.
<?php
// Usage: $abe = new ABE(15, "73", "mysql:host=localhost;dbname=abe", "sqluser", "sqlpass");
// Replace 15 with ABE's internal chain ID and "73" with the address version for your coin.
// Base conversion class used for base58 encoding/decoding (https://gist.github.com/DoctorBlue/e50cb9c93e2fa3d66741)
require __DIR__ . "/baseconv.php";
class ABE {
private $chain; // The chain identifier given by ABE (Check 'chain' table in database)
private $addrver; // Address version byte (Hexadecimal)
@SteenSchutt
SteenSchutt / omnichain.php
Created November 17, 2014 17:31
A simple static PHP class which can be used to interface with the omnicha.in API. Wallet support will be implemented later in another class named OmnichainWallet.
<?php
class Omnichain {
private static $baseurl = "https://omnicha.in/api/";
// Returns an array of general information about the network such
// as difficulty, network hashrate, total block count etc.
public static function getInfo() {
return self::call("getinfo");
}