Skip to content

Instantly share code, notes, and snippets.

View apetresc's full-sized avatar

Adrian Petrescu apetresc

View GitHub Profile
@apetresc
apetresc / README.md
Last active July 20, 2021 18:14
A script to filter a PGN game collection by a minimum time control

Installation

The script requires the python-chess library which can be installed via:

pip install -r requirements.txt

Usage

@apetresc
apetresc / redelegate-cro.sh
Last active March 28, 2023 05:44
A script to automatically claim Crypto.org CRO staking rewards and re-stake them
#!/bin/bash -e
# redelegate-cro.sh is a script that automatically claims all your delegation
# rewards (across any number of validators) in a single transaction (assuming a
# minimum reward threshold is met, to avoid spurious transactions). The rewards
# are then automatically redelegated to the provided validator address, leaving
# behind at least a 0.005 CRO buffer to ensure there is always enough for
# regular transaction fees.
#
# The idea is that it is safe to run this script on a fixed cron schedule and
diff --git a/.SRCINFO b/.SRCINFO
index 41e47fb..dff8005 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = websocketpp-git-dev
pkgdesc = C++/Boost Asio based websocket client/server library, Develop branch
- pkgver = 0.7.0.1685.19cad99
+ pkgver = 0.8.1.1696.c6d7e29
pkgrel = 1
<settings>
<profiles>
<profile>
<id>hadoop-azure</id>
<dependencies>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-azure</artifactId>
<version>${hadoop.version}</version>
<exclusions>
#!/bin/bash
function join_by { local IFS="$1"; shift; echo "$*"; }
SPARK_HADOOP_VERSION=$("$(pwd)/build/mvn" help:evaluate -Dexpression=hadoop.version -Phadoop-2.7 2>/dev/null\
| grep -v "INFO"\
| grep -v "WARNING"\
| tail -n 1)
OPTIONS=""
@apetresc
apetresc / foxyproxy.json
Created October 25, 2017 19:01
A FoxyProxy 6.x (for Firefox) version of the AWS EMR filters
{
"mode": "patterns",
"proxySettings": [
{
"title": "EMR SOCKS Proxy",
"type": 3,
"color": "#cc8c2a",
"address": "localhost",
"port": 8157,
"proxyDNS": true,
[ 8.935]
X.Org X Server 1.19.3
Release Date: 2017-03-15
[ 8.935] X Protocol Version 11, Revision 0
[ 8.935] Build Operating System: Linux 4.9.11-1-ARCH x86_64
[ 8.935] Current Operating System: Linux gauss 4.10.13-1-ARCH #1 SMP PREEMPT Thu Apr 27 12:15:09 CEST 2017 x86_64
[ 8.935] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=dee77d5d-f6a2-4ca6-83ec-57f23a88b624 rw quiet
[ 8.935] Build Date: 07 April 2017 05:42:48PM
[ 8.935]
[ 8.935] Current version of pixman: 0.34.0
@apetresc
apetresc / .SRCINFO
Created April 18, 2017 16:07
s4cmd-python3-git
pkgbase = s4cmd
pkgdesc = Super S3 command line tool (git) for Python 3
pkgver = 66.f5f5ff0
pkgrel = 1
url = https://github.com/bloomreach/s4cmd
arch = any
license = GPL
makedepends = git
makedepends = python-setuptools
depends = python
@apetresc
apetresc / cpuinfo.txt
Created March 31, 2016 20:39
`cat /proc/cpuinfo`
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 60
model name : Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
stepping : 3
microcode : 0x1d
cpu MHz : 1527.023
cache size : 6144 KB
physical id : 0