Skip to content

Instantly share code, notes, and snippets.

@lenalebt
lenalebt / DefaultKeyBinding.dict
Created December 18, 2019 06:59
How to use a typical Linux / Windows Keybindung on MacOS (tested with 10.15.2 Catalina)
/*
PUT THIS FILE IN ~/Library/KeyBindings/DefaultKeyBinding.dict
This file remaps the key bindings of a single user on Mac OS X 10.5 to more closely
match default behavior on Windows systems. This particular mapping assumes
that you have also switched the Control and Command keys already.
This key mapping is more appropriate after switching Ctrl for Command in this menu:
Apple->System Preferences->Keyboard & Mouse->Keyboard->Modifier Keys...->
Change Control Key to Command
Change Command key to Control
@BadCoder1337
BadCoder1337 / mouse_manager.ps1
Last active July 11, 2020 13:08
AFTER THE LAST GAME UPDATE THIS METHOD DOESN'T WORK ANYMORE
Add-Type -AssemblyName System.IO.Compression.FileSystem
Write-Host "Location: $PSScriptRoot"
Write-Host "Username: $env:UserName"
Set-Location $PSScriptRoot
$dataDir = "./mouse_manager_data"
# Get the ID and security principal of the current user account
$myWindowsID=[System.Security.Principal.WindowsIdentity]::GetCurrent()
@fourjr
fourjr / Discord Loading Lines.js
Last active June 28, 2022 08:16
loading lines
welcome messages: "https://gist.github.com/fourjr/0f47ce8a000c29cd4e24f8aeb7edd8e0"
Somewhere in 2020, they changed their loading lines to be more (professional?).
Ctrl+Shift+I > Application > Frames > top > Scripts > a3762dfb973e0a7a21ba.js > ctrl+f "LOADING_LINE" or https://canary.discordapp.com/assets/a3762dfb973e0a7a21ba.js
LOADING_LINE_1: "Discord was almost called Bonfire before we picked our name. It was meant to be nice and cozy.",
LOADING_LINE_2: "Discord was almost called Wyvern before we picked our name. Not too proud of that one.",
LOADING_LINE_3: "Our logo's name is Clyde.",
LOADING_LINE_4: 'There are a bunch of hidden "Easter Eggs" in the app that happen when you click certain things...', LOADING_LINE_5: "Discord started as a game company making a mobile game called Fates Forever.",
LOADING_LINE_6: "Discord’s official birthday is May 13, 2015.",
@fourjr
fourjr / Discord Join Messages.js
Last active July 22, 2023 18:11
new member messages discord
loading lines: "https://gist.github.com/fourjr/f94fc112cef6da07fc274216d5755420"
Somewhere in 2020, they reduced the messages from 38 to 13.. This is the updated list on 5 December 2020.
Ctrl+Shift+I > Application > Frames > top > Scripts > a3762dfb973e0a7a21ba.js > ctrl+f "GUILD_MEMBER_JOIN" or https://canary.discordapp.com/assets/a3762dfb973e0a7a21ba.js
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_001: "[!!{username}!!](usernameOnClick) joined the party.",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_002: "[!!{username}!!](usernameOnClick) is here.",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_003: "Welcome, [!!{username}!!](usernameOnClick). We hope you brought pizza.",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_004: "A wild [!!{username}!!](usernameOnClick) appeared.",
SYSTEM_MESSAGE_GUILD_MEMBER_JOIN_005: "[!!{username}!!](usernameOnClick) just landed.",
@cazala
cazala / guide.md
Created January 2, 2018 16:19 — forked from menduz/guide.md
Frontend React + TypeScript guidelines

Directory Structure

The sources of the project follows this structure:

/src
  /app
    /{domain}
      /actions.ts
 /actions.spec.ts
@DasWolke
DasWolke / microservice bots.md
Last active June 11, 2024 18:16
Microservice bots

Microservice Bots

What they are and why you should use them

Introduction

Recently more and more chatbots appear, the overall chatbot market grows and the platform for it grows as well. Today we are taking a close look at what benefits creating a microservice chatbot on Discord - (a communication platform mainly targeted at gamers) would provide.

The concepts and ideas explained in this whitepaper are geared towards bots with a bigger userbase where the limits of a usual bot style appear with a greater effect

Information about Discord itself

(If you are already proficient with the Discord API and the way a normal bot works, you may skip ahead to The Concept)