Skip to content

Instantly share code, notes, and snippets.

@dreaded369
dreaded369 / quickchart-reflectionsETH3.js
Last active January 16, 2022 23:39
Quickchart-ICY-reflections.js
import fetch from 'node-fetch';
const chartStr = `{
type: 'bar',
data: {
labels: __labelsPlaceholder__,
datasets: [{
data: __valuesPlaceholder__,
backgroundColor: 'rgba(75, 192, 192, 0.4)',
borderColor: 'rgb(75, 192, 192)',
@dreaded369
dreaded369 / functions.php
Last active July 2, 2022 03:20
Conditionally load Timetable scripts and styles
// Conditional loading of scripts and styles for "Timetable Responsive Schedule For WordPress" by Quantica Labs
// https://quanticalabs.com/home/portfolio/timetable-responsive-schedule-for-wordpress/
// https://codecanyon.net/item/timetable-responsive-schedule-for-wordpress/7010836
// Your mileage may vary depending on what functionality you're using.
// add to your themes functions.php file.
// works as of v7
function remove_timetable() {
global $post;
if( is_a( $post, 'WP_Post' ) && !has_shortcode( $post->post_content, 'tt_timetable') ) {
$if2(%albumartist%,%artist%) - %originalyear% -
$if(%albumartist%,%album%,) [$if($startswith(%media%,Hybrid SACD \(CD),CD,$if($startswith(%media%,Hybrid SACD),SACD,%media%))%year%] $if(%comment%, \(%comment%\)) /
$if($gt(%totaldiscs%,1),%discnumber%-,)$if($and(%albumartist%,%tracknumber%),$num(%tracknumber%,2) ,)$if(%_multiartist%,%artist% - ,)%title%
@dreaded369
dreaded369 / change_primary_key.md
Created October 29, 2022 11:47 — forked from scaryguy/change_primary_key.md
How to change PRIMARY KEY of an existing PostgreSQL table?
-- Firstly, remove PRIMARY KEY attribute of former PRIMARY KEY
ALTER TABLE <table_name> DROP CONSTRAINT <table_name>_pkey;
-- Then change column name of  your PRIMARY KEY and PRIMARY KEY candidates properly.
ALTER TABLE <table_name> RENAME COLUMN <primary_key_candidate> TO id;
@dreaded369
dreaded369 / ddwrt-blacklist-domains
Last active July 18, 2023 01:35
DD-WRT startup adblock scripts based on https://pastebin.com/aySi7RhY
#!/bin/sh
#DEBUG=; set -x # comment/uncomment to disable/enable debug mode
# name: ddwrt-blacklist-domains.sh
# version: 3.1.0, 03-feb-2022, by eibgrad
# purpose: blacklist specific domains in dnsmasq (dns)
# script type: startup (autostart)
# installation:
# 1. enable jffs2 (administration->jffs2)
# 2. enable syslogd (services->services->system log)
# [AdBlockPlus 2.0] Manually Converted to Hosts
#
# Title: EU US ads&tracking networks MV3 (third-party blocking only)
# Expires: 365 days
#
# Version: 2023.07.14
#
# Please report issues related to website breakage at
# https://github.com/Kees1958/W3C_annual_most_used_survey_blocklist/issues
#
[tool.poetry]
name = "testing-poetry-pandas"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]
readme = "README.md"
packages = [{include = "testing_poetry_pandas"}]
[tool.poetry.dependencies]
python = "^3.10"
=====================================================================================
Start processing
-------------------------------------------------------------------------------------
====> : OpenMapTiles quickstart! [ https://github.com/openmaptiles/openmaptiles ]
: This will be logged to the ./quickstart.log file (for debugging) and to the screen
: Area : albania
: Download server : unset (automatic)
: Preloaded image : true
: Git version : e61442c49dd32974d4952046b4149202c7072d59
@dreaded369
dreaded369 / eth_getTransactionByHash.json
Created June 12, 2024 23:36
GoPulse Contract/Token Creation
{
"jsonrpc": "2.0",
"id": "1",
"result": {
"blockHash": "0x7b0f154b9b981647d53272d2f30b406bee9ce3e4bc02d76cd6a47cd3f9cdc462",
"blockNumber": "0x12a252d",
"from": "0x2210d0275863a720df4f2c964e067f2eeacef472",
"gas": "0x155cc8",
"gasPrice": "0x17d283fb1d151",
"maxPriorityFeePerGas": "0x1c15949d128",
@dreaded369
dreaded369 / eth_getTransactionByHash.json
Last active June 13, 2024 04:14
Pulsecoin Example Token Creation
{
"jsonrpc": "2.0",
"id": "1",
"result": {
"blockHash": "0x2be7a6019317d159a341557988eb1731cbd24809e87e7b9717a803f9103343a6",
"blockNumber": "0x1359902",
"from": "0xe65831b6fb6edaddf0094cbed148d355515176be", // Creator wallet
"gas": "0xb13e4",
"gasPrice": "0x19abac17994b7",
"maxPriorityFeePerGas": "0xc4679b3c054",