This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android | |
import time | |
import random | |
droid = android.Android() | |
random.seed() | |
randSMS = random.choice(droid.smsGetMessages(False, 'inbox').result) | |
randContact = random.choice(droid.contactsGet().result) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo make search name=avahi | |
Port: avahi-0.6.31p15 | |
Path: net/avahi,-main | |
Info: framework for Multicast DNS Service Discovery | |
Maint: Antoine Jacoutot <ajacoutot@openbsd.org> | |
Index: net devel lang/mono lang/python | |
L-deps: STEM->=0.10.38:devel/gettext converters/libiconv databases/gdbm devel/glib2 devel/libdaemon x11/dbus | |
B-deps: STEM->=0.10.38:devel/gettext STEM->=0.41.1p0:textproc/intltool converters/xmltoman devel/gmake devel/gobject-introspection lang/mono lang/python/2.7 lang/python/2.7,-gdbm x11/dbus-python x11/mono-gtk2 x11/py-gtk2 | |
R-deps: STEM->=0.10.38:devel/gettext | |
Archs: any |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd net/avahi | |
$ sudo make install BULK=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo echo multicast_host=YES >> /etc/rc.conf.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -x /usr/local/bin/dbus-daemon ]; then | |
install -d -o _dbus -g _dbus /var/run/dbus | |
echo -n " dbus"; /usr/local/bin/dbus-daemon --system | |
fi | |
if [ -x /usr/local/sbin/avahi-daemon ]; then | |
echo -n ' avahi-daemon'; /usr/local/sbin/avahi-daemon -D | |
fi | |
if [ -x /usr/local/sbin/avahi-dnsconfd ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[server] | |
host-name=pyongyang | |
domain-name=local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ping -c 3 pyongyang.local | |
PING pyongyang.local (192.168.0.103) 56(84) bytes of data. | |
64 bytes from pyongyang.local (192.168.0.103): icmp_req=1 ttl=255 time=0.942 ms | |
64 bytes from pyongyang.local (192.168.0.103): icmp_req=2 ttl=255 time=0.958 ms | |
64 bytes from pyongyang.local (192.168.0.103): icmp_req=3 ttl=255 time=0.900 ms | |
--- pyongyang.local ping statistics --- | |
3 packets transmitted, 3 received, 0% packet loss, time 2003ms | |
rtt min/avg/max/mdev = 0.900/0.933/0.958/0.034 ms | |
$ ssh pyongyang.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd path/to/openbsd/image | |
$ sudo diskutil list | |
<other hard drives, not important> | |
/dev/disk2 (internal, physical): | |
#: TYPE NAME SIZE IDENTIFIER | |
0: FDisk_partition_scheme *63.9 GB disk2 | |
$ sudo diskutil unmountDisk /dev/rdisk2 | |
Unmount of all volumes on disk2 was successful | |
$ sudo dd if=./miniroot-am335x-58.fs of=/dev/rdisk2 bs=1m | |
18+0 records in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ls /dev/tty.usbserial* | |
/dev/tty.usbserial-A402O00H | |
$ screen /dev/tty.usbserial-A402O00H 115200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ su | |
Password: | |
# cd /usr/src | |
# ftp http://ftp.openbsd.org/pub/OpenBSD/5.8/ports.tar.gz | |
# tar -xzf /tmp/ports.tar.gz # this could take a wee while | |
# cd ports |