Skip to content

Instantly share code, notes, and snippets.

View ralgozino's full-sized avatar
🦖

Ramiro Algozino ralgozino

🦖
View GitHub Profile
@Demonstrandum
Demonstrandum / Iceberg Light.json
Created July 10, 2024 19:08
Iceberg Themes for Zed Editor
{
"id": "iceberg-light-theme",
"$schema": "https://zed.dev/schema/themes/v0.1.0.json",
"name": "Iceberg Light Theme",
"author": "S Knutsen <samuel@knutsen.co>",
"description": "Un-official port of (Neo)Vim Iceberg theme. Credits for https://github.com/cocopon/iceberg.vim",
"themes": [
{
"name": "Iceberg Light",
"appearance": "light",
@oetiker
oetiker / Readme.md
Last active February 28, 2024 17:22
Migrating Authy to Bitwarden

Migrating Authy to Bitwarden (Linux Edition)

With Authy EOLing the desktop App, migrating your Data may suddenly have become rather urgent. Here are some instructions, heavily influenced by information found on this gist

First install the authy desktop app and start it

wget https://api.snapcraft.io/api/v1/snaps/download/H8ZpNgIoPyvmkgxOWw5MSzsXK1wRZiHn_18.snap
@mbentley
mbentley / haproxy.conf
Last active September 17, 2025 12:07
HAProxy SNI Example
global
log /dev/log local0
log /dev/log local1 notice
defaults
log global
mode tcp
option tcplog
option dontlognull
timeout connect 5s
@adamdehaven
adamdehaven / vs-code-custom-font.md
Created February 7, 2020 19:06
VS Code Custom Font without Font Install Privileges

VS Code Custom Font without Font Install Admin Privileges

  1. Open Help -> Toggle Developer Tools in the menu (Ctrl + Shift + I)
  2. Paste JavaScript code below into the Console and execute.
    var styleNode = document.createElement('style'); 
    styleNode.type = "text/css"; 
    var styleText = document.createTextNode(`
        @font-face {
            font-family: "Fira Code";
@rbtr
rbtr / kubectl get nodes --by-age
Created August 27, 2018 16:10
sort kubernetes nodes by age
kubectl get nodes --sort-by=".status.conditions[?(@.reason == 'KubeletReady' )].lastTransitionTime"
@jovimon
jovimon / gist:524e116471f249626fd2ccd141f3fe05
Last active November 24, 2025 18:46
compile realtek network driver for pfsense 2.4.x

How to compile and install latest realtek network driver in pfSense 2.4.x (FreeBSD 11.1)

  1. Download FreeBSD 11.1 VMDK and create a VM with it as HDD.

  2. Get FreeBSD source tree for your exact FreeBSD version and uncompress it to /usr/src:

    fetch -o /tmp ftp://ftp.freebsd.org/pub/`uname -s`/releases/`uname -m`/`uname -r | cut -d'-' -f1,2`/src.txz
    tar -C / -xvf /tmp/src.txz
    
  3. Download latest Realtek network driver (you need to input an email address).

@jkstill
jkstill / proc_net_tcp_decode
Last active March 5, 2026 13:10
decode entries in /proc/net/tcp
Decoding the data in /proc/net/tcp:
Linux 5.x /proc/net/tcp
Linux 6.x /proc/PID/net/tcp
Given a socket:
$ ls -l /proc/24784/fd/11
lrwx------ 1 jkstill dba 64 Dec 4 16:22 /proc/24784/fd/11 -> socket:[15907701]
@hoov
hoov / colortrans.py
Created July 19, 2012 22:12 — forked from MicahElliott/colortrans.py
Convert values between RGB hex codes and xterm-256 color codes.
#! /usr/bin/env python
""" Convert values between RGB hex codes and xterm-256 color codes.
Nice long listing of all 256 colors and their codes. Useful for
developing console color themes, or even script output schemes.
Resources:
* http://en.wikipedia.org/wiki/8-bit_color
* http://en.wikipedia.org/wiki/ANSI_escape_code
@fernandoaleman
fernandoaleman / Linux Static IP
Created March 23, 2012 16:20
How To Configure Static IP On CentOS 6
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static