Skip to content

Instantly share code, notes, and snippets.

View nexus166's full-sized avatar
🌪️
🐧

nexus166

🌪️
🐧
  • Earth
View GitHub Profile
@Th3Whit3Wolf
Th3Whit3Wolf / Arch Secure Laptop Install.md
Last active October 17, 2024 05:04
My install instruction for a secure Arch Linux (sway) laptop workstation

What's Cool

  • Encrypted root partition
    • AES-256 bit cipher
    • Argon2id variant for PBKDF
    • Sha3-512 bit hash
  • rEFInd bootloader
    • With dreary theme
    • Optimal Settings (optimized for aesthetics, and boot time)
  • Boot into backups thanks to refind-btrfs
@glowinthedark
glowinthedark / generate_directory_index_caddystyle.py
Last active February 16, 2024 21:58
Generate directory index (recurse subfolders with `-r` or `--recursive`). Use `-h` or `--help` for all options ❗️superseded by https://github.com/glowinthedark/index-html-generator
#!/usr/bin/env python3
# NOTE: this script is deprecated;
# maintained version with SVG icons: https://github.com/glowinthedark/index-html-generator/
# ---
# Copyright 2020 glowinthedark
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@brunorozendo
brunorozendo / nvidia_optimus.md
Last active October 30, 2020 18:26
Arch linux Nvidia notebook

install

sudo pacman -S nvidia 
sudo pacman -S lib32-nvidia-utils
sudo pacman -S nvidia-settings 

Create conf file

# HOST
echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable-wireguard.list
printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' > /etc/apt/preferences.d/limit-unstable
apt update
apt install wireguard pve-headers
echo "wireguard" >> /etc/modules-load.d/modules.conf
# Container
echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable-wireguard.list
printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' > /etc/apt/preferences.d/limit-unstable
@G-UK
G-UK / Debootstrap Debian Arm64 OS for Raspberry Pi 3 & 4.md
Last active April 20, 2024 16:00
Build a 64bit Debian OS for the Raspberry Pi using Debootstrap

Introduction

The objective of these instructions is to create a complete Arm64 OS (Userland and Kernel) using Debian Debootstrap and RPI-Update for use on the Raspberry Pi 3 and 4.

Prerequisites:

  • An existing Debian/Raspbian system (any architecture will do)
  • An empty SD card formatted as per a standard Raspbian installation mounted to /mnt/sd on the build system
    • 1st Partition 0-256MB = FAT32 (Mount to /mnt/sd/boot)
    • 2nd Partition 256MB+ = EXT4 (Mount to /mnt/sd)

Set-up basic Debian system

@pklazy
pklazy / m5stickc_lcd.py
Last active March 13, 2023 05:04
Micropython M5StickC LCD Driver
import framebuf
import time
from machine import Pin, SPI, I2C
'''
import m5stickc_lcd
lcd = m5stickc_lcd.ST7735()
lcd.text('hello', 10, 10, 0xffff)
lcd.show()
'''
@miguelmota
miguelmota / go_decode.go
Created January 7, 2019 05:14
Golang gob encoding and decoding example
package main
import (
"bytes"
"encoding/gob"
"fmt"
"log"
)
func main() {
@greenido
greenido / motion.conf
Last active January 22, 2020 18:50
motion conf file for the 'Pi motion detection project'
# Motion for Pi project - main conf.
# This config file was generated by motion 4.0
#
# Author: @greenido
#
# Date: 10/2018
#
# See: https://greenido.wordpress.com/?p=9397
#
# IMPORTANT: Please search after TODO and make sure you change them with your settings.
@f3l3gy
f3l3gy / daemon.json
Last active January 4, 2024 11:00
Proxmox minimal docker host lxc container
{
"hosts": ["unix:///var/run/docker.sock", "tcp://0.0.0.0:2375"],
"registry-mirrors": [],
"insecure-registries": [
"172.16.197.20:5000"
]
}
@cbaretzky
cbaretzky / boot.py
Created November 5, 2017 16:12
boot.py for esp8266 with micropython
# This file is executed on every boot (including wake-boot from deepsleep)
#Get out of the UART with mismatched baudrate on the serial
print(' '*40+'\n')
print('Start booting')
autoconnect_timeout = 80
deepsleep_seconds = 2000
fail_deepsleep = 600
known_APS=[['AP1','PW1'], #AP1 : SSID of first AP, PW1 passwd for first AP