Skip to content

Instantly share code, notes, and snippets.

View badjuice's full-sized avatar
😶‍🌫️
Don't judge a book by a cover you can't read

Nox Fortes badjuice

😶‍🌫️
Don't judge a book by a cover you can't read
  • Nowhere to be found
  • 06:41 (UTC -01:00)
View GitHub Profile
#version 300 es
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
out vec4 fragColor;
uniform vec2 resolution;
uniform vec3 orientation;
@Starcalled
Starcalled / Yet Another Redgifs Downloader (YARD)-0.1.user.js
Created December 3, 2024 13:49
Tampermonkey Script that adds a download button to redgifs.
// ==UserScript==
// @name Yet Another Redgifs Downloader (YARD)
// @namespace http://tampermonkey.net/
// @version 0.1
// @description adds a button to the top-left corner that downloads redgifs videos as mp4.
// @author Starcalledd
// @match http*://*.redgifs.com/*
// @grant GM_download
// @license MIT
// @downloadURL https://update.greasyfork.org/scripts/519619/Yet%20Another%20Redgifs%20Downloader%20%28YARD%29.user.js
@jonaslsaa
jonaslsaa / jackett.py
Created April 9, 2021 14:50
jackett.py for qBittorrent (fixed)
# VERSION: 3.6
# AUTHORS: Diego de las Heras (ngosang@hotmail.es)
# CONTRIBUTORS: TheVoxcraft
# ukharley
# hannsen (github.com/hannsen)
import json
import os
import xml.etree.ElementTree
from urllib.parse import urlencode, unquote
@wilmardo
wilmardo / jackett.md
Created October 29, 2019 13:08
Jackett add public indexers all in one go

Source: Jackett/Jackett#1576 (comment)

From the Jackett page, click the "add indexer" button so that the pop up window with the full list of indexers appears.

You'll then need to open your browser's development toolbar (in Chrome just hit F12) and go to the JavaScript Console and enter the following:

////hack to add all free indexers in Jackett
$(document).ready(function () {
	EnableAllUnconfiguredIndexersList();
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active August 12, 2026 03:47
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active August 3, 2026 01:04
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux

Ok, so facebook is constantly changing something in their apis, the way the page works etc. For now (8 Feb 17) it is not possible to download all photos from conversation.

I've tried:

  • downloading copy of my data - doesn't contain any such photos
  • going to album of shared photos in the converation and then downloading the page - files don't contain images (even thumbnails...)
  • scrolling through the page on which the images appear to load them all, then saving the page, extracting links to the images and scraping them - images don't load in separate window, there is some authentication problem
  • using Chrome extentions - Image downloader, Fatkun downloader - to download the images - extentions don't list the images at all
  • using various versions of FBMessageScraper from github - all of them don't work since facebook changed it's facebook/messages to facebook/messanger
  • trying to get the photos from the iphone messenger - it doesn't have this option
  • manually clicking through the images one at
@craigomatic
craigomatic / AvatarGenerator
Created May 30, 2015 17:39
Simple text based avatar generator for C#
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Drawing.Text;
using System.IO;
namespace craigomatic.sample
{
@vctrfrnndz
vctrfrnndz / letteravatar.js
Created May 18, 2015 17:06
Generate SVG letter avatar
function drawCircle(text, size, color) {
var textSize = Math.ceil(size / 2.5);
var font = 'Proxima Nova, proxima-nova, HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif';
var colors = ["#1abc9c", "#16a085", "#f1c40f", "#f39c12", "#2ecc71", "#27ae60", "#e67e22", "#d35400", "#3498db", "#2980b9", "#e74c3c", "#c0392b", "#9b59b6", "#8e44ad", "#bdc3c7", "#34495e", "#2c3e50", "#95a5a6", "#7f8c8d", "#ec87bf", "#d870ad", "#f69785", "#9ba37e", "#b49255", "#b49255", "#a94136"];
var colorIndex = Math.floor((text.charCodeAt(0) - 65) % colors.length);
var finalColor = color || colors[colorIndex];
var template = [
'<svg height="' + size + '" width="' + size + '" style="background: ' + finalColor + '">',
'<text text-anchor="middle" x="50%" y="50%" dy="0.35em" fill="white" font-size="' + textSize + '" font-family="' + font + '">' + text.toUpperCase() + '</text>',
@paulallies
paulallies / gist:0052fab554b14bbfa3ef
Last active March 31, 2026 18:26
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>