Skip to content

Instantly share code, notes, and snippets.

@ephdtrg
ephdtrg / .bashrc
Created Jan 8, 2020
Standart Raspberry Pi .bashrc with PyCharm alias
View .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@ephdtrg
ephdtrg / x230_fhd_5.3.11.patch
Created Feb 11, 2020
Kernel 5.3.11 patch for FHD-modded Thinkpad X230
View x230_fhd_5.3.11.patch
diff -ruN v5.3.11/drivers/acpi/pci_root.c v5.3.11-patched/drivers/acpi/pci_root.c
--- v5.3.11/drivers/acpi/pci_root.c 2020-02-11 14:12:53.191125461 +0300
+++ v5.3.11-patched/drivers/acpi/pci_root.c 2020-02-11 14:50:38.568736161 +0300
@@ -505,7 +505,7 @@
} else {
decode_osc_control(root, "OS requested", requested);
decode_osc_control(root, "platform willing to grant", control);
- dev_info(&device->dev, "_OSC failed (%s); disabling ASPM\n",
+ dev_info(&device->dev, "_OSC failed (%s); we keep ASPM on anyway\n",
acpi_format_exception(status));
View test_tokenlist.json
{
"name": "Test token list",
"timestamp": "2020-08-25T12:00:15+00:00",
"keywords": [
"axion"
],
"version": {
"major": 0,
"minor": 0,
"patch": 0
@ephdtrg
ephdtrg / pion_tokenlist
Last active Oct 15, 2020
pion uniswap tokenlist
View pion_tokenlist
{
"name": "Pion token list",
"timestamp": "2020-08-25T12:00:15+00:00",
"keywords": [
"axion"
],
"version": {
"major": 0,
"minor": 0,
"patch": 0
@ephdtrg
ephdtrg / tokenlist.json
Last active Oct 16, 2020
axion token list
View tokenlist.json
{
"name": "Axion token list",
"timestamp": "2020-08-25T12:00:15+00:00",
"keywords": [
"axion"
],
"version": {
"major": 0,
"minor": 0,
"patch": 0
@ephdtrg
ephdtrg / btc-mainnet.service
Created Jan 25, 2021
Bitcoind node service (systemd)
View btc-mainnet.service
[Unit]
Description=Bitcoin Node Mainnet
[Service]
User=bitcoind
Group=bitcoind
ExecStart=/usr/bin/bitcoind -server -rpcuser=username -rpcpassword=password -datadir=/home/bitcoind/.bitcoin -rpcbind=127.0.0.1 -rpcworkqueue=64
PIDFile=/home/bitcoind/bitcoin.pid
WorkingDirectory=/home/bitcoind