Skip to content

Instantly share code, notes, and snippets.

@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:

@JohannesMP
JohannesMP / EnableDiscordDevExperiments.md
Last active April 15, 2024 16:09 — 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.


@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/*
@maratori
maratori / .golangci.yml
Last active April 16, 2024 08:56
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:
@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.

# 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 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 {
@astamicu
astamicu / Remove videos from Youtube Watch Later playlist.md
Last active April 17, 2024 16:04
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();
anonymous
anonymous / words
Created October 10, 2017 15:44
[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)