Skip to content

Instantly share code, notes, and snippets.

@emabrey
emabrey / userChrome.css
Created August 11, 2021 05:45
Return tab lines to Firefox 91
.tabbrowser-tab:not([selected=true]):not([multiselected=true]):not([beforeselected-visible="true"]) .tab-background {
border-right: 1px solid var(--lwt-background-tab-separator-color, rgba(0, 0, 0, .20)) !important;
}
@emabrey
emabrey / wsl_copy_ssh_keys.sh
Last active June 9, 2022 20:18
WSL SSH Key Copier
#!/bin/bash
#enable nullglob on startup if not enabled
shopt -q nullglob || shopt -s nullglob;
# Turns the given value into an array and verifies that the array has more than zero elements
# to check if the globbed file directory given exists
# requires nullglob to be or it will enable/disable during the function execution
glob_exists() {
shopt -q nullglob || (echo "nullglob must be enabled for glob_exists to work." && return 1);
@emabrey
emabrey / mathfonts.txt
Created October 26, 2019 22:07
Math Fonts
These are fonts for math layouts, like MathML or for use in LaTeX
Latin Modern Math: http://www.gust.org.pl/projects/e-foundry/latin-modern/download
STIX: https://www.stixfonts.org/
@emabrey
emabrey / invtypes.csv
Last active October 23, 2019 03:41
Eve Item List
We can't make this file beautiful and searchable because it's too large.
typeID,typeName,description,iconID
0,#System,,
2,Corporation,,
3,Region,,
4,Constellation,,
5,Solar System,,
6,Sun G5 (Yellow),"A main-sequence stellar body of a class that is often yellow or yellow-orange in hue, generating and emitting energy from the vast hydrogen fusion process within the heart of the star.
Various numbers of planets of the terrestrial and gas giant types are found around these stars and the habitable zones often contain one or more planets.",
7,Sun K7 (Orange),"Yellow-orange and orange stars of this type are rather stable and believed to take tens of billions of years to burn through their core hydrogen reserves in a process of thermonuclear fusion.
@emabrey
emabrey / programmingfonts.txt
Last active September 11, 2019 21:57
Open Source Programming Fonts
These are the programming fonts (for both editors and consoles/terminals) that I find useful, and where to download them.
Font Name | Download Location
Victor Mono | https://rubjo.github.io/victor-mono/
Monoid | https://larsenwork.com/monoid/
Hasklig | https://github.com/i-tu/Hasklig
Iosevka | https://github.com/be5invis/Iosevka
Fira Code | https://github.com/tonsky/FiraCode
@emabrey
emabrey / ToggleTouch.bat
Created August 26, 2019 23:07
Toggle Touchscreen Support
@ECHO OFF
:: This file enables the touchscreen when disabled and disables the touchscreen when enabled
:: There is an annoying bug fixed by using AutoIt to unpress the Windows Key
:: Make sure devcon_x64.exe and autoit3_x64.exe are present for x64
:: devcon_x86.exe and autoit3.exe could be used for x86, but you need to replace
:: DEVCON_BINARY and AUTOIT_BINARY below
:: These binaries need to be placed in the location pointed to by DEVCON_DIR for the script
@emabrey
emabrey / userChrome.css
Last active February 26, 2024 07:17
Firefox 66 User Chome Styles
/*
Created by Emily Mabrey via modification of the CSS provided by the Timvde/UserChrome-Tweaks project under the terms of the GPL-3.0.
Visit that project at https://github.com/Timvde/UserChrome-Tweaks
*/
/*
Settings which will be used when compact layout is active.
These configured values make things super compact and much more space is available for the webpage.
*/
@emabrey
emabrey / .gitconfig
Last active March 21, 2019 08:56
Global .gitconfig
[add]
ignoreErrors = true
[alias]
add-maven-wrapper = "!mvn -N io.takari:maven:wrapper -B -Dmaven=\\$\\{versions.maven.ideal\\} -Denforcer.skip=true"
aliases = config --get-regexp '^(alias){1}([.]){1}(.)+'
changes = !f(){ git pull origin --prune "$@" && git submodule update --init; }; f
chmod = update-index --add --chmod=$1
clearcreds = credential-cache exit
ignored = ls-files --other --ignored --exclude-standard
@emabrey
emabrey / ObjectInputExample.java
Last active May 5, 2018 06:04
Single file class/program for POC of a Stack Overflow answer
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.ObjectStreamConstants;
import java.io.Serializable;
import java.util.ArrayList;
@emabrey
emabrey / gist:e40e8661002154524dc33ae2c9a4ebe5
Last active August 15, 2017 08:18
List of useful java librarys
https://github.com/amaembo/streamex
https://github.com/square/okio
https://github.com/square/okhttp
https://github.com/real-logic/agrona
https://github.com/JCTools/JCTools