Skip to content

Instantly share code, notes, and snippets.

View sideseal's full-sized avatar
👋
Hello!

sideseal sideseal

👋
Hello!
View GitHub Profile
@sleeyax
sleeyax / checkout_older_chromium_version.txt
Created October 15, 2023 21:17
Checkout older chromium version
mkdir ~/chromium && cd ~/chromium
fetch --nohooks --no-history chromium
cd src
git fetch https://chromium.googlesource.com/chromium/src.git +refs/tags/118.0.5993.71:chromium_118.0.5993.71 --depth 1
git checkout tags/118.0.5993.71
gclient sync -D --force --reset --with_branch_heads
@ephbaum
ephbaum / index.js
Created October 10, 2023 04:29
Ghost Blog backup to Astro markdown - The Hard Way
const fs = require('fs');
fs.readFile('./data/backfile.json', 'utf8', (err, data) => {
if (err) throw err;
const backup = JSON.parse(data);
processBackup(backup);
});
function processBackup(backup) {
const posts = backup.db[0].data.posts;
#include <cstdio>
#include <cmath>
#include <string>
#include "raylib.h"
#include "waterpool.hpp"
const int WIDTH = 160;
const int HEIGHT = 160;
using PoolType = Sapphire::WaterPool<WIDTH, HEIGHT>;
Git commands Cheat Sheet
Initialize a new git repository:
git init
Set configuration values for your username and email:
git config --global user.name <your-name>
git config
--global user. email <your-email>
Clone a repository:
@gagregrog
gagregrog / bash_menu.sh
Created August 23, 2021 03:29
Ephemeral Interactive Bash Menu with Up/Down selection or numeral selection
# Original solution sourced from:
# https://unix.stackexchange.com/questions/146570/arrow-key-enter-menu
#
# Updated to do the following:
# - Display index with each option
# - Choose options 1-9 with numeric input
# - Clear the menu and reset the cursor when an option is selected
#
# Arguments:
# array of options
@swetoast
swetoast / gist:32d382fc714f1bda0850bfe09d0cb09e
Last active March 20, 2025 21:38
ubuntu-ports mirrorlist
http://ftp.tu-chemnitz.de/pub/linux/ubuntu-ports
http://ports.ubuntu.com/ubuntu-ports
https://mirror.kumi.systems/ubuntu-ports
https://mirrors.aliyun.com/ubuntu-ports/
http://mirrors.mit.edu/ubuntu-ports/
https://ftp.ubuntu-tw.org/mirror/ubuntu-ports/
https://mirror.yandex.ru/ubuntu-ports/
https://mirror.scaleuptech.com/ubuntu-ports/
https://mirrors.ustc.edu.cn/ubuntu-ports/
https://mirror.csclub.uwaterloo.ca/ubuntu-ports/
@MayankFawkes
MayankFawkes / sources.list
Created August 6, 2020 03:13
Ubuntu 20.04 LTS (ARM64) (Focal Fossa) -- Full sources.list
deb http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports focal-security main restricted universe multiverse
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active January 1, 2026 16:57
set -e, -u, -o, -x pipefail explanation
@remarkablemark
remarkablemark / vim-prettier-vundle.md
Created March 19, 2018 15:03
How to install vim-prettier with Vim Vundle

vim-prettier

Open vimrc:

vim ~/.vim/vimrc

Add Vundle plugin to vimrc:

Plugin 'prettier/vim-prettier'