Skip to content

Instantly share code, notes, and snippets.

@Acendro
Acendro / Youtube_Playlist_Cleanser.js
Last active Oct 3, 2021
Removes watched videos from playlist either by %watched or removes all videos of that playlist // tampermonkey
View Youtube_Playlist_Cleanser.js
// ==UserScript==
// @name Youtube Playlist Cleanser 1.0
// @namespace Youtube Playlist Cleanser 1.0
// @version 1.0
// @description Removes watched videos from playlist either by %watched or all
// @author Acendro
// @include http*://*.youtube.com/*
// @include http*://youtube.com/*
// @include http*://*.youtu.be/*
// @include http*://youtu.be/*
View simplewords.py
# To use this, you need Python 3.5+ and pip.
#
# 1. Make a new Discord app with a bot. https://discordapp.com/developers/applications/
#
# 2. Set environment variable SIMPLEWORDS_TOKEN on your computer to the bot's Token.
# Unix/Mac: export SIMPLEWORDS_TOKEN=MzABCDefghIJKLmnopQRSTuv.EnZ3kg.b5bdD74CKCr3du679hkemGJ7R7N
# PowerShell: $env:SIMPLEWORDS_TOKEN='MzABCDefghIJKLmnopQRSTuv.EnZ3kg.b5bdD74CKCr3du679hkemGJ7R7N'
#
# 3. Invite the bot to your server: https://stackoverflow.com/a/37743722/257418
#
@Muqsit
Muqsit / StringUtils.php
Created Jan 16, 2018
minet str center
View StringUtils.php
<?php
/**
* Source from:
* https://github.com/NiclasOlofsson/MiNET/blob/master/src/MiNET/MiNET/Utils/TextUtils.cs
*/
namespace cosmiccore\miscs;
use pocketmine\utils\TextFormat as TF;
class StringUtils {
@astamicu
astamicu / README.md
Last active Nov 29, 2021
Script to remove all videos from Youtube Watch Later playlist
View README.md

UPDATED 3.12.2020

The old version of youtube with "disable_polymer" is not working anymore, so the script also stopped working.

Thanks to JanTheDeveloper we have a new working script. Big up!

I just changed the '//span[contains(text(),"Watch later")]', to '//span[contains(text(),"Remove from")]', and it should work for any playlist, not just the watch later one. (thanks to hudsonite for the tip)

setInterval(function () {
  document.querySelector('#primary button[aria-label="Action menu"]').click();
anonymous
anonymous / words
Created Oct 10, 2017
View words
[a, auto] [p, play] [toggle]* 0 parameter(s)
[admin]* [cmds, commands] [reload] 0 parameter(s)
[admin]* [eval] 1 parameter(s)
[admin]* [gc] 0 parameter(s)
[admin]* [get, find] [servers, guilds] [mutual]* 1 parameter(s)
[admin]* [history] [get]* 2 parameter(s)
[admin]* [throw error, throwerror] 0 parameter(s)
[admin]* [usage] 0 parameter(s)
[b, previous, prev, back] [track]* 0 parameter(s)
[bot]* [set] [name] 1 parameter(s)
@dktapps
dktapps / run.php
Last active Dec 9, 2020
A basic UDP proxy used to bypass client-side Xbox Live authentication in MCPE 1.2.
View run.php
<?php
/*
*
* ____ _ _ __ __ _ __ __ ____
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
*
View README.md

This is a simple CLI tool for managing phar files easily.

This tool is intended for Windows users using Linux-like shells.

Required executables/commands in the %PATH%:

  • mintty for starting a window that hosts the vim editor
  • vi for editing a temp file from phar v

If php is in the %PATH%, you may put this file in a directory in the %PATH% with or without a file extension, then execute this directly from the shell. For example, I save this as phar in one of the directories in my path variable, so I just execute phar l path/to/file.phar directly on Git Bash.

View why_no_777.txt
I received the following comment from a web developer after I told him I wouldn't make his volatile files directory chmod 777 so Apache could write to it.
"777 tends to scare sys admins, so I understand."
Here's my response:
"Yes, it scares us and it should scare you.
"Think of your account like an apartment. If you set your permissions to 777, anyone who can get into the building (onto the server) can make changes: raid your fridge, steal your cat, replace your pillows, or plant evidence pointing to a crime you didn't commit. Even if they did none of those things, you can get skeeved out by the possiblility.
@svilex
svilex / McpeProxy_README.md
Last active Aug 9, 2021
Useful informations about McpeProxy
View McpeProxy_README.md
View MCPE_Vtable_Dumper.idc
/*
This exports vtable entry symbols to a file.
Run this in the IDA Script Command window (File->Script Command...)
Each vtable segment in the output file is separated by an empty line.
*/
#include <idc.idc>
static getPointerAddress(loc)