Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🐍

Euphemia Deathridge ephdtrg

💭
🐍
View GitHub Profile
@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));
@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 / .gitignore
Created Oct 11, 2019
Realty AI webserver impovements
View .gitignore
/RealtyTime/API_methods/settings_local.py
processed_models/
@ephdtrg
ephdtrg / abi.json
Created Jul 18, 2019
abi for freeze tron payments contract
View abi.json
{
"entrys": [
{
"outputs": [
{
"type": "bool"
}
],
"constant": true,
"name": "CONTINUE_MINTING",
View docker-compose.yml
version: '2'
services:
db:
image: mariadb:10.1
environment:
MYSQL_ROOT_PASSWORD: your_mysql_root_password
MYSQL_USER: your_filerun_username
MYSQL_PASSWORD: your_filerun_password
MYSQL_DATABASE: your_filerun_database
View gist:aa13430d1739010c8926f18d109288d0
[
{
"constant": true,
"inputs": [
{
"name": "_addr",
"type": "address"
},
{
"name": "_index",
View gist:4ae5ff01008b1692198bd1b683b284f5
[
{
"constant": false,
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
@ephdtrg
ephdtrg / gist:15a07c7dcf451fcdc40186c04a57ebee
Last active Jan 17, 2019
tron eventsubscribe messages
View gist:15a07c7dcf451fcdc40186c04a57ebee
Block subscription
event: message
data:{
"timeStamp":1547662317000,
"triggerName":"blockTrigger",
"blockNumber":5862702,
"blockHash":"000000000059752e606e215a10408041fa76ce55d6bfa0a4bdbf82fed2573e7c",
"transactionSize":166,
"transactionList":[
View config.ini
# The filename (relative to data-dir) to create a unix socket for HTTP RPC; set blank to disable. (eosio::http_plugin)
unix-socket-path = keosd.sock
# The local IP and port to listen for incoming http connections; leave blank to disable. (eosio::http_plugin)
http-server-address = 127.0.0.1:9953
# The local IP and port to listen for incoming https connections; leave blank to disable. (eosio::http_plugin)
# https-server-address =
# Filename with the certificate chain to present on https connections. PEM format. Required for https. (eosio::http_plugin)
You can’t perform that action at this time.