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 | |
set -e | |
font_file="/Users/pablo/Library/Fonts/GoNotoCurrent.ttf" | |
function ellipsis (){ | |
awk -v len=$1 '{ if (length($0) > len) print substr($0, 1, len-3) "..."; else print; }' | |
} | |
for file in "$@"; do |
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 | |
import sys | |
import os | |
from ptttl.parser import PTTTLParser | |
from math import log2 | |
DURATION_ADJUSTMENT = 18 | |
def parse_rtttl(file_path): | |
with open(file_path, 'r') as f: |
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 node | |
const fs = require("fs"); | |
const path = require("path"); | |
const { WebUSB } = require("usb"); | |
const { Worker } = require("worker_threads"); | |
const { | |
MDTrack, | |
MDSession, | |
Wireformat, | |
DevicesIds, |
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
{ | |
"md": { | |
"mod_scheme": "arb256opt", | |
"checksum_scheme": "crc32", | |
"inner_fec_scheme": "none", | |
"outer_fec_scheme": "rs8", | |
"frame_length": 8192, | |
"modulation": { | |
"center_frequency": 7396, | |
"gain": 0.02 |
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 node | |
const stdin = require("get-stdin"); | |
const crypto = require("crypto"); | |
const dictionary = | |
"abandon ability able about above absent absorb abstract absurd abuse access accident account accuse achieve acid acoustic acquire across act action actor actress actual adapt add addict address adjust admit adult advance advice aerobic affair afford afraid again age agent agree ahead aim air airport aisle alarm album alcohol alert alien all alley allow almost alone alpha already also alter always amateur amazing among amount amused analyst anchor ancient anger angle angry animal ankle announce annual another answer antenna antique anxiety any apart apology appear apple approve april arch arctic area arena argue arm armed armor army around arrange arrest arrive arrow art artefact artist artwork ask aspect assault asset assist assume asthma athlete atom attack attend attitude attract auction audit august aunt author auto autumn average avocado avoid awake aware away awesome awful awkward axis baby ba |
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
from copy import copy | |
from dataclasses import asdict | |
from typing import Any, Dict, cast | |
from django.conf import settings | |
from django.db import models | |
from django.db.models import Q | |
from inflection import pluralize |
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
(() => { | |
let websocket; | |
// Selectors | |
const textareaSelector = "textarea"; | |
const submitButtonSelector = "button"; | |
const containerSelector = ".group.bg-gray-50"; | |
const contentSelector = ".whitespace-pre-wrap"; | |
// Utilities |
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 | |
set -e | |
[[ "$radarr_eventtype" == "Test" || "$sonarr_eventtype" == "Test" ]] && exit 0 | |
# Determine if the script is being run by Radarr or Sonarr | |
if [[ -n "$radarr_moviefile_path" ]]; then | |
# Running in Radarr | |
input_file="$radarr_moviefile_path" | |
output_file="${input_file%.*}.mp4" |
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 | |
fade_length="$1" | |
first_file="$2" | |
second_file="$3" | |
fade_first="auto" | |
if [ "$4" != "" ]; then | |
fade_first="$4" | |
fi |
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 | |
set -e | |
font_file="~/Library/Fonts/GoNotoCurrent.ttf" | |
function ellipsis (){ | |
awk -v len=$1 '{ if (length($0) > len) print substr($0, 1, len-3) "..."; else print; }' | |
} | |
for file in "$@"; do |
NewerOlder