Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@toxdes
toxdes / green-gateoverflow-script.js
Last active May 30, 2020 14:33
Green Gateoverflow
//adding a link tag to load a font
var head = document.getElementsByTagName('head')[0];
var link = document.createElement('link');
link.rel = 'stylesheet';
link.href = 'https://fonts.googleapis.com/css?family=Roboto&display=swap';
head.appendChild(link);
@toxdes
toxdes / termux-youtube-dl.sh
Last active December 18, 2022 16:12
Script to install youtube-dl on termux (android) along with clipboard support
#!/usr/bin/env bash
termux-setup-storage && \
YT_HOME="$HOME/storage/dcim" && \
yes | apt update && \
yes | apt full-upgrade && \
pkg install -y python ffmpeg termux-api && \
pip install --upgrade youtube-dl && \
mkdir -p $YT_HOME && \
mkdir -p $HOME/bin && \
curl https://raw.githubusercontent.com/toxdes/python-scripts/master/youtube.py -o $HOME/../usr/bin/yt && \
@toxdes
toxdes / cpp.json
Last active November 21, 2022 02:54
vscode-cpp-snippets
{
// Place your snippets for cpp here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
#include <iostream>
using namespace std;
void __print(int x) { cerr << x; }
void __print(long x) { cerr << x; }
void __print(long long x) { cerr << x; }
void __print(unsigned x) { cerr << x; }
void __print(unsigned long x) { cerr << x; }
void __print(unsigned long long x) { cerr << x; }
void __print(float x) { cerr << x; }
void __print(double x) { cerr << x; }
@toxdes
toxdes / data.json
Last active January 16, 2024 10:15
test-woohoo
{"updated_at": "2024-01-16T10:15:30.230267", "items": [{"title": "Start - 2024-01-15 VOD Review", "url": "https://youtube.com/watch?v=vMksYYM4nI4&t=0m00s", "published_at": "2024-01-16T04:41:20Z", "thumbnail": "https://i.ytimg.com/vi/vMksYYM4nI4/sddefault.jpg"}, {"title": "Viper Lotus Gold 1 - 2024-01-15 VOD Review", "url": "https://youtube.com/watch?v=vMksYYM4nI4&t=18m00s", "published_at": "2024-01-16T04:41:20Z", "thumbnail": "https://i.ytimg.com/vi/vMksYYM4nI4/sddefault.jpg"}, {"title": "Skye Breeze Diamond 3 - 2024-01-15 VOD Review", "url": "https://youtube.com/watch?v=vMksYYM4nI4&t=42m20s", "published_at": "2024-01-16T04:41:20Z", "thumbnail": "https://i.ytimg.com/vi/vMksYYM4nI4/sddefault.jpg"}, {"title": "Live Viewer Ranked - Killjoy Lotus Silver 3 - 2024-01-15 VOD Review", "url": "https://youtube.com/watch?v=vMksYYM4nI4&t=2h14m46s", "published_at": "2024-01-16T04:41:20Z", "thumbnail": "https://i.ytimg.com/vi/vMksYYM4nI4/sddefault.jpg"}, {"title": "Pro Analysis - 2024-01-15 VOD Review", "url": "https://you