Skip to content

Instantly share code, notes, and snippets.

View Roang-zero1's full-sized avatar

Lucas Brandstätter Roang-zero1

View GitHub Profile
@Roang-zero1
Roang-zero1 / 9-Shadowlands.txt
Created April 11, 2021 17:07
TSM4 Raw Materials
group:9. Shadowlands`1. Enchanting`Eternal Crystal,i:172232,
group:9. Shadowlands`1. Enchanting`Sacred Shard,i:172231,
group:9. Shadowlands`1. Enchanting`Soul Dust,i:172230,
group:9. Shadowlands`2. Inscription`Umbral Pigment,i:173056,
group:9. Shadowlands`2. Inscription`Luminous Pigment,i:173057,
group:9. Shadowlands`2. Inscription`Tranquil Pigment,i:175788,
group:9. Shadowlands`3. Cloth`Enchanted Lightless Silk,i:172439,
tests = [
{class= StartReload, config={reload=True}, files_that_reload=[...], files_that_do_not_reload=[....]}
{class= StartReload, config={reload=True, reload_dirs=[...]}, files_that_reload=[...], files_that_do_not_reload=[....]}
]
@Roang-zero1
Roang-zero1 / argparse-dir-arg.py
Last active October 28, 2020 12:37 — forked from Tatsh/argparse-dir-arg.py
Check if a directory argument is writeable or readable.
import argparse
from os import R_OK, W_OK, access
from pathlib import Path
class ReadableDirectoryAction(argparse.Action):
def __call__(self, parser, namespace, values, option_string=None):
prospective_dir = Path(values)
if not prospective_dir.is_dir():
@Roang-zero1
Roang-zero1 / piwigo_watermark.patch
Last active October 12, 2018 07:50
Patch for Piwigo 2.9.4 to not watermark pictures tagged with public
diff -r piwigo/include/derivative.inc.php current/include/derivative.inc.php
313c313
< if (!$params->will_watermark($src->get_size()) && !$src->rotation)
---
> if ($params->will_watermark($src->get_size()) && !$src->rotation)
diff -r piwigo/i.php current/i.php
468a469
> $page['image_id'] = $row['id'];
502a504,512
> }
@Roang-zero1
Roang-zero1 / index.js.patch
Created April 22, 2016 11:36
Temp Fix for generator-jekyllized issue #124
--- index.js 2016-04-22 13:33:30.268003201 +0200
+++ index_patched.js 2016-04-22 13:33:48.631000277 +0200
@@ -52,7 +52,7 @@
chalk.yellow('? ') + 'What will the URL for your project be?',
filter: function (input) {
if (!input.startsWith('www') && !input.startsWith('http') || input.startsWith('www')) {
- output = 'http://' + input;
+ var output = 'http://' + input;
return output;
}