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
| // $ npm install obs-websocket-js | |
| // $ node countdown-websocket.js | |
| // | |
| import OBSWebSocket from "obs-websocket-js"; | |
| async function testConnection() { | |
| const obs = new OBSWebSocket(); | |
| try { | |
| console.log("Connecting to OBS..."); |
- Download Zoom.pkg from https://zoom.us/download
- Extract it using https://www.timdoug.com/unpkg/
- Now you have Zoom/zoom.us.app
- Launch Zoom by
zoom.sh Zoom/zoom.us.app/Contents/MacOS/zoom.us
caveats:
- Zoom will fail to start meeting for the first time. Just launch again.
- Zoom will tell that crash happened, but you should ignore it.
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 { IncomingMessage, RequestListener, ServerResponse } from "http" | |
| import { createServer, Server } from "https" | |
| import puppeteer, { | |
| Browser, | |
| BrowserLaunchArgumentOptions, | |
| Protocol | |
| } from "puppeteer-core" | |
| import { Page } from "./types" | |
| import Cookie = Protocol.Network.Cookie |
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
| --- | |
| apiVersion: v1 | |
| data: | |
| kernel-monitor.json: | | |
| { | |
| "plugin": "kmsg", | |
| "logPath": "/dev/kmsg", | |
| "lookback": "5m", | |
| "bufferSize": 10, | |
| "source": "kernel-monitor", |
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
| ############## 1Password Stuff ############### | |
| # Check for 1Password CLI, and install if necessary: | |
| command -v op >&- || brew install --cask 1password-cli | |
| # You can simply export the 1Password secret's deep link in | |
| # place of any sensitive value held in an environment variable: | |
| export JIRA_API_TOKEN="op://example_vault/JIRA_API_TOKEN/credential" | |
| # To use this at runtime, use: `op run -- <app> ..args..` |
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 | |
| INPUT_FOLDER="${HOME}/Music/Unprocessed" | |
| OUTPUT_FOLDER="${HOME}/Dropbox/Music/$(date +%Y-%m)" | |
| filecount=$(find "$INPUT_FOLDER" \( -name "*mp3" -o -name "*aif*" -o -name "*wav" \) -type f -print | wc -l) | |
| if [[ $filecount -lt 1 ]]; then | |
| printf "\nNo files found in '%s'. Time to find new beats!\n" "$INPUT_FOLDER" | |
| exit 0 | |
| 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
| #!/bin/sh | |
| # | |
| # -- virtualdj-historian.sh -- | |
| # A helper script for proper OBS track IDs from Virtual DJ tracklist.txt | |
| # | |
| # USAGE: | |
| # | |
| # 1. Download to your home directory | |
| # 2. chmod +x virtualdj-historian.sh | |
| # 3. ./virtualdj-historian.sh |
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 | |
| # | |
| # curl wrapper returning timing information. | |
| # | |
| # curl format adapted from | |
| # http://josephscott.org/archives/2011/10/timing-details-with-curl/ | |
| # | |
| # Example usage: | |
| # $ curlt http://www.apple.com | |
| # $ time curlt http://www.apple.com -v |
NewerOlder