Skip to content

Instantly share code, notes, and snippets.

View grahamperrin's full-sized avatar

Graham Perrin grahamperrin

View GitHub Profile
@grahamperrin
grahamperrin / gist:1bd443c8c751d10daffc
Created November 28, 2015 14:24
George Takei's response to the 18th November, 2015 statement from the Office of the Mayor of Roanoke, Virginia (David A. Bowers)
Earlier today, the mayor of Roanoke, Virginia, Mr. David A. Bowers, in the attached letter, joined several state governors in ordering that Syrian refugees not receive any government assistance, or be relocated to their jurisdiction. Apart from the lack of legal authority to do so (under the Refugee Act of 1980, only the President has authority to accept or deny refugees), his resort to fear-based tactics, and his galling lack of compassion for people fleeing these same terrorists, Mayor Bowers made the following startling statement:
“I’m reminded that Franklin D. Roosevelt felt compelled to sequester Japanese foreign nationals after the bombing of Pearl Harbor, and it appears that the threat of harm to America from Isis now is just as real and serious as that from our enemies then.”
Mayor Bowers, there are a few key points of history you seem to have missed:
1) The internment (not a "sequester") was not of Japanese "foreign nationals," but of Japanese Americans, two-thirds of whom were U.S. citizens. I wa
@grahamperrin
grahamperrin / ZFS BE OS version levels.txt
Created November 30, 2016 19:50
ZFS boot environments demystified: confirming the goodness of http://unix.stackexchange.com/a/327146/13260
# whoami ; pwd
root
/tmp
# beadm list
BE Active Mountpoint Space Created Nickname
initial - - 5.4G 2016-08-22 11:24 initial
20161005193649_201610142022 - - 3.1G 2016-10-14 20:22 12.0-CURRENT-up-20161014_204827
20161028134949_201610291803 - - 754.3M 2016-10-29 18:03 12.0-CURRENT-up-20161029_180801
20161028134949_14_201611081710 - - 1.2M 2016-11-08 17:10 12.0-CURRENT-up-20161108_171012
12.0-CURRENT-up-20161125_173806 - /tmp/BE-12.0-CURRENT-up-20161125_173806.8eHQejDo 7.5G 2016-11-25 17:12 12.0-CURRENT-up-20161125_173806
@grahamperrin
grahamperrin / Xorg.0.log
Created December 11, 2016 13:56
Xorg.0.log from TrueOS Desktop unstable on an HP EliteBook 8540p
[ 595.947]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[ 595.947] X Protocol Version 11, Revision 0
[ 595.947] Build Operating System: FreeBSD 12.0-CURRENT amd64
[ 595.947] Current Operating System: FreeBSD momh167-gjp4-hpelitebook8540p-trueos.university.brighton.ac.uk 12.0-CURRENT FreeBSD 12.0-CURRENT #57 6196e09(drm-next-4.7): Sat Dec 10 17:31:03 UTC 2016 root@gauntlet:/usr/obj/usr/src/sys/GENERIC amd64
[ 595.947] Build Date: 21 November 2016 06:45:50PM
[ 595.947]
[ 595.947] Current version of pixman: 0.34.0
[ 595.947] Before reporting problems, check http://wiki.x.org
@grahamperrin
grahamperrin / 2016-12-11 17:55 terminal output.txt
Created December 11, 2016 17:55
An experiment with locate.updatedb in TrueOS Desktop
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> cd
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> ls -hl
total 400
drwxr-xr-x 9 grahamperrin grahamperrin 43B 11 Dec 17:31 Desktop
drwxr-xr-x 31 grahamperrin grahamperrin 87B 9 Dec 15:17 Documents
drwxr-xr-x 3 grahamperrin grahamperrin 28B 8 Dec 15:12 Downloads
drwxr-xr-x 2 grahamperrin grahamperrin 29B 10 Dec 06:07 fontconfig
drwxr-xr-x 4 grahamperrin grahamperrin 4B 6 Dec 10:49 GNUstep
drwxr-xr-x 2 grahamperrin grahamperrin 3B 6 Dec 10:49 Images
drwxr-xr-x 2 grahamperrin grahamperrin 7B 6 Dec 10:49 logs
@grahamperrin
grahamperrin / 2016-12-12 18-10 terminal output.txt
Created December 12, 2016 19:23
FreeBSD-CURRENT TrueOS Desktop (unstable) connecting to an unwanted wireless network
# The terminal sesion in the screen recording that's linked from
# https://gitter.im/trueos/Lobby?at=584eea6a9ce5147013cd6df2
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> sudo pc-netmanager
Locale: "en"
route: route has not been found
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> sudo pc-netmanager
Locale: "en"
route: route has not been found
grahamperrin@momh167-gjp4-hpelitebook850g2-trueos ~> sudo pc-netmanager
@grahamperrin
grahamperrin / 2016-12-14 22- attention to network.wlan0.txt
Created December 14, 2016 22:18
2016-12-14 22- attention to network.wlan0 with TrueOS Desktop f71568c(drm-next-4.7) on an HP EliteBook 850 G2
$ sudo service wpa_supplicant restart
Password:
wpa_supplicant |wpa_supplicant.wlan0| * WARNING: wpa_supplicant.wlan0 has already been started
$ service network.wlan0 status
* status: started
$ sudo service network.wlan0 stop
Password:
network.wlan0 | * Caching service dependencies ... [ ok ]
network.wlan0 |dhcpcd.wlan0 | * Stopping DHCP Client Daemon (wlan0) ... [ ok ]k.wlan0 |
network.wlan0 |wpa_supplicant.wlan0| * Stopping wpa_supplicant (wlan0) ... [ ok ]
@grahamperrin
grahamperrin / 2016-12-15 trueos rc-service cosmetics.txt
Last active December 15, 2016 05:57
Experimenting with cosmetic improvements to outputs from OpenRC service (rc-service) commands in TrueOS
$ sudo service wpa_supplicant restart
Password:
wpa_supplicant | wpa_supplicant.wlan0 | * WARNING: wpa_supplicant.wlan0 is already started [ ! ]
$ service network.wlan0 status
* status: started
$ sudo service network.wlan0 stop
Password:
network.wlan0 | * caching service dependencies [ ok ]
network.wlan0 | dhcpcd.wlan0 | * stopping DHCP Client Daemon (wlan0) ... [ ok ]
network.wlan0 | wpa_supplicant.wlan0 | * stopping wpa_supplicant (wlan0) ... [ ok ]
$ date ; uptime ; uname -v ; uname -n
Sat 24 Dec 2016 10:06:40 GMT
10:06a.m. up 4:35, 1 users, load averages: 1.06, 1.07, 1.03
FreeBSD 12.0-CURRENT #10 a4012d9(drm-next-4.7): Fri Dec 23 00:27:25 UTC 2016 root@gauntlet:/usr/obj/usr/src/sys/GENERIC
momh167-gjp4-ergovista621-trueos.university.brighton.ac.uk
$ beadm list
BE Active Mountpoint Space Created Nickname
initial - - 1.9G 2016-12-18 14:11 initial
12.0-CURRENT-up-20161218_162142 - - 1.4G 2016-12-18 16:11 12.0-CURRENT-up-20161218_162142
12.0-CURRENT-up-20161220_080030 - - 928.2M 2016-12-20 07:57 12.0-CURRENT-up-20161220_080030
$ date ; uptime ; uname -v ; uname -n
Sat 24 Dec 2016 10:06:40 GMT
10:06a.m. up 4:35, 1 users, load averages: 1.06, 1.07, 1.03
FreeBSD 12.0-CURRENT #10 a4012d9(drm-next-4.7): Fri Dec 23 00:27:25 UTC 2016 root@gauntlet:/usr/obj/usr/src/sys/GENERIC
momh167-gjp4-ergovista621-trueos.university.brighton.ac.uk
$ beadm list
BE Active Mountpoint Space Created Nickname
initial - - 1.9G 2016-12-18 14:11 initial
12.0-CURRENT-up-20161218_162142 - - 1.4G 2016-12-18 16:11 12.0-CURRENT-up-20161218_162142
12.0-CURRENT-up-20161220_080030 - - 928.2M 2016-12-20 07:57 12.0-CURRENT-up-20161220_080030
#!/bin/sh
echo " "
echo " net.redirectme.perrin.trueos.openrc.wlan0.workarounds.sh "
echo " "
echo " – a series of OpenRC commands that may help in situations where a "
echo " known good wireless Internet connection does not begin when expected …"
echo " "
echo " a request to stop the DHCP client daemon for wireless networking, "
rc-service dhcpcd.wlan0 stop
echo " a wait of two seconds …"