Skip to content

Instantly share code, notes, and snippets.

@radfish
radfish / 0001-patch-to-remove-backported-shutils.patch
Created June 24, 2024 06:46
python-trezor-agent-git PKGBUILD patch to remove dep on backported package
From fd05c0b32b14668d6b5599e9eede27529b5311a6 Mon Sep 17 00:00:00 2001
From: redfish <[email protected]>
Date: Mon, 24 Jun 2024 02:41:51 -0400
Subject: [PATCH] patch to remove backported shutils
That backport is needed only for Python 2. The AUR package
python-backports.shutil_which should be deleted, too.
---
.SRCINFO | 9 ++++--
...tup-remove-dep-on-backport-of-shutil.patch | 30 +++++++++++++++++++
From 5b40e248a99dda50211a19769b707f4fb112103b Mon Sep 17 00:00:00 2001
From: redfish <[email protected]>
Date: Sat, 17 Apr 2021 21:12:05 -0400
Subject: [PATCH] install sgmllib3k via setuptools
This fixes packages that check existance of this dependency via distutils.
Those checks fail when sgmllib3k is not installed via setup.py:
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py",
line 3243, in <module>
@radfish
radfish / .config
Created September 3, 2020 03:52
NanoPC-T4 patch for mainline 5.8.5 for Rockchip MMC partitioning scheme and .config
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 5.8.5 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="aarch64-linux-gcc (GCC) 8.1.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=80100
CONFIG_LD_VERSION=230000000
CONFIG_CLANG_VERSION=0
CONFIG_CC_HAS_ASM_GOTO=y
@radfish
radfish / An unofficial audit report of TimeMiner
Last active September 9, 2020 08:58
Dissambled + reverse engineered code for Ethereum contract for TimeMiner coin
This is some notes after inspecting the code of the TimeMiner
contract on Ethereum, as reconstructed from disassembly and
from a fragment of code posted officially. The original contract
code was not open sourced by the authors as of this writing.
Coin: https://www.timeminer.site/
Officially posted screenshot with partial code of the contract:
https://i.imgur.com/iFdbLaH.png
@radfish
radfish / ipfshttpclient4ipwb-0.6.0-rename.patch
Last active June 27, 2020 21:45
patch on top of ipfshttpclient4ipwb 0.6.0 released on PyPI to fix tests
diff -U3 -r a/docs/conf.py b/docs/conf.py
--- a/docs/conf.py 2020-06-27 17:33:20.358686654 -0400
+++ b/docs/conf.py 2020-06-27 17:37:46.772497763 -0400
@@ -373,7 +373,7 @@
def import_object(self):
"""Prevent client class objects from being marked as “properties”."""
if super().import_object():
- # Document the shadowed `ipfshttpclient4ipwb.client.base.Section` type
+ # Document the shadowed `ipfshttpclient.client.base.Section` type
# rather then its (uninteresting) property wrapper
@radfish
radfish / README
Created December 4, 2017 05:16
Route only Transmission through a VPN connection using your own VPN server
# The approach is to mark packets from a specific user,
# create a dedicated routing table with a default route
# through the VPN, and force all marked packets to be
# routed using that table.
#
# Sources:
# https://www.niftiestsoftware.com/2011/08/28/making-all-network-traffic-for-a-linux-user-use-a-specific-network-interface/
# http://freeaqingme.tweakblogs.net/blog/9340/netflix-using-a-vpn-for-just-one-application.html
# In this guide
@radfish
radfish / PKGBUILD
Created May 22, 2016 17:47
geth: PKGBUILD with official release URL
# Maintainer: Afri 5chdn <[email protected]>
# Contributor: grimsock <lord.grimsock at gmail dot com>
# Contributor: Andy Weidenbaum <[email protected]>
# Contributor: redfish <redfish at galactica pw>
pkgname=geth
pkgver=1.4.4
_commit="94ad694"
_timestamp_ARM="20160517130009"
_timestamp_Linux64="20160517160500"
@radfish
radfish / PKGBUILD
Created March 3, 2016 19:42
zeronet-git PKGBUILD
# Maintainer: redfish <redfish at galactica dot pw>
# Contributor: Lothar_m <lothar_m at riseup dot net>
pkgname='zeronet-git'
_gitname='ZeroNet'
_gitroot='https://github.com/HelloZeroNet/ZeroNet.git'
pkgver=0.3.5.r26.g5b821c4
pkgrel=1
arch=('any')
url="https://zeronet.io/"