Skip to content

Instantly share code, notes, and snippets.

View yunooooo's full-sized avatar

Yuno yunooooo

  • 05:40 (UTC -05:00)
View GitHub Profile
export const getThumbnail = (id, size = 300) =>
`https://drive.google.com/thumbnail?id=${id}&sz=${size}`;
export const getIcon = (mimeType) =>
`https://drive-thirdparty.googleusercontent.com/256/type/${mimeType}`;
export const getFile = (id) => `https://drive.google.com/uc?id=${id}`;
const downloadFile = (id) =>
@ghostrider-05
ghostrider-05 / discord_app_protocols.md
Last active June 13, 2024 10:25
An unofficial list of discord app protocol routes

Discord app protocol routes

Home:

  • /: discord://-/
  • friends: discord://-/channels/@me/
  • nitro: discord://-/store
  • shop: discord://-/shop
  • message requests: discord://-/message-requests
  • family centre: discord://-/family-center
@ifyour
ifyour / aria2.conf
Last active December 3, 2023 16:36
Aria2c Configuration Best Practices
## Disk Settings ##
dir = ${HOME}/Downloads
daemon = false
enable-mmap = true
disk-cache = 64M
file-allocation = none
## Download Settings ##
continue = true
split = 16
@RedTahr
RedTahr / sandbox-config.md
Created January 26, 2021 04:05
sandbox config to install and start custom apps and tools and map network drives

sandbox config file

sandbox.wsb

Default Default C:\Users\redtahr\Downloads\tools-for-windows-sandbox true
@rlaphoenix
rlaphoenix / btn-site-tags.md
Last active May 5, 2024 20:19
BTN Site Tags
Site/Network Abbreviation
9Now 9NOW
A&E AE
ABC (AU) iView AUBC
ABC (US) AMBC
Adult Swim AS
Al Jazeera English AJAZ
All4 (Channel 4, ex-4oD) ALL4
Amazon AMZN
@MeguminSama
MeguminSama / Discord Experiments.js
Last active June 7, 2024 14:14
Discord Experiments.js
let cache; webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=r.c]);
var UserStore = Object.values(cache).find(m => m?.exports?.default?.getUser).exports.default;
var actions = Object.values(UserStore._dispatcher._actionHandlers._dependencyGraph.nodes);
var user = UserStore.getCurrentUser();
actions.find(n => n.name === "ExperimentStore").actionHandler.CONNECTION_OPEN({
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [],
});
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler.CONNECTION_OPEN();
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done";
@alexdrean
alexdrean / vimeo-downloader.js
Last active July 20, 2023 22:23 — forked from aik099/vimeo-downloader.js
Download video from Vimeo (chopped m4s files)
// 1. Open the browser developper console on the network tab
// 2. Start the video
// 3. In the dev tab, locate the load of the "master.json" file, copy its full URL
// 4. Run: node vimeo-downloader.js "<URL>"
// (done automatically now) 5. Combine the m4v and m4a files with mkvmerge
const fs = require('fs');
const url = require('url');
const https = require('https');
const { exec } = require('child_process');
@alexander-danilenko
alexander-danilenko / debian-cheatsheet.md
Last active April 30, 2024 21:56
Debian/Ubuntu Cheatsheet
@ZacharyPatten
ZacharyPatten / ConsoleInput.md
Last active May 3, 2024 19:56
Beginner's Guide To Console Input In C#

Beginner's Guide To Console Input In C#

Note: I recommend reading this gist in order because Examples 1-6 build on each other.