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
| lsusb | |
| sudo mkfs.ext4 /dev/sda1 | |
| sudo mkdir /mnt/usbdrive | |
| sudo blkid | |
| sudo nano /etc/fstab | |
| UUID=your-drive-uuid /mnt/usbdrive ext4 defaults 0 2 |
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 | |
| ( async () => { | |
| const process = require( "process" ); | |
| const path = require( "path" ); | |
| const { execSync } = require( "child_process" ); | |
| // const global_package_path = process.argv[ 0 ].split( "/bin/node" )[ 0 ] + "/lib/node_modules"; | |
| const global_package_path = execSync( "npm root -g" ).toString().trim(); | |
| const puppeteer = require( path.join( global_package_path , "puppeteer" ) ); | |
| const fs = require( "fs" ).promises; |
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 asyncio | |
| import sys | |
| import pyatv | |
| from pyatv.const import Protocol | |
| async def play_url( loop ): | |
| atvs = await pyatv.scan(loop, identifier="mac-addresss") | |
| print( atvs ) | |
| conf = atvs[0] |
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
| // ==UserScript== | |
| // @name Chrome Comic Sans | |
| // @namespace http://your.namespace/ | |
| // @version 0.1 | |
| // @description Comic Sans | |
| // @match *://*/* | |
| // @grant GM_addStyle | |
| // @run-at document-start | |
| // ==/UserScript== |
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
| ( ()=> { | |
| const listElement = document.getElementById('BccAddresses$control'); | |
| const listItems = listElement.querySelectorAll('.d2l-multiselect-choice span'); | |
| const emailArray = []; | |
| listItems.forEach((item) => { | |
| const text = item.innerText; | |
| const match = text.match(/"(.+)" <(.+)>/); | |
| if (match) { | |
| emailArray.push(`"${match[1]}" <${match[2]}>`); | |
| } |
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 | |
| # Check if the input playlist ID and API key are provided | |
| if [ -z "$1" ] || [ -z "$2" ]; then | |
| echo "Usage: $0 <playlist_id> <api_key>" | |
| exit 1 | |
| fi | |
| playlist_id="$1" | |
| api_key="$2" |
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
| // ==UserScript== | |
| // @name Twitch Black Square Overlay - Chess24 | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Overlay a black square on Twitch video streams | |
| // @author You | |
| // @match *://*.twitch.tv/chess24* | |
| // @grant none | |
| // ==/UserScript== |
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
| ( async ()=> { | |
| let stream = await navigator.mediaDevices.getDisplayMedia( { video: true } ); | |
| console.log( stream ); | |
| let video = document.createElement('video'); | |
| video.srcObject = stream; | |
| video.play(); | |
| let canvas = document.createElement('canvas'); | |
| let ctx = canvas.getContext('2d'); |
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 | |
| # twitchIINABlackBox playirresponsibly bottom-left 600 400 0 20 | |
| # twitchIINABlackBox chess24 bottom-left 800 110 580 0 | |
| if [[ "$1" == *"twitch.tv"* ]]; then | |
| url="$1" | |
| else | |
| url="https://twitch.tv/$1" | |
| fi |