print("Hello World")
--this is a comment
diff --git sys/dev/acpi/acpi.c sys/dev/acpi/acpi.c | |
index 853bad1ab..26a5c1702 100644 | |
--- sys/dev/acpi/acpi.c | |
+++ sys/dev/acpi/acpi.c | |
@@ -52,6 +52,9 @@ | |
#define APMDEV_NORMAL 0 | |
#define APMDEV_CTL 8 | |
+#define GPE_RATE_MIN_CYCLE 5 /* seconds */ | |
+#define GPE_RATE_MAX 1000 /* per second */ |
# Based on https://gist.github.com/kmatt/71603170556ef8ffd14984af77ff10c5 | |
# prompt ">" indicates Powershell commands | |
# prompt "$" are Linux shell commands | |
# https://docs.microsoft.com/en-us/windows/wsl/install-win10 | |
> dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | |
> dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart | |
# install https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi |
# The PICO-8 text printer for the ClockworkPi DevTerm! | |
# | |
# This Python script allows you to print text directly from the PICO-8 source | |
# code editor. The script runs in the background and watches for you to execute | |
# the "EXPORT FILE.LUA.PNG" command. It does some light processing of the | |
# generated image file, then sends it to DevTerm's thermal printer. | |
# | |
# This is mostly just a joke/hack for the purposes of this tweet: | |
# https://twitter.com/dan_sanderson/status/1434253649266364417?s=20 | |
# |
CREATE OR REPLACE VIEW cloudfront_logs_plus AS | |
SELECT *, | |
replace(replace(user_agent, '%25', ' '), '%20', ' ') as user_agent_decoded, | |
(sc_content_type='text/html' and status = 200 and uri not like '/theme/pages/%') as is_pageview, | |
(referrer like '%benkuhn.net%' or referrer like '%dvmskfca82zxm.cloudfront.net%') as is_internal_referrer, | |
( | |
user_agent like 'Zapier' | |
or user_agent like 'SimplePie%' | |
or user_agent like 'Feedbin%' | |
or user_agent like 'Fever/%' |
This is a nifty little device for under £100 suitable for a home router.
I am using one running OpenBSD 6.8 for my AAISP PPPoE connection (avoiding the supplied VMG1312-B10A which has a number of issues).
I bought a SanDisk 16GB USB stick as there were reports the supplied USB stick isn't particularly reliable, plus it's nice to keep it separate in case of backup or selling the device in the future.
Download the OpenBSD miniroot68.img
file system and dd(1)
it, for example on macOS (assuming /dev/disk2
):
// Copyright 2016 Jeremie Miserez <[email protected]> | |
// | |
// MIT License | |
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF O |
" Usage: | |
" | |
" :Ginitpull [remote-name] [branch-name] | |
" | |
" Initiates a github pull request in the default browser, from the given | |
" branch name to master, on the given remote. Tab-completes both arguments. | |
" | |
" If called without any arguments, defaults to the "origin" remote and the | |
" current branch name, which is probably what you usually want. | |
" |
// Provides a device_scale class on iOS devices for scaling user | |
// interface elements relative to the current zoom factor. | |
// | |
// http://37signals.com/svn/posts/2407-device-scale-user-interface-elements-in-ios-mobile-safari | |
// Copyright (c) 2010 37signals. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |