Skip to content

Instantly share code, notes, and snippets.

View toddixon's full-sized avatar
🎯
Focusing

Trevor Dixon toddixon

🎯
Focusing
  • Brookings South Dakota
View GitHub Profile
@CTK-WARRIOR
CTK-WARRIOR / record.js
Last active June 13, 2024 10:07
Record command using discord.js and discordjs/voice with node 17, watch video: https://www.youtube.com/watch?v=h7CC-8kTsGI
/* Required Modules */
const { entersState, joinVoiceChannel, VoiceConnectionStatus, EndBehaviorType } = require('@discordjs/voice');
const { createWriteStream } = require('node:fs');
const prism = require('prism-media');
const { pipeline } = require('node:stream');
const { Client, Intents, MessageAttachment, Collection } = require('discord.js');
const ffmpeg = require('ffmpeg');
const sleep = require('util').promisify(setTimeout);
const fs = require('fs');
@subfuzion
subfuzion / curl.md
Last active July 16, 2024 16:18
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@staltz
staltz / introrx.md
Last active July 15, 2024 15:43
The introduction to Reactive Programming you've been missing