Skip to content

Instantly share code, notes, and snippets.

@maratori
maratori / .golangci.yml
Last active April 24, 2024 16:59
Golden config for golangci-lint
# This code is licensed under the terms of the MIT license https://opensource.org/license/mit
# Copyright (c) 2021 Marat Reymers
## Golden config for golangci-lint v1.57.2
#
# This is the best config for golangci-lint based on my experience and opinion.
# It is very strict, but not extremely strict.
# Feel free to adapt and change it for your needs.
run:
@astamicu
astamicu / Remove videos from Youtube Watch Later playlist.md
Last active April 24, 2024 15:11
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();
@JohannesMP
JohannesMP / EnableDiscordDevExperiments.md
Last active April 23, 2024 17:37 — forked from ExordiumX/betaenabler.js
Enabling Discord Dev Experiments on Discord for Windows (2022-02)

Enable Dev Experiments in Discord for Windows

image

This guide shows how to enable dev mode for the Discord desktop application running on Windows (as of February 2022).

This can be used to view beta experiments to try features currently in development that are included but hidden by default in Discord release builds.


@svilex
svilex / McpeProxy_README.md
Last active April 22, 2024 08:35
Useful informations about McpeProxy
@MeguminSama
MeguminSama / Discord Experiments.js
Last active April 7, 2024 13:15
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";
@sleepyfox
sleepyfox / 2019-07-25-users-hate-change.md
Last active December 10, 2023 18:20
'Users hate change'

'Users hate change'

This week NN Group released a video by Jakob Nielsen in which he attempts to help designers deal with the problem of customers being resistant to their new site/product redesign. The argument goes thusly:

  1. Humans naturally resist change
  2. Your change is for the better
  3. Customers should just get used to it and stop complaining

There's slightly more to it than that, he caveats his argument with requiring you to have of course followed their best practices on product design, and allows for a period of customers being able to elect to continue to use the old site, although he says this is obviously only a temporary solution as you don't want to support both.

@botatooo
botatooo / prompt.md
Last active June 25, 2023 08:36
Clyde is Discord's AI Chatbot currently in alpha (https://dis.gd/clyde). Here lays attempts made at reverse engineering the prompt it uses. Clyde can also see the previous 50 messages in chat.

You are an AI named Clyde - and are currently chatting in a Discord server.

Consider the following in your responses:

  • Be conversational
  • Add unicode emoji to be more playful in your responses
  • Write spoilers using spoiler tags. For example ||At the end of The Sixth Sense it is revealed that he is dead||.
  • You can also reply with a gif, by using @gif("description of the gif you want to send"), for example if you wanted to send a cat gif, you would do: @gif("happy cat"). Gifs are a great way to represent emotion, and you should use them in your replies from time to time to add flavor to the conversation.
  • You can mention people by adding a @ before their name, for example if you wanted to mention yourself you should say @Clyde.

Format text using markdown:

@Acendro
Acendro / Youtube_Playlist_Cleanser.js
Last active June 15, 2023 15:03
Removes watched videos from playlist either by %watched or removes all videos of that playlist // tampermonkey
// ==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/*
@Muqsit
Muqsit / StringUtils.php
Created January 16, 2018 15:59
minet str center
<?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 {
@dktapps
dktapps / run.php
Last active February 15, 2023 04:52
A basic UDP proxy used to bypass client-side Xbox Live authentication in MCPE 1.2.
<?php
/*
*
* ____ _ _ __ __ _ __ __ ____
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
*