This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Scrapes Paul's author page on wired and generates a feed. | |
# Copyright 2022, Drew Diver | |
# | |
from bs4 import BeautifulSoup | |
from dateutil import parser | |
import datetime | |
import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Based on https://github.com/enkia/tokyo-night-vscode-theme | |
#24283B,#FFC806,#565F89,#C0CAF5,#565F89,#C0CAF5,#9ECE6A,#F7768E,#24283B,#A9B1D6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# NEWLY ADDED BACKUP FUNCTIONALITY IS NOT FULLY TESTED YET, USE WITH CARE, ESPECIALLY DELETION | |
# Developed for DSM 6 - 7.0.1. Not tested on other versions. | |
# Steps to install | |
# Save this script in one of your shares | |
# Edit it according to your requirements | |
# Backup /usr/syno/share/nginx/ as follows: | |
# # cd /usr/syno/share/ | |
# # tar cvf ~/nginx.tar nginx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Extract a JSON value in an object: | |
# | |
# items = get_json_value(json, "payload.tree.items") | |
# | |
# Or in an array: | |
# | |
# while ((item = get_json_value(items, i++))) | |
# name = decode_json_string(get_json_value(item, "name")) | |
# |
OlderNewer