Skip to content

Instantly share code, notes, and snippets.

View pandrewhk's full-sized avatar
👨‍💻
🛠

Andrew Pantyukhin pandrewhk

👨‍💻
🛠
View GitHub Profile
@pandrewhk
pandrewhk / FreeBSD 13.2 arm64 on Hetzner CAX11 Installation
Last active September 26, 2023 17:46
FreeBSD 13.2 arm64 on Hetzner CAX11
- # download VIMAGE to a spare FreeBSD box
- unxz -T0 # uncompress
- mdconfig image.raw; mount # for editing
- sshd_enable
- devmatch_blacklist="virtio_random.ko" # avoid a bug
- PermitRootLogin
- /root/.ssh/authorized_keys
- umount; mdconfig -d
- xz -T0 -9 # compress edited image
- cp nginx/ # publish with any web server
@pandrewhk
pandrewhk / wifi.lua
Last active November 23, 2020 11:15 — forked from jellea/wifi.lua
function ssidChangedCallback()
newSSID = hs.wifi.currentNetwork()
if newSSID ~= lastSSID then
hs.alert.show("WiFi changed, muting speakers", 5)
hs.audiodevice.findOutputByName("MacBook Pro Speakers"):setOutputVolume(20)
hs.audiodevice.findOutputByName("MacBook Pro Speakers"):setOutputMuted(true)
end
lastSSID = newSSID

Keybase proof

I hereby claim:

  • I am infofarmer on github.
  • I am infofarmer (https://keybase.io/infofarmer) on keybase.
  • I have a public key ASBnUARrVAMQAw_bt7xaUC2ADSZ8GDLKMax09jMSkDv-hAo

To claim this, I am signing this object:

#!/bin/sh
# PROVIDE: digitalocean
# REQUIRE: var
# BEFORE: netif hostname
. /etc/rc.subr
name="digitalocean"
start_cmd="${name}_start"
[
{
"artist": "Zero 7",
"track": "Red Dust",
"lftime": null,
"lfimg": "http://userserve-ak.last.fm/serve/_/92039307.jpg",
"user": "berndbischl",
"userpic": "https://avatars.githubusercontent.com/u/1225974?",
"repo": "berndbischl/mlrMBO",
"commit": "735689307d4825b1ab4ab57ecedb942d9a1aa60b",
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Lato">
<script src="https://www.rdio.com/api/api.js?client_id=bShwwPBlzdse_PP5g_0ysw"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquer
y.min.js"></script>
<script src="js/jquery.lazyload.js"></script>
<script type="text/javascript">
R.ready(function() {