This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$openasar_uri = "https://github.com/GooseMod/OpenAsar/releases/download/nightly/app.asar" | |
$discord = (Read-Host "Discord release (stable|ptb|canary|development): ").ToLower() -replace " ","" | |
$discord_name = "Discord" + (Get-Culture).TextInfo.ToTitleCase($discord) | |
function Stop-Discord { | |
$processes = Get-Process -Name $discord_name | |
if ($processes.Count -gt 0) { | |
$processes | Stop-Process | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
userId = int(input("Enter your Discord user ID: ")) | |
print("---") | |
inBinary = format(userId, "b") | |
inReverse = inBinary[::-1] | |
timestampPart = inReverse[22:64] | |
backInBase10 = int(timestampPart, 2) | |
plusDiscordEpoch = backInBase10 + 1420070400000 | |
inSeconds = round(plusDiscordEpoch / 1000) |
I hereby claim:
- I am botatooo on github.
- I am botatoo (https://keybase.io/botatoo) on keybase.
- I have a public key ASDbBJtVOKnbZBXolSfaTEF9eMCj1zDrVStjKm-3a1Njjgo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import json | |
import requests | |
import urllib.request | |
from urllib.error import HTTPError, URLError | |
from datetime import datetime | |
ALSO_CLEAR_DEAD_IMGUR_LINKS = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
const liveTime = document.querySelector('.live-time'); | |
const style = document.createElement("style"); | |
style.id = 'on-video-time-style'; | |
style.textContent = `#on-video-time { | |
position: absolute; | |
padding: .5rem; | |
top: 0; | |
right: .3rem; |
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import json | |
import torch | |
import transformers | |
assert ( | |
"LlamaTokenizer" in transformers._import_structure["models.llama"] | |
), "LLaMA is now in HuggingFace's main branch.\nPlease reinstall it: pip uninstall transformers && pip install git+https://github.com/huggingface/transformers.git" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Don't Edit Documents from Teams | |
// @version 1 | |
// @include https://*.sharepoint.com/* | |
// @grant none | |
// ==/UserScript== | |
const searchParams = new URLSearchParams(location.search) | |
if (searchParams.get("wdOrigin") === "TEAMS-ELECTRON.teamsSdk.openFilePreview" && searchParams.get("action") === "edit") { |