Skip to content

Instantly share code, notes, and snippets.

View copperlight's full-sized avatar

Matthew Johnson copperlight

View GitHub Profile
(defn diamond [width offset]
(doseq [w (take-nth 2 (concat (range 1 width) (range width 0 -1)))]
(do
(print (apply str (repeat offset " ")))
(print (apply str (repeat (/ (- width w) 2) " ")))
(print (apply str (repeat w "x")))
(println))))
sudo raspi-config
Advanced > SSH > Enable
# for 2.4G networks; the edimax adapter does not support 5G
pi@raspberrypi ~ $ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="$SSID"
psk="$PRE_SHARED_KEY"
proto=RSN
key_mgmt=WPA-PSK
https://github.com/raspberrypi/linux/issues/963
I found that changing a line in /etc/nsswitch.conf fixes it, with avahi-daemon running.
"hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4"
should become:
"host: files dns"