Skip to content

Instantly share code, notes, and snippets.

The Freenode resignation FAQ, or: "what the fuck is going on?"

IMPORTANT NOTE:

It's come to my attention that some people have been spamming issue trackers with a link to this gist. While it's a good idea to inform people of the situation in principle, please do not do this. By all means spread the word in the communities that you are a part of, after verifying that they are not aware yet, but unsolicited spam is not helpful. It will just frustrate people.

Update 3 (May 24, 2021)

A number of things have happened since the last update.

@Maharaghi
Maharaghi / README.md
Last active September 21, 2022 18:52
Play Attack on Titan Opening 1 as a Discord ASCII message

THIS IS CLIENT SIDED AND NO ONE ELSE CAN SEE THIS

  1. Send a message with the exact string "START" (without quotes) in any Discord channel.
  2. Open the console with CTRL+SHIFT+I.
  3. Paste the code below.
  4. Hope it works and that the css classes are the same as when I made this.

If it doesn't work, you'll have to change the css selectors.
In the code it's .markup-eYLPri.messageContent-2t3eCI, you'll have to find the new selectors for the message yourself.

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
# IDA (disassembler) and Hex-Rays (decompiler) plugin for Apple AMX
#
# WIP research. (This was edited to add more info after someone posted it to
# Hacker News. Click "Revisions" to see full changes.)
#
# Copyright (c) 2020 dougallj
# Based on Python port of VMX intrinsics plugin:
# Copyright (c) 2019 w4kfu - Synacktiv
@skeeto
skeeto / README.md
Last active September 23, 2024 02:16
AI driving simulation
@graninas
graninas / What_killed_Haskell_could_kill_Rust.md
Last active June 12, 2026 07:31
What killed Haskell, could kill Rust, too

At the beginning of 2030, I found this essay in my archives. From what I know today, I think it was very insightful at the moment of writing. And I feel it should be published because it can teach us, Rust developers, how to prevent that sad story from happening again.


What killed Haskell, could kill Rust, too

What killed Haskell, could kill Rust, too. Why would I even mention Haskell in this context? Well, Haskell and Rust are deeply related. Not because Rust is Haskell without HKTs. (Some of you know what that means, and the rest of you will wonder for a very long time). Much of the style of Rust is similar in many ways to the style of Haskell. In some sense Rust is a reincarnation of Haskell, with a little bit of C-ish like syntax, a very small amount.

Is Haskell dead?

@AlecTroemel
AlecTroemel / super_corgo_drifter.p8
Last active August 21, 2020 09:29
GMTK Jam 2020 game. collect cherries while hanging on to your dogs leash!
pico-8 cartridge // http://www.pico-8.com
version 29
__lua__
-- pico lib
-------------------------------
-------- id counter -----------
-------------------------------
id_counter=0
function get_id()
#define TRISTAR_IIC_BUS 0
#define CBTL1610_R 0x35
#define CBTL1610_W 0x34
void (*task_sleep)(uint64_t delay) = TARGET_BASEADDR + 0x1FFDC;
int (*iic_read)(int iic, uint8_t address, const void *send_data, size_t send_len, void *data, size_t len, uint8_t fmt) = TARGET_BASEADDR + 0xA008;
int (*iic_write)(int iic, uint8_t address, const void *data, size_t len) = TARGET_BASEADDR + 0xA168;
int (*tristar_write)(uint8_t reg, uint8_t value) = TARGET_BASEADDR + 0xD644;
int (*tristar_read)(uint8_t reg, uint8_t *data) = TARGET_BASEADDR + 0xD604;
@srebalaji
srebalaji / git-hard-delete
Last active July 23, 2025 00:17
Examples of git custom command
#!/bin/sh
branch=$1
if [ ! -z "$1" ]
then
git branch -D $branch
git push -d origin $branch
else
echo "Branch name is not specified"