Skip to content

Instantly share code, notes, and snippets.

misuzu /
Last active December 10, 2023 17:53
Install NixOS on Oracle Cloud over Ubuntu 18.04

Install NixOS on Oracle Cloud over Ubuntu 18.04 (make sure to use Ubuntu 18.04 or this may not work)

# install useful tools
sudo apt-get update
sudo apt-get install --no-install-recommends -y nano mc git

# prepare /boot
sudo umount /boot/efi
sudo mv /boot /boot.bak
gene1wood /
Last active March 22, 2024 22:53
How to get BitWarden to differentiate between consumer retail logins, AWS root logins and AWS IAM user logins

Here's how to get BitWarden to treat these three different types of Amazon logins as separate

  • consumer retail business login
  • AWS root user login (AWS logins that use an email address)
  • AWS IAM user login (AWS logins that use a username) consumer retail

  • Set URI 1 to Exact with a value of

boblefrag / nosetest_time_execution
Created January 5, 2016 15:44
get the test ordered by time execution for NoseTest
from lxml import etree
tree = etree.parse("<path to nosetests.xml>")
results = []
for t in tree.xpath("/testsuite/testcase"):
result = {"class": t.get('classname'),
"name": t.get('name'),
"time": t.get('time')}
clehner / Makefile
Created April 24, 2013 07:10
Get and set an HP printer's status, using PJL on JetDirect (port 9100)
CFLAGS = -g -Wall -O3
$(P): $(OBJECTS)
install: $(P)
johnbender / prefs.js
Created February 23, 2013 06:20
Set up Chrome Secure Shell to handle solarized terminal colors
// Disable bold.
term_.prefs_.set('enable-bold', false)
// Use this for Solarized Dark
term_.prefs_.set('background-color', "#002b36");
term_.prefs_.set('foreground-color', "#839496");
term_.prefs_.set('color-palette-overrides', [
marktheunissen / pedantically_commented_playbook.yml
Last active June 5, 2024 22:16 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
This playbook has been removed as it is now very outdated.