Skip to content

Instantly share code, notes, and snippets.

=====================================================================================
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
[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"
# [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
#
@dreadedhamish
dreadedhamish / 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)
@dreadedhamish
dreadedhamish / 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;
$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%
@dreadedhamish
dreadedhamish / 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') ) {
@dreadedhamish
dreadedhamish / 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)',