Skip to content

Instantly share code, notes, and snippets.

View Nuc1eoN's full-sized avatar
🏠
Working from home

Nuc1eoN

🏠
Working from home
View GitHub Profile
@Kranzes
Kranzes / guide.md
Last active April 21, 2024 00:03
SSH Resident Key Guide

Initial checks

Start by checking that there aren't any previous ssh keys inside the FIDO2 authenticator of your YubiKey. You can check if they exist by running the command below:

nix shell nixpkgs#yubikey-manager -c ykman fido credentials list

If the command above outputs a string mentioning "ssh" or "openssh", then you have already got a key generated and store on your YubiKey.

Evaluating additional authentication factors

Before generating a new ssh key to store on your YubiKey you must consider which additional required authentication factors you want to use. Below you can see a table with the available factors and their corresponding command:

@EEParker
EEParker / 00_pi_zero_2_w_marlin_uart.md
Last active January 10, 2024 01:19
PI Zero 2 W UART configuration for Marlin

PI Zero 2 W UART configuration for Marlin

Install Prerequisites

sudo apt update
sudo apt install picocom -y

Enable Serial Hardware

@Traxo7
Traxo7 / min_qortal_node_setup_vps.md
Last active October 14, 2023 11:04
Qortal Setup on Ubuntu VPS

This article goes through the process of setting up a headless Qortal node using Vultr VPS, and setting up a minting account for the node.
This is extremely useful if you want to mint 24/7 without having your Desktop PC running at all times.

Setup VPS

Register Vultr account and create a server

Register an account with Vultr (referral link, you get $100 credits): https://www.vultr.com/?ref=8976898-8H)

@darrenpmeyer
darrenpmeyer / README.md
Created November 20, 2020 19:35
Automatically start a single instance of ssh-agent for all terminal sessions to share (bash)

Installation

  1. mkdir -p ~/.config && touch ~/.config/ssh-agent.pid
  2. Paste the contents of ssh-agent-manage.sh into your .bashrc or .bash_profile or similar
  3. killall -9 ssh-agent
  4. Start a new terminal session (note: old sessions will not see ssh-agent, only new ones)

Details

This snippet, when included in .bashrc, will ensure that your session has a working ssh-agent with all your ssh keys loaded into it. It does this without creating separate ssh-agent processes by:

@Wolfr
Wolfr / sapper-routify-comparison.md
Last active November 15, 2020 20:02
A comparison between Sapper and Routify (draft blog post)

Note that is a draft post. NOT checked by the full Routify team yet. Any feedback welcome! (You are looking at a major rewrite, this used to be more about Routify vs Sapper)

What's the difference between Roxi, Routify and Sapper?

We are getting got a lot of questions about how Routify is different than Sapper. Rather than going into long comparisons about the differences with Sapper, I would like to explain the project goals of the Routify and Roxi projects. I hope this will make it clearer where things are going.

Now that we have released Routify 1.5, it's time to talk about Roxi.

In any non-trivial project, there is a need for a project structure. You've got routing, asset pipeline (CSS, images), data handling issues and more to deal with.

@CodingCellist
CodingCellist / dualboot-arch-windows-encrypted.md
Last active March 8, 2024 22:48
A step-by-step guide to dualbooting encrypted Windows and Arch Linux, using the rEFInd boot mananger.

DISCLAIMER

ENCRYPTING YOUR DRIVE(S) CAN RESULT IN PERMANENT DATA LOSS IF YOU DON'T KNOW WHAT YOU ARE DOING OR YOU FORGET THE PASSWORD. IT IS YOUR (THE READER'S) RESPONSIBILITY TO HAVE BACKUPS SHOULD ANYTHING GO WRONG. Additionally, I am not responsible for any damage you cause to your system by following this guide. You are completely and solely responsible for any changes made and potential damage caused.

I am not an expert on this topic in any way! I just read some wiki pages, had done a dual-boot Arch install before, got inspired by

@MrDrMcCoy
MrDrMcCoy / Caddyfile
Created August 23, 2019 21:55
Run Nextcloud, Bitwarden_rs, and poste.io with Caddy proxy in Docker
yourhost.com {
redir / https://cloud.yourhost.com 301
}
cloud.yourhost.com {
tls admin@yourhost.com
header / Strict-Transport-Security "max-age=31536000;"
root /var/www/html
fastcgi / nextcloud:9000 php {
connect_timeout 1h
@Earnestly
Earnestly / !README: opentype-bitmap.pe and opentype-bitmap.py
Last active March 4, 2023 07:25
Convert PCF and BDF files to bitmap only OpenType (.otb) using fontforge
Convert PCF and BDF files to bitmap only OpenType (.otb) using fontforge
If you have a new enough fontforge, the python version of this script can
optionally read filenames from standard input, generating multiple .otb
font files as it finds new families. It also handles gzipped PCF and BDF
files.
@AkihiroSuda
AkihiroSuda / Dockerfile
Created July 24, 2018 07:11
Docker v18.06 `RUN --mount=type=cache` example (keep /var/cache/apt)
# syntax = tonistiigi/dockerfile:runmount20180618
#
# `RUN --mount` example. Requires Docker v18.06 with `DOCKER_BUILDKIT=1`.
#
# `RUN --mount=... apt install <PKGS>` should finish immediately even when some packages are added to <PKGS> or built with `docker build --no-cache`.
FROM ubuntu
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked --mount=type=cache,target=/var/lib/apt,sharing=locked \
apt update && apt install -y gcc
@thaJeztah
thaJeztah / a-do-a-run-run-a-do-a-run.md
Last active March 5, 2024 14:32
Silly experiments with `RUN --mount`

Silly experiments with RUN --mount

relates to moby/moby#32507, moby/buildkit#442

Doing some silly experimenting with RUN --mount:

# syntax=docker/dockerfile:1

FROM alpine AS stage1