Skip to content

Instantly share code, notes, and snippets.

View itwars's full-sized avatar
😎
C◎⦿L

Vincent RABAH itwars

😎
C◎⦿L
View GitHub Profile
@lcheylus
lcheylus / nvim_init.lua
Created October 8, 2025 16:35
Minimal configuration file for Neovim
-- Minimal configuration file for Neovim
-- Check if needed commands are available
local function is_command_available(cmd)
-- os.execute returns true (or exit code 0) if the command exists
local result = os.execute('command -v ' .. cmd .. ' >/dev/null 2>&1')
-- Lua 5.2+ returns true on success, or nil/false on failure
-- Lua 5.1 returns status code shifted left (e.g., 0 = success)
if result == true or result == 0 then
@rain-1
rain-1 / base model trends.md
Last active December 25, 2025 23:27
base model trends.md
@kelvinauta
kelvinauta / remove_comments.lua
Created July 2, 2025 04:07
This function removes all comments from your code using treesitter in nvim.
local RemoveComments = function()
local ts = vim.treesitter
local bufnr = vim.api.nvim_get_current_buf()
local ft = vim.bo[bufnr].filetype
local lang = ts.language.get_lang(ft) or ft
local ok, parser = pcall(ts.get_parser, bufnr, lang)
if not ok then return vim.notify("No parser for " .. ft, vim.log.levels.WARN) end
local tree = parser:parse()[1]
@rougier
rougier / nano.el
Created February 4, 2025 18:48
NANO Emacs (minimal version: 256 lines)
;; nano-emacs.el --- NANO Emacs (minimal version) -*- lexical-binding: t -*-
;; Copyright (c) 2025 Nicolas P. Rougier
;; Released under the GNU General Public License 3.0
;; Author: Nicolas P. Rougier <nicolas.rougier@inria.fr>
;; URL: https://github.com/rougier/nano-emacs
;; This is NANO Emacs in 256 lines, without any dependency
;; Usage (command line): emacs -Q -l nano.el -[light|dark]
@ashish-kus
ashish-kus / hyprlock.conf
Last active April 17, 2026 08:44
minimal Hyprlock
$hypr = ~/.config/hypr
source = $hypr/colors.conf # for custom color
# GENERAL
general {
no_fade_in = true
grace = 1
disable_loading_bar = false
hide_cursor = true
ignore_empty_input = true
@timothyham
timothyham / ipv6guide.md
Last active July 28, 2026 20:00
A Short IPv6 Guide for Home IPv4 Admins

A Short IPv6 Guide for Home IPv4 Admins

This guide is for homelab admins who understand IPv4s well but find setting up IPv6 hard or annoying because things work differently. In some ways, managing an IPv6 network can be simpler than IPv4, one just needs to learn some new concepts and discard some old ones.

Let’s begin.

First of all, there are some concepts that one must unlearn from ipv4:

Concept 1

@frozenpandaman
frozenpandaman / widevine-decryption.md
Last active August 18, 2026 13:02
download videos protected with widevine DRM
@surendrajat
surendrajat / config.json
Last active March 11, 2026 01:35
A Clean & Customizable Weather module for Waybar
"custom/weather": {
"exec": "python ~/.config/waybar/scripts/weather.py",
"restart-interval": 300,
"return-type": "json",
"on-click": "xdg-open https://weather.com/en-IN/weather/today/l/$(location_id)"
// "format-alt": "{alt}",
},
@fabianoriccardi
fabianoriccardi / Comparison Espressif ESP MCUs.md
Last active April 4, 2026 08:44
Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

A minimal table to compare the Espressif's MCU families. The reported specifications are referred to the SoC, not to the modules (silver shield).

ESP8266 ESP32 ESP32-S2 ESP32-S3 ESP32-C3 ESP32-C6
Announcement Date 2014, August 2016, September
@maxivak
maxivak / _0__ssl_certbot_letsencrypt.md
Last active January 1, 2026 14:33
Let's encrypt SSL certificates using certbot in docker

Directories on host machine:

  • /data/certbot/letsencrypt

  • /data/certbot/www

  • Nginx server in docker container

docker run -d --name nginx \