Mac installation notes (tested under MacOS 10.9.5), assuming VirtualBox is already installed on host.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _GNU_SOURCE | |
#include <dirent.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <sys/stat.h> | |
#include <sys/syscall.h> | |
#define handle_error(msg) \ |
If you've never used Genode or NixOS, or installed Gentoo, stop and consider what you are about to do.
The goal is too create a NixOS installation and a Genode installation, with the option of booting into NixOS, booting into Genode, and booting into Genode then booting the same NixOS install again in a virtual machine.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Example use: | |
# qubes control | |
bindsym $mod+u exec --no-startup-id "qubes-i3-dmenu-shell --start" | |
bindsym $mod+Shift+u exec --no-startup-id "qubes-i3-dmenu-shell --pause" | |
bindsym $mod+i exec --no-startup-id "qubes-i3-dmenu-shell --shutdown" | |
bindsym $mod+Shift+i exec --no-startup-id "qubes-i3-dmenu-shell --unpause" | |
# qubes launching | |
bindsym $mod+o exec --no-startup-id "qubes-i3-dmenu-shell --global" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check-user-namespace () { | |
if ! command -v unshare >/dev/null 2>&1; then | |
echo "The unshare command is not available. Install the util-linux package to fix this." >&2 | |
return 2 | |
fi | |
if unshare -U true >/dev/null 2>&1; then | |
echo "User namespace support enabled" | |
return 0 | |
else | |
echo "User namespace support not enabled" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Dirty script to check if any forks in ahead of master and open that branch commitlist | |
Warning: Uses alot of api calls | |
""" | |
import requests | |
from requests.auth import HTTPBasicAuth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function () { | |
var setupDiv = function () { | |
var id = 'Tinderizer'; | |
var div = document.getElementById(id); | |
var body = document.getElementsByTagName('body')[0]; | |
if (null != div) { | |
body.removeChild(div); | |
} | |
div = document.createElement('div'); | |
div.id = id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@set installhooks_args=%*& set installhooks_self=%~f0& powershell -c "(gc \"%~f0\") -replace '@set installhooks_args.*','#' | Write-Host" | powershell -c -& goto :eof | |
$srcdir = split-path $env:installhooks_self | |
$vivpath = "c:\Program Files\Vivaldi\Application\" | |
Try { | |
$dstdir = split-path ((Get-ChildItem -path $vivpath -recurse browser.html | Sort-Object -property CreationTime -descending | Select-Object -first 1).FullName) | |
write-host "Destination directory: $dstdir" | |
$encoding = (New-Object System.Text.UTF8Encoding($False)) |
OlderNewer