Skip to content

Instantly share code, notes, and snippets.

View LudovicoPiero's full-sized avatar
🌧️
Come, let's watch the rain as it's falling down.

Ludovico LudovicoPiero

🌧️
Come, let's watch the rain as it's falling down.
View GitHub Profile
@rtkay123
rtkay123 / Smart HTTP Git and CGIT on Nginx server with Auth on push
Last active June 21, 2025 12:29
Installing Git and Cgit to Debian NGINX server (with smart http and authentication on push)
# Just some notes on enabling smart http with nginx as well as authentication on push for repos
# install git, cgit and apache2-utils (for authentication)
apt install git cgit apache2-utils fcgiwrap
# create a git user
useradd -m -d /srv/git git
su git
cd
mkdir .ssh && chmod 700 .ssh
touch .ssh/authorized_keys && chmod 600 .ssh/authorized_keys
@Bondrake
Bondrake / trim-generations.sh
Last active February 29, 2024 01:10
NixOS script to keep 10 generations or 7 days, whichever is more (configurable, profile is selectable)
#!/usr/bin/env bash
set -euo pipefail
## Defaults
keepGensDef=10; keepDaysDef=7
keepGens=$keepGensDef; keepDays=$keepDaysDef
## Usage
usage () {
printf "Usage:\n\t trim-generations.sh (defaults are: Keep-Gens=$keepGensDef Keep-Days=$keepDaysDef Profile=user)\n\n"
@lohanidamodar
lohanidamodar / V2-Style-advance.css
Last active June 28, 2025 01:44 — forked from mewforest/YouTube Chat CSS.css
Styles for YouTube streaming live-chat (tested in OBS)
@import url("https://fonts.googleapis.com/css?family=Candal");
@import url("https://fonts.googleapis.com/css?family=Changa One");
@import url("https://fonts.googleapis.com/css?family=Imprima");
/* Background colors*/
body {
overflow: hidden;
background-color: rgba(0,0,0,0);
}
/* Transparent background. */
@Soheab
Soheab / API's.md
Last active July 9, 2025 15:00
See here some of the API's you can use in your discord bot or anything

Some APIs for you.

Here are some APIs you can use in your Discord bot or any other project. For any help or questions on how to use one, please contact the owner of the API and not me.

A bigger list of APIs can be found at: https://github.com/public-apis/public-apis


[TOKEN] = API requires a token to access some if not all endpoints.

@evanrelf
evanrelf / README.md
Last active October 9, 2023 20:45
Install NixOS on ZFS With Opt-In State

Install NixOS on ZFS With Opt-In State

Commands

# nvme0n1
# ├─nvme0n1p1    BOOT
# └─nvme0n1p2    LUKS CONTAINER
#   └─cryptroot  LUKS MAPPER
#     └─vg-swap  SWAP
@fleetimee
fleetimee / autoexec.cfg
Last active March 18, 2025 21:19
Dota 2
// DOTA autoexec.cfg REFERENCE preset - get latest from https://dev.dota2.com/showthread.php?t=194985
// Save as: Steam\steamapps\common\dota 2 beta\game\dota\cfg\autoexec.cfg (make sure extension is .cfg not .cfg.txt)
//
// To optimally read/edit this cfg, use a text processor featuring 132 chars per line and syntax highlighting to C++
// Disable options/binds/commands you do not want forced by this cfg by starting lines with // C++ style line comment
// Some reference hotkeys and options use tweaked values. Will override user settings if enabled (un-commented).
//
// What's new [2020-06-20]
// Not much, just added a few missing binds and ui options; no longer forcing render quality to 0.71
//
@mx00s
mx00s / install.sh
Last active May 9, 2025 07:00
NixOS install script based on @grahamc's "Erase Your Darlings" blog post
#!/usr/bin/env bash
#
# NixOS install script synthesized from:
#
# - Erase Your Darlings (https://grahamc.com/blog/erase-your-darlings)
# - ZFS Datasets for NixOS (https://grahamc.com/blog/nixos-on-zfs)
# - NixOS Manual (https://nixos.org/nixos/manual/)
#
# It expects the name of the block device (e.g. 'sda') to partition
@jfeilbach
jfeilbach / grub.md
Last active July 1, 2025 15:09
Make Linux fast

In /etc/default/grub, modify:

noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off 

Then sudo update-grub

from https:// make-linux-fast-again.com/ This domain does not seem to be maintained any longer.

@oseme-techguy
oseme-techguy / Correct_GnuPG_Permission.sh
Last active February 6, 2025 05:53
This fixes the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error while using Gnupg .
#!/usr/bin/env bash
# To fix the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error
# Make sure that the .gnupg directory and its contents is accessibile by your user.
chown -R $(whoami) ~/.gnupg/
# Also correct the permissions and access rights on the directory
chmod 600 ~/.gnupg/*
chmod 700 ~/.gnupg