Skip to content

Instantly share code, notes, and snippets.

@avestura
avestura / delete-from-users-where-location-iran.md
Last active December 30, 2025 17:24
DELETE FROM users WHERE location = 'IRAN';

DELETE FROM users WHERE location = 'IRAN';

Hi! I am an Iranian Software Engineer, and in this torn paper note, I want to talk about some funny moments I had online related to the fact that I was spawned in this specific region of the world: Iran.

Microsoft deleted my app, ignored my mails

Back when I was a student, I got access to the Microsoft Imagine, and as a result, I got access to the Microsoft Store as a developer. This inspired me write one of my open-source projects called EyesGuard and publish it on Microsoft Store. However, one day, somebody told me that they can no longer find EyesGuard on the store.

@RexYuan
RexYuan / desk.md
Last active November 21, 2025 01:43
A list of which standing desk companies use base from what companies
Base companies Desk companies
Jiecang Poppin, HON, Allsteel, AMQ, Enwork, Uplift, Haworth, Xybix, Hat Contract, Uncaged Ergonomics, Omnidesk, AITerminal, Fully(Herman Miller+Knoll), Funte, Desky
Kaidi LTJ Kantoormeubelen, Teknion, OFS, Friant, Varidesk, BTOD
Loctek Loctek, Flexispot(Loctek)
Timotion Backbone, Humanconnect(FLH), Motti(Timotion), Autonomous SmartDesk, Trendway, Symmetry, DEZCTOP, Steelcase
OMT-Veyhl / LogicData(Jiecang) Herman Miller, Haworth, Special T, iMovR, BTOD, DeskHaus
Linak Steelcase, Ergonofis, Ikea, Xdesk, Inwerk, Charcoal, iMovR, Buldesk, Workrite, UpDesk
Actiforce Steelcase
Conset Conset, Flexiwork
@Theldus
Theldus / README.md
Last active December 8, 2025 17:54
The only proper way to debug 16-bit (x86) code on Qemu+GDB

The only proper way to debug 16-bit code on Qemu+GDB

(or nearly so...)

GDB is undeniably an extremely versatile debugger, with the ability to add breakpoints, watchpoints, dump memory, registers, and the source code (along with its corresponding assembly). These features make it the perfect Swiss Army knife for most programmers. In addition to that, the possibility of implementing a 'GDB Stub' and automatically supporting GDB in your application makes it an almost universal debugger for a variety of tasks.

Qemu, like other virtual machines (such as 86Box), also implements debugging via GDB Stub, which enormously facilitates the development of bootloaders, operating systems, and more. The support for 32-bit and 64-bit code is quite good, and I have never seen any complaints about it. However, for 16-bit/real mode...

Is debugging in 16-bit/real mode really that bad?

If you have ever tried to debug 16-bit code on Qemu, you know how painful it can be:

  1. GDB thinks your code is
@Heartade
Heartade / twitter-get-follows.user.js
Created April 12, 2023 19:32
Dirty userscript that gets twitter follows along with user uuid and description
// ==UserScript==
// @name TwitterGetFollows
// @namespace TwitterGetFollows
// @version 1
// @description Get Twitter Follow
// @match https://twitter.com/*
// @grant none
// ==/UserScript==
(function () {
@kennytv
kennytv / readme.md
Last active December 11, 2025 21:12
Signed Chat and Chat Types

Signed chat

This gist intends on clearing up some of the misinformation surrounding signed chat/the reporting feature Mojang has added to Minecraft 1.19.1. Here you can find both technical information as well as a general explanation of how these work.

Profile keys

After joining a server, clients now send a profile key used for verifying a message's authenticity. This key and thus the whole signing process is optional, but by default, servers enforce secure profiles for clients to send chat messages. Whenever the player sends a chat message and has a key associated, the message will be signed using their own private key, which the server then verifies using the public key sent after join. Assuming signature, timestamp, and message contents line up, the message goes through.

On the other end, clients can also require all broadcasted player messages to be signed, disregarding the ones without sender verified signatures.

Message signatures

@RanolP
RanolP / iosevka-nf-concentrator.mjs
Last active June 4, 2022 04:48
Download, Unzip, Classify.
import { promises as fs, constants as FS } from 'node:fs';
import { exec } from 'node:child_process';
import { promisify } from 'node:util';
import path from 'node:path';
const ColorRegex = /(?:\\([fFbB])([0-9]))|(\\0)/g;
function echo(templates, ...params) {
console.log(
String.raw(templates, ...params)
.replaceAll(ColorRegex, (_, fb, id, zero) =>
@entrypointkr
entrypointkr / JavaCVPlayer.java
Last active April 4, 2022 08:24
Minecraft draw video frame using JavaCV, OpenGL
import org.bytedeco.javacv.FFmpegFrameGrabber;
import org.bytedeco.javacv.Frame;
import org.bytedeco.javacv.FrameGrabber;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
import org.lwjgl.opengl.GL30;
import javax.sound.sampled.*;
import java.awt.image.*;
import java.io.File;
@VicnAbi
VicnAbi / README.md
Last active February 26, 2023 01:50
Akai Nabang filter

I have no right or responsibility for the filter, but please read and use this article.
If you use the filter on Nabi, please read https://aoinabii.tumblr.com/guideline
Please do not use filters for all scenes because of Twitch stream.
Don't try to make other streamers laugh or gain popularity without affection for Nabi.
Stop using immediately when Nabi tells you to stop.
I hope it doesn't become like a lot of banned Hololive EN memes now.

저에게 어떠한 책임도 권리도 없지만, 아래 글을 읽고 사용하기를 부탁합니다.
나비에게 이 필터를 사용할경우 https://aoinabii.tumblr.com/guideline 을 먼저 읽어주세요.
트위치 방송이라는 이유만으로 모든 장면에 필터를 걸지 말아주세요.

@FreddieOliveira
FreddieOliveira / docker.md
Last active December 30, 2025 11:27
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@yvesf
yvesf / fhsenv.nix
Created September 4, 2020 21:31
Running mediatek SP Flash Tool in nixos
let
pkgs = import <nixpkgs> {};
in pkgs.buildFHSUserEnv {
name = "fhs";
targetPkgs = pkgs: [
pkgs.nextcloud-client
pkgs.fontconfig
pkgs.freetype
pkgs.zlib
pkgs.wine