Skip to content

Instantly share code, notes, and snippets.

@Hashino
Hashino / arch-guide.md
Last active March 16, 2025 14:44
archlinux: a (more friendly) how-to in troubleshooting for newcomers.

archlinux: a (more friendly) how-to in troubleshooting for newcomers.

This article is an updated version of a reddit post with a similar title written by u/zendeavor.

Have you tried asking for Arch related help and found that the community was "unfriendly" and "unhelpful"? Only telling you to "RTFM: Read the Friendly Manual"? Then this article may be helpful to you.

@genyrosk
genyrosk / REISUB.md
Created November 3, 2022 18:52
REISUB: A gentle Linux restart

REISUB

If a Linux machine locks up or freezes completely, use REISUB to restart it more gently than pushing the Power Button.

Hold down Alt and the SysReq (Print Screen) keys, and then type R E I S U B, with 2-3 second delays between the key presses to give the commands a better chance to complete.

  • R: Switch the keyboard from raw mode to XLATE mode
  • E: Send the SIGTERM signal to all processes except init
  • I: Send the SIGKILL signal to all processes except init
  • S: Sync all mounted filesystems
@suconakh
suconakh / artix_runit_btrfs_install.sh
Last active September 16, 2025 17:02 — forked from Th3Whit3Wolf/arch_sec_install.sh
Install Artix Linux on btrfs (w/ swapfile) with rEFInd bootloader
#!/bin/bash
# 0 - Log in as root (password is artix)
sudo su
# 1 - SSH
# This isn't necessary but if you ssh into the computer all the other steps are copy and paste
# Get network access
connmanctl
@isti03
isti03 / adb-linux.md
Last active September 20, 2025 14:31
Install ADB (Android Debug Bridge) on Linux and useful snippets

Getting ADB (Android Debug Bridge) working on linux can be a bit harder than on other operating systems. This guide aims to help with that.

Installation

1. Install the adb package

Just use your package manager

2. Add yourself to the plugdev group

#!/usr/bin/perl
use strict;
use warnings;
use Getopt::Std;
# geteltorito.pl: a bootimage extractor
# Script that will extract the first El Torito bootimage from a
# bootable CD image
@bugyt
bugyt / ArchCheatSheet.md
Last active March 25, 2025 11:21
ArchLinux Cheat Sheet

ArchLinux Cheat Sheet

Network configuration

  • List network devices
      # ip link
    
  • Enabling and disabling network interfaces
      # ip link set <network interface> up
    

ip link set down

@casibbald
casibbald / 23andme_gene_synthesis.py
Last active September 2, 2021 13:48
Synthesise genes for a potential child from two 23andme profiles. This is a work in progress and my still have issues.
import argparse
import os
import zipfile
from collections import Counter
# gene_set = set(['rs2015343', 'rs12203592', 'rs4778136', 'rs9782955',
# 'rs4778138', 'rs3739070', 'rs11074314', 'rs11631797',
# 'rs12914687', 'rs1667394', 'rs3794604', 'rs3947367',
# 'rs4778241', 'rs7495174', 'rs7170869',
@ajschumacher
ajschumacher / README.md
Last active May 5, 2024 16:11 — forked from mbostock/.block
Interactive D3 view of sklearn decision tree