Skip to content

Instantly share code, notes, and snippets.

View chaorace's full-sized avatar
☠️
You are likely to be eaten by a grue.

Christopher Crockett chaorace

☠️
You are likely to be eaten by a grue.
View GitHub Profile
@Kranzes
Kranzes / guide.md
Last active May 9, 2024 02:30
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:

@nhobson99
nhobson99 / box86 and box64 on Snapdragon Chromebooks.md
Last active April 10, 2024 14:16
Installing box86/box64 and wine on Snapdragon Chromebooks

This will be a step by step guide on exactly how I installed box86 on my Acer Spin 513 equipped with a Snapdragon 7C. This guide should work for several other Snapdragon Chromebooks, though YMMV. Mediatek devices will follow a similar setup, but you will compile the Rockchip (RK3399 or similar) version instead of SD845. Now on with the show:

Step 1 - Setting up Crostini

I've tried this on Crouton, but unfortunately it just doesn't seem to work on my ARM based Chromebook. If you have Crouton installed on an Intel Chromebook, it should work, but I'm not sure about AMD based Chromebooks, as their graphics drivers are different.

It's tempting to immediately create a new Crostini container, but that's actually not what we need here just yet. You see, box86 relies on something called binfmt-support in order to work. Inside Crostini, this means creating a "privileged" lxc container. You may want to have a separate container just for running x86 applications in; for this guide, I'll be using one called "x86" for

@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active May 15, 2024 20:11
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@olmokramer
olmokramer / config.py
Created September 6, 2018 22:53
Qutebrowser per-domain stylesheets
c.content.user_stylesheets = ['/path/to/reddit.user.css']
# or if you have a directory with .user.css files:
import glob
c.content.user_stylesheets = glob.glob('/path/to/*.user.css')
@Pulimet
Pulimet / AdbCommands
Last active May 28, 2024 14:51
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@ageis
ageis / systemd_service_hardening.md
Last active May 26, 2024 22:24
Options for hardening systemd service units

security and hardening options for systemd service units

A common and reliable pattern in service unit files is thus:

NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict