Skip to content

Instantly share code, notes, and snippets.

View elerch's full-sized avatar

Emil Lerch elerch

View GitHub Profile
@dumindu
dumindu / userChrome.css
Last active June 7, 2021 00:26
Firefox Night Owl - V2
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
:root:-moz-lwtheme-brighttext {
--chrome-background-color: #424242 !important;
--chrome-color: #8f8f8f !important;
--chrome-secondary-background-color: #363636 !important;
--toolbox-border-bottom-color: #333333 !important;
--url-and-searchbar-border-color: #333333 !important;
--focus-ring-box-shadow: #191917 !important;
--url-and-searchbar-background-color: #363636 !important;
@elerch
elerch / bootstrap.sh
Last active June 21, 2021 21:03
Bootstraps all the things (curl, git, mr, vcsh and dotfiles will exist after running)
#!/bin/sh
# To run this without copy/paste the whole thing:
# curl https://gist.githubusercontent.com/elerch/88ea951c9c4ec4c3c1604b8fc9167e53/raw/bootstrap.sh | sh
# mr is just a perl script
myrepos="http://source.myrepos.branchable.com/?p=source.git;a=blob_plain;f=mr;hb=HEAD"
# vcsh was just a bash script. After this commit, they have some autotools thing
vcsh=https://raw.githubusercontent.com/RichiH/vcsh/66944d009b8df64e0b2ddae757a83899ff8684b7/vcsh
@MrYar
MrYar / Firefox-68
Last active June 14, 2023 22:04 — forked from haasn/about:config.md
Firefox telemetry and spy removal
// Turn off "Sends data to servers when leaving pages"
user_pref("beacon.enabled", false);
// Prevention of some telemetry related to the newtab
user_pref("browser.newtabpage.directory.ping", "");
user_pref("browser.newtabpage.directory.source", "");
user_pref("browser.newtabpage.enhanced", false);
// "In the release channels the Mozilla location service is used to help in figuring out regional search defaults."
// Which means sending collectable data
@gene1wood
gene1wood / centos7-cloudformation.yaml
Last active October 24, 2022 19:22
A CloudFormation template for CentOS 7 showing AMI mappings and cloud-init UserData parsing
AWSTemplateFormatVersion: 2010-09-09
Description: >
An example free tier (12 month) CentOS 7 EC2 instance with a security group
allowing SSH, a simple IAM Role, and output conveyed from the launch back out
to the CloudFormation stack outputs
Parameters:
SSHKeyName:
Description: SSH Key Name
Type: String
Mappings:
@0
0 / bluetooth_serial.md
Last active February 6, 2024 15:17
Connecting a Bluetooth device for serial communication on Arch Linux.

The following are instructions for connecting a Bluetooth device for serial communication on Arch Linux using BlueZ 5.31.

Prerequisites

The following packages are required:

  • bluez: bluetoothd
  • bluez-utils: bluetoothctl, rfcomm
// selectorSupported lovingly lifted from the mad italian genius, diego perini
// http://javascript.nwbox.com/CSSSupport/
function selectorSupported(selector){
var support, link, sheet, doc = document,
root = doc.documentElement,
head = root.getElementsByTagName('head')[0],
impl = doc.implementation || {