Skip to content

Instantly share code, notes, and snippets.

@tpruvot
tpruvot / cryptowatch_api.py
Last active July 23, 2021 17:57
Hexchat cryptowatch plugin
import urllib.request
import hexchat
import json
import time
__module_name__ = "Cryptowat.ch API query"
__module_version__ = "1.65"
__module_description__ = "Answer market price when you type /kraken or trigger !kraken !bitstamp !coinbase ..."
__author__ = "tpruvot"
@tpruvot
tpruvot / yiimp_json_api.py
Last active January 22, 2018 23:08
Hexchat YiiMP api query
import urllib.request
import hexchat
import json
__module_name__ = "YiiMP API query"
__module_version__ = "1.2"
__module_description__ = "Report pool rate when you type /yiimp or trigger !yiimp"
__author__ = "tpruvot"
__url_api__ = "http://yiimp.ccminer.org/api/"
@tpruvot
tpruvot / coinmarketprice.py
Last active July 25, 2017 01:11
Hexchat CoinMarketCap crypto price json query in python
import urllib.request
import hexchat
import json
__module_name__ = "Coinmarketcap API query"
__module_version__ = "2.2"
__module_description__ = "Say BTC price when you type /BTC or trigger !BTC"
__author__ = "tpruvot"
__url_cmc__ = "http://api.coinmarketcap.com/v1/ticker"
@tpruvot
tpruvot / xorg.conf
Last active October 20, 2020 10:29
Fake plugged monitor to allow coolbits on maxwell and pascal cards
# To allow nvidia powermizer settings, we need to define dummy monitors for each card
# Edit the PCI BusId for each cards (lspci | grep VGA)
# Also, you need to dump an EDID file from your monitor
# Here is my dell.edid (2560x1440)
# it's stored in text, hexdump -C format, not binary:
# 00 ff ff ff ff ff ff 00 10 ac 7e 40 4c 54 41 41
# 15 17 01 03 80 3c 22 78 ea 4b b5 a7 56 4b a3 25
# 0a 50 54 a5 4b 00 81 00 b3 00 d1 00 71 4f a9 40
# 81 80 d1 c0 01 01 56 5e 00 a0 a0 a0 29 50 30 20
#include "common.h"
#include "blake2bcl.h"
#define tree0_ptr(heap, r) ((__global bucket0 *)(heap + r))
#define tree1_ptr(heap, r) ((__global bucket1 *)(heap + r))
uint32_t tree_bucket(tree t)
{
const uint32_t bucketMask = ((1u<<BUCKBITS)-1);
This file has been truncated, but you can view the full file.
//
// Generated by NVIDIA NVVM Compiler
//
// Compiler Build ID: UNKNOWN
// Driver
// Based on LLVM 3.4svn
//
.version 5.0
.target sm_61, texmode_independent
@tpruvot
tpruvot / dcrd
Last active April 20, 2016 10:01
ubuntu (14.04) /etc/init.d/dcrd
#!/bin/sh
### BEGIN INIT INFO
# Provides: dcrd
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: dcrd daemon startup script
# Description: dcrd daemon startup script
@tpruvot
tpruvot / autoload.pl
Last active April 16, 2016 23:17
Autoload plugins in addons sub folders, place this script in HexChat\addons
# Name: autoload.pl
# Version: 1.2
# Author: tpruvot@github
# Date: 2016-04-17
# Description: Autoload plugins in addons sub folders, place this script in HexChat\addons
use Xchat qw (:all);
register('AutoLoad', '1.2', 'Plugin Auto Loader', \&auto_unload);
@tpruvot
tpruvot / slack_users.pl
Last active October 18, 2016 22:33
Rewrite Slack (and gitter) user messages, user names are displayed almost like other users
# Name: slack_users.pl
# Version: 2.3
# Author: https://gist.github.com/tpruvot/
# Date: 2016-10-18
# Description: Change the display of Slack channel messages, display them like normal users
# Version History
# 1.0 2016-04-16 Initial Version
# 1.1 2016-04-17 Keep message type (highlight/action)
# 1.3 2016-04-17 Nick autocompletion + keep users case
@tpruvot
tpruvot / blocknotifybridge.go
Created February 20, 2016 06:22 — forked from davecgh/blocknotifybridge.go
Naive bridge to listen for blockconnected notifications and invoke an executable.
// Copyright (c) 2016 The btcsuite developers
// Copyright (c) 2015-2016 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package main
import (
"io/ioutil"
"log"