Skip to content

Instantly share code, notes, and snippets.

View akersten's full-sized avatar

Alex Kersten akersten

View GitHub Profile
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@akersten
akersten / userChrome.css
Last active February 26, 2024 20:39
userChrome.css to hide Firefox native tab bar and extension sidebar header (for use with TreeStyleTabs)
/*
* about:config -> toolkit.legacyUserProfileCustomizations.stylesheets : True
* about:support -> Profile Folder -> Open Folder
* Create `chrome` direcory
*/
#tabbrowser-tabs {
visibility: collapse !important;
}
@akersten
akersten / boilerplate.html
Last active October 19, 2019 21:22
A true HTML5 boilerplate
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TITLE</title>
<meta name="description" content="DESCRIPTION">
<link rel="stylesheet" href="style.css">
@akersten
akersten / React Class JSX (Live Template)
Created January 5, 2021 00:29
Creates a typed React component class
import * as React from 'react';
export interface $TM_FILENAME_BASE$Props {
$END$
}
export interface $TM_FILENAME_BASE$State {
value: string;
}
@akersten
akersten / DefaultKeyBinding.dict
Created February 5, 2024 15:56
OSX fix text editing keybinds
# First switch command + alt + control keys to their proper positions in Settings
# mkdir ~/Library/KeyBindings
# cd ~/Library/KeyBindings
# vi DefaultKeyBinding.dict
{
"\UF729" = moveToBeginningOfLine:; // home
"\UF72B" = moveToEndOfLine:; // end
"$\UF729" = moveToBeginningOfLineAndModifySelection:; // shift-home
"$\UF72B" = moveToEndOfLineAndModifySelection:; // shift-end
#SingleInstance, Force
#IfWinActive, Stardew Valley
SleepForFrames(x)
{
Sleep, x * 16.666
}
XButton1::
@akersten
akersten / ancestor_selector.css
Created February 16, 2024 02:07
CSS4 "ancestor" selector example for uBlock Origin - hide Reddit email banner
##div:has(>div>div>div>div>div>div>div>div>div>p:has-text(/Verify your email to prevent being locked/))