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
##### | |
# Installation: | |
# install python3 and install via pip "bs4" and "youtube_dl" | |
# | |
# Usage: | |
# python3 crawler.py -h | |
# | |
# Example: | |
# export your bookmarks with firefox and then crawl them for youtube and soundcloud by executing: | |
# python3 crawler.py -f bookmarks.html -w youtube.com -w youtu.be -w soundcloud.com |
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
# usage: sadfavs.py [-h] [-f FILE] -u USERNAME -p PASSWORD [-d] [--port PORT] | |
# [-a ADDRESS] [-n NUMBER] | |
# download sadpanda galleries with tags. archives all your favorites or all | |
# links (seperated by a newline) from a file. saves tags and general info for | |
# every gallery as a json file. to download galleries you need to run | |
# transmission with remote control enabled. | |
# optional arguments: | |
# -h, --help show this help message and exit |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<style> | |
body { background-color: #001f3f; } | |
video { | |
max-width: 1920px; | |
width: 90vw; |
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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |
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
# site-available/blog.dmnd.sh.conf | |
server { | |
listen [::]:443 ssl; | |
listen 443 ssl; | |
server_name blog.dmnd.sh; | |
include snippets/ssl-dmnd.sh.conf; | |
include snippets/robots.conf; |
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 bash | |
# Script to install NixOS from the Hetzner Cloud NixOS bootable ISO image. | |
# (tested with Hetzner's `NixOS 20.03 (amd64/minimal)` ISO image). | |
# | |
# This script wipes the disk of the server! | |
# | |
# Instructions: | |
# | |
# 1. Mount the above mentioned ISO image from the Hetzner Cloud GUI |
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
{ config, lib, pkgs, ... }: | |
let | |
# nur-pkgs = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {}; | |
nur-pkgs = import <nur-pkgs> {}; | |
in { | |
nixpkgs.config.packageOverrides = pkgs: rec { | |
nur = import <nur-pkgs> { | |
inherit pkgs; |
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
{ | |
"kana": [ | |
{"hiragana": "あ","romaji":"a", "value": 1}, | |
{"hiragana": "い","romaji":"i", "value": 2}, | |
{"hiragana": "う","romaji":"u", "value": 3}, | |
{"hiragana": "え","romaji":"r", "value": 4}, | |
{"hiragana": "お","romaji":"o", "value": 5}, | |
{"hiragana": "か","romaji":"ka", "value": 6}, | |
{"hiragana": "き","romaji":"ki", "value": 7}, | |
{"hiragana": "く","romaji":"ku", "value": 8}, |
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
require "json" | |
require "uri" | |
require "http/client" | |
require "http/params" | |
API_ENDPOINT = URI.parse "https://en.wikipedia.org/w/api.php" | |
module Wiki | |
class Response | |
include JSON::Serializable |
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
/* | |
function showNotification(title, message) { | |
const notification = new Notification() | |
notification.title = title | |
notification.subtitle = message | |
notification.schedule() | |
} | |
*/ | |
// Script.setShortcutOutput(1) |