Skip to content

Instantly share code, notes, and snippets.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active October 24, 2026 22:37
Complete Recent Discord Quest

Caution

As of August 26th 2026, Discord has started suspending quest access of people caught automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you WILL get flagged by doing so.

Complete Recent Discord Quest

@taq
taq / longjmp_problema.c
Created October 21, 2026 21:58
A longjmp problem example
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <setjmp.h>
jmp_buf env;
char *buffer = NULL;
void funcao_que_aloca(void) {
buffer = malloc(64);
{%- set image_count = namespace(value=0) %}
{%- set video_count = namespace(value=0) %}
{%- macro render_content(content, do_vision_count, is_system_content=false) %}
{%- if content is string %}
{{- content }}
{%- elif content is iterable and content is not mapping %}
{%- for item in content %}
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
{%- if is_system_content %}
{{- raise_exception('System message cannot contain images.') }}
@zeke
zeke / afplay.md
Last active October 24, 2026 20:56
afplay: the Mac's built-in command-line audio player

afplay

afplay is a command-line audio player built into macOS. You give it a file and it plays it, with no window and no controls. It stops when the file ends or when you kill it.

afplay -h

# -v, --volume VOLUME   volume. 1 is normal, 0.5 is quieter
# -t, --time TIME       only play the first TIME seconds
# -r, --rate RATE       playback speed. 1.5 is 50% faster
/* ==================================================================== */
/* STEPHANE TUFFERY
/* MODELISATION PREDICTIVE ET APPRENTISSAGE STATISTIQUE AVEC R
/* ==================================================================== */
# ---------------------------------------------------------------------------------------------------------
# Installation des packages
# ---------------------------------------------------------------------------------------------------------
@dellaert
dellaert / jev_minimal_repro.ipynb
Created September 20, 2026 23:33
Jev + GTSAM: minimal standalone reproduction of CPT generation, evidence updates, and Bayesian-network structure recovery
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Office 2021

Method 1: Using my command line

Step 1.1: Open cmd program with administrator rights.

  • First, you need to open cmd in the admin mode, then run all commands below one by one.

Step 1.2: Get into the Office directory in cmd.

  • For x86 and x64
cd /d %ProgramFiles(x86)%\Microsoft Office\Office16
# --------------------------------------------------------------
# operationSwitcher.py
# Version: 2.0.0
# Last Updated: August 23rd, 2018
# Thanks to Falk Hofmann for making improvements!
# --------------------------------------------------------------
# --------------------------------------------------------------
# USAGE: