Dionysis Zindros, National Technical University of Athens [email protected]
pseudonymous anonymous web-of-trust identity trust bitcoin namecoin proof-of-burn timelock decentralized anonymous marketplace openbazaar
| -- Thunderbird Launcher app | |
| -- Mounts a disk image before launching Thunderbird, and unmounts it when Thuderbird closes | |
| -- by Caesar Schinas, based on ideas at http://hintsforums.macworld.com/showthread.php?t=26597 | |
| on run | |
| set diskname to "Thunderbird Profile" | |
| set diskpath to "~/Library/Thunderbird/Profiles/Thunderbird Profile.sparsebundle" | |
| set itemname to "/Applications/Thunderbird" | |
| tell application "Finder" | |
| if not (exists the disk diskname) then |
Dionysis Zindros, National Technical University of Athens [email protected]
pseudonymous anonymous web-of-trust identity trust bitcoin namecoin proof-of-burn timelock decentralized anonymous marketplace openbazaar
| // Parsing arbitrary JSON using interfaces in Go | |
| // Demonstrates how to parse JSON with abritrary key names | |
| // See https://blog.golang.org/json-and-go for more info on generic JSON parsing | |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| ) |
| _(:」∠)_ | |
| _(:_」∠)_ | |
| _(:з」∠)_ | |
| _(:зゝ∠)_ | |
| ╮( ̄▽ ̄)╭ | |
| ╮( ̄▽ ̄")╭ | |
| ╮(╯▽╰)╭ | |
| (*・ω・)✄╰ひ╯ | |
| ╮(╯_╰)╭ | |
| (ˉ﹃ˉ) |
Tuning Intel Skylake and beyond for optimal performance and feature level support on Linux:
Note that on Skylake, Kabylake (and the now cancelled "Broxton") SKUs, functionality such as power saving, GPU scheduling and HDMI audio have been moved onto binary-only firmware, and as such, the GuC and the HuC blobs must be loaded at run-time to access this functionality.
Enabling GuC and HuC on Skylake and above requires a few extra parameters be passed to the kernel before boot.
Instructions provided for both Fedora and Ubuntu (including Debian):
Note that the firmware for these GPUs is often packaged by your distributor, and as such, you can confirm the firmware blob's availability by running:
| # Why? | |
| # To paste text into windows that normally don't allow it or have access to the clipboard. | |
| # Examples: Virtual machines that do not yet have tools installed, websites that hijack paste | |
| # | |
| # Extended vs Simple? | |
| # * Includes an initial delay to allow you to change active windows | |
| # * Adds small delay between keypresses for slower responding windows like SSH sessions | |
| # * Better handling of numbers | |
| # * VMWare bug fix | |
| # |
Here's a list of mildly interesting things about the C language that I learned mostly by consuming Clang's ASTs. Although surprises are getting sparser, I might continue to update this document over time.
There are many more mildly interesting features of C++, but the language is literally known for being weird, whereas C is usually considered smaller and simpler, so this is (almost) only about C.
struct foo {
struct bar {
int x;Table of Contents
| # Build with: | |
| # NIX_PATH=nixpkgs=$HOME/src/nixpkgs nix-build --no-link '<nixpkgs/nixos>' -A config.system.build.tarball -I nixos-config=thisfile.nix | |
| # You can also use | |
| # -A config.system.build.toplevel | |
| # to build something you can browse locally (that uses symlinks into your nix store). | |
| {config, pkgs, ...}: | |
| { | |
| # We need no bootloader, because the Chromebook can't use that anyway. | |
| boot.loader.grub.enable = false; |