I hereby claim:
- I am blakerain on github.
- I am blakerain (https://keybase.io/blakerain) on keybase.
- I have a public key ASBTVudJS_NvkszikV0oNDllEy1IS0OhpP9gjT50fDVFRwo
To claim this, I am signing this object:
#!/bin/sh | |
# See https://blakerain.com/blog/adding-dns-adblock-to-unbound/ | |
UNBOUND="/var/unbound/etc" | |
VARIANT=${VARIANT:-fakenews-gambling-social} | |
URL="https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/$VARIANT/hosts" | |
wget -qO- "$URL" | grep '^0\.0\.0\.0' | sort | \ | |
awk '{print "local-zone: \""$2"\" refuse"}' > "$UNBOUND/adblock.conf" | |
if [ -f "$HOME/adblock.exceptions" ]; then | |
(cat "$HOME/adblock.exceptions" | \ | |
awk '{gsub(/\./,"\\."); print "g/\"" $0 "\"/d"}'; echo w) | ed - "$UNBOUND/adblock.conf" |
I hereby claim:
To claim this, I am signing this object:
name: Build | |
on: | |
workflow_dispatch: | |
repository_dispatch: | |
types: [deploy-event] | |
jobs: | |
deploy: | |
runs-on: self-hosted |
$ PATH="/opt/homebrew/opt/llvm/bin:$PATH" stack exec -- stack --resolver=ghc-8.10.5 setup | |
Preparing to install GHC to an isolated location. | |
This will not interfere with any system-level installation. | |
Downloaded ghc-8.10.5. | |
ld: unknown option: --version | |
ld: unknown option: --version | |
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 | |
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/blakerain/.stack/programs/x86_64-osx/ghc-8.10.5/lib/ghc-8.10.5/rts/libHSrts.a(Disassembler.o) has no symbols | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: fil |
import gi | |
gi.require_version("Gtk", "3.0") | |
from gi.repository import Gtk, Gdk | |
class ControlPanel(Gtk.Box): | |
def __init__(self): | |
super().__init__(orientation=Gtk.Orientation.VERTICAL, spacing=5) | |
# Place the control panel in the top right | |
self.set_halign(Gtk.Align.END) |
#include <memory> | |
#include <regex> | |
#include <cassert> | |
#include <experimental/filesystem> | |
#include <fcntl.h> | |
#include <sys/mman.h> | |
#include <sys/stat.h> | |
#include <sys/types.h> | |
#include <unistd.h> |
{-# LANGUAGE TypeFamilies, OverloadedStrings, TemplateHaskell, QuasiQuotes #-} | |
import qualified Network.Wai.Handler.Warp as Warp | |
import qualified Network.Wai.Handler.WarpTLS as WarpTLS | |
import Yesod.Core | |
data SimpleApp = | |
SimpleApp | |
mkYesod "SimpleApp" [parseRoutes| |