Skip to content

Instantly share code, notes, and snippets.

View antonymerle's full-sized avatar
🎯
Focusing

Antony Merle antonymerle

🎯
Focusing
View GitHub Profile
@habamax
habamax / emacs-python-treesitter-eglot.org
Last active January 23, 2026 16:17
Setup Emacs for Python with Treesitter and Eglot

Emacs, Python, Treesitter and Eglot

Treesitter (“better”/faster syntax highlighting)

  1. Make sure you have Emacs with treesitter support:

    M-: (treesit-available-p) RET should return t

  2. Make sure you have installed python treesitter grammar
@zoliky
zoliky / installing-emacs-from-source-on-debian.txt
Last active January 24, 2026 21:18
Installing Emacs 29.1 from source on Debian 12
Installation
------------
1. Install the build dependencies for Emacs:
$ sudo apt build-dep emacs
$ sudo apt install libtree-sitter-dev
2. Download and unpack the Emacs archive:
@abhagatbb
abhagatbb / instal-windows-terminal.ps1
Last active May 10, 2026 16:02
Install Windows Terminal without the Store
<#
*** Install Windows Terminal without the Store ***
If the Store app is not available on the system, the only option is to download the package from GitHub and install it using PowerShell. This does not require elevated privileges because the MSIX package is set up separately for each user.
There are always multiple versions of Windows Terminal available on GitHub. As a rule, you will opt for Latest, i.e., the current GA release. There, you select the file
Microsoft.WindowsTerminal Win10 <Version> 8wekyb3d8bbwe.msixbundle.
The packages with "PreinstallKit.zip" in their names are intended for offline integration into a Windows image.
#>
@abidanBrito
abidanBrito / build_emacs_gtk_x11.sh
Last active May 11, 2026 22:32
Build GNU Emacs from source.
#!/usr/bin/env bash
## Author: Abidán Brito
## This script builds GNU Emacs 29.1 with support for native elisp compilation,
## tree-sitter, libjansson (C JSON library), pure GTK and mailutils.
# Exit on error and print out commands before executing them.
set -euxo pipefail
# Let's set the number of jobs to something reasonable; keep 2 cores
@bmcbm
bmcbm / setup-nvdia-suspend.sh
Last active May 3, 2026 15:47
NVIDIA Suspend fix
# Use systemd for managing NVIDIA driver suspend in drivers ====>>> PRIOR to version 470 <<<=====
# https://download.nvidia.com/XFree86/Linux-x86_64/450.66/README/powermanagement.html
# https://forums.developer.nvidia.com/t/unable-to-set-nvidia-kernel-module-parameters/161306
# Please note: In Fedora Linux you may need to just install the xorg-x11-drv-nvidia-power pakage
# as sugested by @goombah88 in the comments below.
TMP_PATH=/var/tmp
TMPL_PATH=/usr/share/doc/nvidia-driver-460/
echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=${TMP_PATH}" | sudo tee /etc/modprobe.d/nvidia-power-management.conf

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@d7samurai
d7samurai / .readme.md
Last active May 2, 2026 08:25
Minimal D3D11

Minimal D3D11

Minimal D3D11 reference implementation: An uncluttered Direct3D 11 setup + basic rendering primer and API familiarizer. Complete, runnable Windows application contained in a single function and laid out in a linear, step-by-step fashion that should be easy to follow from the code alone. ~200 LOC. No modern C++ / OOP or (other) obscuring cruft. View on YouTube

hollowcube

Other gists in this series:

@henrytriplette
henrytriplette / Windows 10 GRUB Remove.md
Last active February 15, 2026 01:51
Windows 10 - How to Remove GRUB from UEFI partition

Select the hard drive

From administrator cmd run these commands to identify and select the hard drive

diskpart
 
list disk
 
sel disk 

Assign it a drive letter

Orthodox C++

This article has been updated and is available here.

@jakimowicz
jakimowicz / the % notation in ruby.md
Last active February 18, 2026 11:54
%Q, %q, %W, %w, %x, %r, %s, %I, %i

%Q, %q, %W, %w, %x, %r, %s, %i

Perl-inspired notation to quote strings: by using % (percent character) and specifying a delimiting character.

Any single non-alpha-numeric character can be used as the delimiter, %[including these], %?or these?, %~or even these things~.

Strings

% or %Q