Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name el ebin bitchute downloader (cemerson update)
// @namespace http://tampermonkey.net/
// @version 0.1
// @description no homo
// @author [email protected] (cemerson 20190516 update)
// @match https://www.bitchute.com/video/*
// @grant none
// ==/UserScript==
@mmathys
mmathys / vimeo-vod.md
Last active May 5, 2025 15:26
Download Vimeo VOD (video on demand)

How to download vimeo VOD for offline usage

Variant 1: yt-dlp

Using yt-dlp (thank you @ayyucedemirbas!)

You must have a Vimeo account, do not sign in via Google or anything else, yt-dlp asks for your email address and password to log in.

You must install the yt-dlp via the command below (for MacOS):

@bluetechy
bluetechy / gist:dcaa5af71f4a2dc51f940469aa705621
Created November 22, 2017 07:00
Tracking Number Link Generator (UPS, FedEx, DHL)
import re
def tracking_link_html(tracking_number):
regex_handlers = [
(r'\b(1Z ?[0-9A-Z]{3} ?[0-9A-Z]{3} ?[0-9A-Z]{2} ?[0-9A-Z]{4} ?[0-9A-Z]{3} ?[0-9A-Z]|[\dT]\d\d\d ?\d\d\d\d ?\d\d\d)\b', ups_link),
(r'(\b96\d{20}\b)|(\b\d{15}\b)|(\b\d{12}\b)', fedex_link),
(r'\b((98\d\d\d\d\d?\d\d\d\d|98\d\d) ?\d\d\d\d ?\d\d\d\d( ?\d\d\d)?)\b', fedex_link),
(r'^[0-9]{12}$', fedex_link),
(r'^[0-9]{10}$', dhl_link)
@LexManos
LexManos / 1-THOUGHTS
Last active September 30, 2018 13:45
1.12 Recipe enhancements
Basic loading.
To be done on ServerInit. This means things will load multiple times on the client.
Benifits:
Allows us to just nuke the custom recipes every server init
Allows us to have save leve overrides.
Primes us for syncing recipe types/contents S->C {Not gunna happen in 1.12, but I expect Mojang to work twards this in 1.13+}
Cons:
Increases single player server load time. No known stats at the moment but shouldn't be TO bad
Loading Process:
@Shadows-of-Fire
Shadows-of-Fire / RecipeHelper.java
Last active September 30, 2018 02:10
Recipes in 1.12
import java.util.ArrayList;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.item.crafting.Ingredient;
import net.minecraft.item.crafting.ShapedRecipes;
import net.minecraft.item.crafting.ShapelessRecipes;
@joshschmelzle
joshschmelzle / remove-gamebar-powershell-win10.md
Last active August 9, 2025 12:37
How to Remove the Xbox Game Bar with Powershell on Windows 10. Scroll to the end of the gist for Windows 11.

You've probably stumbled upon this researching how to remove the Xbox Game Bar. This gist includes a few different methods you can try. Please note that some of these first options are probably not be available unless you are running an older version of Windows 10.

EDIT: make sure to check out the comment below from @nmhung1985 which seems to be working for most folks.

Uninstalling/Removing the Game Bar (old Windows 10 build GUI options)

(this is no longer an option on any recent Windows 10 build)

  1. Press Windows Key or click on the Start menu.
  2. Start typing Xbox or Game Bar, until you get the Xbox Game Bar app to appear in the results.
@mannharleen
mannharleen / AddPrimaryContact.cls
Created November 2, 2016 15:46
Salesforce trailhead - Asynchronous Apex Controlling Processes with Queueable Apex
public class AddPrimaryContact implements Queueable {
public contact c;
public String state;
public AddPrimaryContact(Contact c, String state) {
this.c = c;
this.state = state;
}
public void execute(QueueableContext qc) {
@dillansimmons
dillansimmons / recaptchaMarketo.js
Created October 21, 2016 05:51
Insert Google reCAPTCHA into Marketo form with validation
/* Load the Google reCAPTCHA API : Make sure it loads somewhere above the insert code-->
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
*/
/* Main code that inserts the reCAPTCHA into the marketo form */
// Wait for Marketo form to load
MktoForms2.whenReady(function (form) {
// Insert the recap div after the last form row
$( '<div id="recap"></div>' ).insertAfter( ".mktoFormRow:last-of-type" );
// render the recap : replace with your site key
@ddeveloperr
ddeveloperr / git_push_force_upstream.md
Last active September 6, 2023 15:52
How to force “git push” to overwrite remote repo files WITH LOCAL files

You want to push your local files to remote files

git push -f <remote> <branch>
git push -f origin master

Local version has priority over the remote one!

more...

@smbarbour
smbarbour / ClientProxy.java
Last active December 9, 2022 05:42
ItemColors implementation
package com.example.examplemod;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.common.FMLLog;
/**
* Created by sbarbour on 4/7/16.