Skip to content

Instantly share code, notes, and snippets.

View jameskeim's full-sized avatar

James Keim jameskeim

View GitHub Profile
@jameskeim
jameskeim / Arch Secure Laptop Install.md
Created June 29, 2023 03:25 — forked from Th3Whit3Wolf/Arch Secure Laptop Install.md
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
@jameskeim
jameskeim / Arch Secure Laptop Install.md
Created June 29, 2023 03:24
My install instruction for a secure Arch Linux (sway) laptop workstation

WARNING from TellyO3 WORK IN PROGRESS

I am a novice Linux user, please take all my edits with a grain of salt. I wanted it to work a bit better for a number of reasons. The original guide was written early 2021, it is February 2022 as of now. Some of the utilities, like the original custom kernel are deprecated. Additionally some AUR repos are not up to date, as is the case with auto-cpufreq which was last updated months ago. I also included some troubleshooting tips, based on issues I encountered. Feel free to leave any suggestions or tips, it would be greatly appreciated.

My goal is also to have a more template like setup, give you the utilities you need but not anything else. Especially the first setup had a lot of extra's which were absolutely not necessary and it took me a lot of time to disect some of that from what is actually used in the setup.

  • No GDM, because I don't want its gnome dependencies if I don't use them
  • Many packages were changed or made optional
  • Xanmod-TT
@jameskeim
jameskeim / Hyper.md
Created March 12, 2023 18:46 — forked from nat-418/Hyper.md
Have you a Hyper for Great Good

Have you Hyper for Great Good

So. You have become an Emacs wizard. And you find yourself aching for the simplicity that another modifier key would introduce into your life. Ah, the things you could do with Hyper.

Or maybe, you just want Hyper for another reason.

... Except everywhere you look, everyone's talking about .xmodmaps and xkbcomp, but you're using one of those fancy desktop managers. (Aka, not awesome, dwm, xmonad or something even more hipster) And because of that, you're lost in the sea of confusion that is trying to customize your keyboard mapping.

Gnome, Cinnamon, and KDE all use xkb.

@jameskeim
jameskeim / hyper-key.desktop
Created March 12, 2023 18:44 — forked from nat-418/hyper-key.desktop
How to enable the Hyper key on Linux
[Desktop Entry]
Name[en_US]=hyper-key
Comment[en_US]=Set CapsLock to Control and Escape to Hyper
Exec=/usr/local/bin/hyper-key.sh
Icon=application-default-icon
X-GNOME-Autostart-enabled=true
Type=Application
@jameskeim
jameskeim / Statusline.vim
Created January 29, 2021 14:52
Change color of Statusline based on mode.
" Mode Indication -Prominent! function! InsertStatuslineColor(mode) if a:mode == 'i' hi statusline guibg=red set cursorcolumn elseif a:mode == 'r' hi statusline guibg=blue else hi statusline guibg= magenta endif endfunction function! InsertLeaveActions() hi statusline guibg=green set nocursorcolumn endfunction au InsertEnter * call InsertStatuslineColor(v:insertmode) au InsertLeave * call InsertLeaveActions() " to handle exiting insert mode via a control-C inoremap <c-c> <c-o>:call InsertLeaveActions()<cr><c-c> " default the statusline to green when entering Vim hi statusline guibg=green " have a permanent statusline to color set laststatus=2
@jameskeim
jameskeim / AGB-001_Light_Mod.md
Created January 31, 2019 15:16 — forked from grantland/AGB-001_Light_Mod.md
AGB-001 Front/Backlight Mod Instructions

AGB-001 Front/Backlight Mod Instructions

AGB-001 Backlight Mod

Requirements

  • AGB-001
  • ASS101 screen
@jameskeim
jameskeim / ttyecho.c
Created January 13, 2019 07:37 — forked from FUT/ttyecho.c
Send terminal command to a TTY terminal
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <string.h>
#include <unistd.h>
void print_help(char *prog_name) {
printf("Usage: %s [-n] DEVNAME COMMAND\n", prog_name);
@jameskeim
jameskeim / randomize-mac-addresses
Created December 4, 2017 17:55 — forked from fawkesley/randomize-mac-addresses.sh
In Ubuntu 16.04, randomize WiFi MAC addresses with a daily rotation - /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses
#!/bin/sh
# /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses
# Configure every saved WiFi connection in NetworkManager with a spoofed MAC
# address, seeded from the UUID of the connection and the date eg:
# 'c31bbcc4-d6ad-11e7-9a5a-e7e1491a7e20-2017-11-20'
# This makes your MAC impossible(?) to track across WiFi providers, and
# for one provider to track across days.
Verifying that +jameskeim is my blockchain ID. https://onename.com/jameskeim
@jameskeim
jameskeim / 0_reuse_code.js
Last active August 29, 2015 14:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console