Skip to content

Instantly share code, notes, and snippets.

Can't Copy/Paste in Google Docs on Firefox:
Set dom.event.clipboardevents.enabled on about:config to true
Speed-up Firefox's awesome bar / location bar:
browser.urlbar.delay to 0 speeds up the search response
layout.frame_rate 60
In "about:config" change "layout.frame_rate" from -1 to 60 (or whatever your monitor runs at).
For some stupid reason, Firefox renders as fast as your CPU can handle 100% of the time.
Even at 60 FPS, it uses ~1% CPU when idle so I'm guessing it was going like 6000FPS when unrestrained.
@drmalex07
drmalex07 / getopt-example.sh
Last active May 3, 2025 11:08
A small example on Bash getopts. #bash #getopt #getopts
#!/bin/bash
#
# Example using getopt (vs builtin getopts) that can also handle long options.
# Another clean example can be found at:
# http://www.bahmanm.com/blogs/command-line-options-how-to-parse-in-bash-using-getopt
#
aflag=n
bflag=n
@mattiaslundberg
mattiaslundberg / arch-linux-install
Last active October 18, 2025 19:38
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap