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 | |
| set -e | |
| find .. -type f -iname "*.flac" | while read -r file; do | |
| date_val=$(metaflac --show-tag=DATE "$file" | sed 's/^DATE=//') | |
| originaldate_val=$(metaflac --show-tag=ORIGINALDATE "$flac_file" | sed 's/^ORIGINALDATE=//') | |
| if [[ -n "$date_val" && -n "$originaldate_val" && "$date_val" != "$originaldate_val" ]]; then | |
| echo "$file" | |
| echo " $date_val -> $originaldate_val" |
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/python | |
| from mutagen.flac import FLAC | |
| from pathlib import Path | |
| import sys | |
| REPLACEMENTS = { | |
| '‘': "'", | |
| '’': "'", | |
| '“': '"', | |
| '”': '"', |
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
| // Set up some prerequisites | |
| if (typeof _mods === 'undefined') { | |
| var _mods; webpackChunkdiscord_app.push([[Symbol()], {}, r => _mods = r.c]); | |
| webpackChunkdiscord_app.pop(); | |
| } | |
| if (typeof findByProps === 'undefined') { | |
| var findByProps = (...props) => { | |
| for (let m of Object.values(_mods)) { | |
| try { | |
| if (!m.exports || m.exports === window) continue; |
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
| import requests | |
| import hashlib | |
| from urllib.parse import urlencode | |
| import json | |
| api_key = input('API Key: ') | |
| secret = input('Secret: ') | |
| print(f'Open http://www.last.fm/api/auth/?api_key={api_key}') | |
| token = input('Enter the token: ') |
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
| account-level-user-settings | |
| account-revert | |
| account-standing | |
| activities-platform | |
| activity-feed | |
| age-gating | |
| analytics | |
| announcement-channels | |
| application-identities | |
| application-widgets |
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
| // Set up some prerequisites | |
| if (typeof buttplug === 'undefined') { | |
| throw 'error: Buttplug.js library not found. Please follow the usage instructions carefully.' | |
| } | |
| if (typeof _mods === 'undefined') { | |
| var _mods; webpackChunkdiscord_app.push([[Symbol()], {}, r => _mods = r.c]); | |
| webpackChunkdiscord_app.pop(); | |
| } | |
| if (typeof findByProps === 'undefined') { | |
| var findByProps = (...props) => { |
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
| await (async () => { | |
| let file = await showOpenFilePicker() | |
| if (!file) return "File not picked"; | |
| file = await file[0].getFile(); | |
| if (!file.type.startsWith('audio/')) return 'Invalid file: Not an audio file' | |
| let audioData = await new AudioContext().decodeAudioData(await file.arrayBuffer()); | |
| let ctx = new OfflineAudioContext({ | |
| numberOfChannels: 1, | |
| length: audioData.length, |
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
| import struct | |
| import zlib | |
| import base64 | |
| def chunk(t, data): | |
| return (struct.pack('>I', len(data)) + t + data | |
| + struct.pack('>I', zlib.crc32(t + data))) | |
| png = (b'\x89PNG\r\n\x1A\n' | |
| + chunk(b'IHDR', struct.pack('>IIBBBBB', 1, 0, 1, 0, 0, 0, 0)) # https://www.w3.org/TR/png/#11IHDR |
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
| program = input() | |
| programpointer = 0 | |
| buffer = {} | |
| pointer = 0 | |
| tmp = [] | |
| loops = {} | |
| for i,c in enumerate(program): | |
| if c == '[': |