Skip to content

Instantly share code, notes, and snippets.

@jago86
jago86 / Chromium Linux.md
Created April 19, 2021 22:56 — forked from marians/Chromium Linux.md
How to install CA certificates and PKCS12 key bundles on different platforms

We install certutil and pk12util if necessary:

sudo apt install libnss3-tools

On Linux, Chromium uses the NSS Shared DB. Check if you have the ~/.pki/nssdb directory:

ls $HOME/.pki/nssdb
@jago86
jago86 / ubuntu-partition-sizes.txt
Last active January 2, 2022 16:57 — forked from chrisl8888/rhel-recommended-partition-sizes.txt
ubuntu recommended partition sizes
When using the custom installer one should use the following recommended sizes:
minmum - avg folder type / location
------------------------------------------------------
100mb - 500mb /boot primary / beginning of disk
half ram /swap logical / end of disk
10gb - 50gb / primary / beginning of disk
rest of space /home primary / end of disk
@jago86
jago86 / signing-vbox-kernel-modules.md
Created February 26, 2022 19:07 — forked from reillysiemens/signing-vbox-kernel-modules.md
Signing VirtualBox Kernel Modules

Signing VirtualBox Kernel Modules

These are the steps I followed enable VirtualBox on my laptop without disabling UEFI Secure Boot. They're nearly identical to the process described on [Øyvind Stegard's blog][blog], save for a few key details. The images here are borrowed from the [Systemtap UEFI Secure Boot Wiki][systemtap].

  1. Install the VirtualBox package (this might be different for your platform).
    src='https://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo'
@jago86
jago86 / PHPUnitTestMethodPlugin.py
Created June 9, 2023 17:11 — forked from dakira/PHPUnitTestMethodPlugin.py
This plugin allows you to convert a regular sentence to a PHPUnit test method.
# Create a file called PHPUnitTestMethodPlugin.py in Plugins/ within your Sublime Text Packages folder
# You can run this via Sublime's console with: view.run_command("php_unit_test_method")
# You can bind it to ctrl+e as a regular command
import sublime
import re
import sublime_plugin
class PhpUnitTestMethodCommand(sublime_plugin.TextCommand):
def run(self, edit, lines = 10):