Skip to content

Instantly share code, notes, and snippets.

View eh8's full-sized avatar

Eric Cheng eh8

View GitHub Profile
@agoose77
agoose77 / flake.nix
Last active March 21, 2025 12:44
Python virtualenvironment flake
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = inputs @ {
self,
nixpkgs,
flake-utils,
...
@cderv
cderv / 00-New setup.md
Last active March 29, 2025 02:49
New computer setup
# installed by winget
winget install PowerShell-Preview
winget install git
git config --global user.name "Christophe Dervieux"
git config --global user.email christophe.dervieux@gmail.com
winget install rstudio
winget install vscode
winget install -e R
winget install Github.GithubDesktop
@OdinsPlasmaRifle
OdinsPlasmaRifle / arch_linux_installation.md
Last active April 11, 2025 21:21
LVM on LUKS Arch installation with systemd-boot
@heppu
heppu / ARCH_INSTALL.MD
Last active December 26, 2024 10:38
Installing Arch with GPT, dm-crypt, LUKS, LVM and systemd-boot

Create bootable USB

dd bs=4M if=/path/to/archlinux.iso of=/dev/sdx status=progress oflag=sync

Boot from USB and set prepare system

loadkeys <your-keymap>
@paitonic
paitonic / arch-install-script
Created February 6, 2016 09:28
Arch installation script
#################################################################
############################## DRAFT ############################
#################################################################
# arch linux - stage_install
# update system clock
$ timedatectl set-ntp true
# PARTITIONING (EFI)
-s -- never prompt the user
#!/usr/bin/php
<?php
/* Transmission to Deluge export script
*
* Transmission - transmission-gtk 2.77 (14031)
* Deluge - deluge: 1.3.6
* Script - PHP 5.4.14 (cli)
*
* How to use this script;
* 1) Run `php trans_to_deluge.php` and make sure there aren't any errors.
@KartikTalwar
KartikTalwar / Documentation.md
Last active February 28, 2025 10:57
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs