Skip to content

Instantly share code, notes, and snippets.

# python3 version, derived from python2 version https://gist.github.com/dergachev/7028596
#
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python3 simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
@elfgoh
elfgoh / sponsorship.md
Last active July 26, 2019 10:22
Sponsorship Tiers

Based on 2017 prospectus

Exclusive sponsor

  • 1 large logo on website, and on event opening and closing slides
  • 1 x logo on Geekcamp.SG stand-up posters & post conference videos - 1 x table booth at sponsor's area
  • 1 x pre conference ‘Thank You’ broadcast on our Twitter / Facebook
  • 2 featured tweets/posts, such as hiring or appropriate content (at organizer’s discretion)
  • Link to preferred content page from Geekcamp.SG sponsor page (subject to organiser's vetting)
@elfgoh
elfgoh / gist:4d59388541b6e2f7596082ea5b8a8f24
Created April 3, 2019 08:45
Kernel log from BBE Industrial
$ dmesg -w
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.25-ti-r16 (voodoo@w2-imx6q-wandboard-2gb) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1stretch SMP PREEMPT Wed Mar 20 04:26:42 UTC 2019
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 48 MiB at 0xbc800000
@elfgoh
elfgoh / bone-debian-9.3-2018-01-07.syslog
Last active January 11, 2018 03:47
Syslog of BBB console image reboot
Jan 7 14:19:43 beaglebone systemd-fsck[264]: rootfs: clean, 15473/54208 files, 88041/216576 blocks
Jan 7 14:19:43 beaglebone systemd[1]: Started Create Static Device Nodes in /dev.
Jan 7 14:19:43 beaglebone systemd[1]: Started Remount Root and Kernel File Systems.
Jan 7 14:19:43 beaglebone systemd[1]: Started Apply Kernel Variables.
Jan 7 14:19:43 beaglebone systemd[1]: Starting udev Coldplug all Devices...
Jan 7 14:19:43 beaglebone systemd[1]: Starting Load/Save Random Seed...
Jan 7 14:19:43 beaglebone systemd[1]: Reached target Local File Systems (Pre).
Jan 7 14:19:43 beaglebone systemd[1]: Reached target Local File Systems.
Jan 7 14:19:43 beaglebone systemd[1]: Starting Raise network interfaces...
Jan 7 14:19:43 beaglebone systemd[1]: Starting udev Kernel Device Manager...
@elfgoh
elfgoh / dates.txt
Last active June 21, 2017 07:50
Conferences / events in consideration for conference planning
End Sep: F1(Alan). Away(Kris)
Oct 7: Away(Kris)
Oct 14:
Oct 21: One day after iosconf (Ivan, Kheng Meng)
Oct 28: Wordcamp(tentative)
Nov 4: ICT (Ivan)
Nov 11: ICT (Ivan)
Nov 18:
Nov 25:
Dec 4: Away(David)
@elfgoh
elfgoh / cfv.txt
Last active June 6, 2017 02:37
Geekcampsg call for volunteers
We are looking for volunteers to join us in organising GeekcampSG 2017[1]. It is essentially a community conference for geeks covering both software and hardware.
We are looking for each volunteer to take up a tiny portfolio, and hopefully more than 1 volunteer per portfolio for redundancy. First timers welcomed and mentorship will be provided if needed. Please let me know if you are interested to help, or be a speaker!
Off the top of our heads, these are the areas where help is needed:
- accounting + finance
- afterparty
- design
- Emcee
@elfgoh
elfgoh / gist:b1c062b04b70f3e2793ebd2bf2229cb0
Created March 10, 2017 02:27
Dmesg output after fresh reboot of console image and installing bb-cape-overlays 09 Mar 2017
# dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.48-ti-r88 (root@b1-omap5-uevm-2gb) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP Sun Feb 12 01:06:00 UTC 2017
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: TI AM335x BeagleBone Black
[ 0.000000] cma: Reserved 48 MiB at 0x9c800000
@elfgoh
elfgoh / gist:1f71b30e48d59711584c885390d43e2a
Last active March 10, 2017 02:19
strace output from python on BBB console image
# cat trace.txt
14432 execve("/usr/bin/python3.4", ["python3.4"], [/* 15 vars */]) = 0
14432 brk(0) = 0x1f18000
14432 uname({sys="Linux", node="spdibox-3716BBBK0D3E", ...}) = 0
14432 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
14432 mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f59000
14432 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
14432 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
14432 fstat64(3, {st_mode=S_IFREG|0644, st_size=17658, ...}) = 0
14432 mmap2(NULL, 17658, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb6f54000
@elfgoh
elfgoh / uEnv.txt
Created March 9, 2017 05:49
/boot/uEnv.txt for BBB Debian console image
# cat /boot/uEnv.txt
#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0
uname_r=4.4.48-ti-r88
#uuid=
#dtb=
##BeagleBone Black/Green dtb's for v4.1.x (BeagleBone White just works..)
##BeagleBone Black: HDMI (Audio/Video) disabled:
@elfgoh
elfgoh / gist:5dc11cb9d3ba1ef985fa560e9d9a6ade
Created March 9, 2017 05:31
Dmesg output from BBB debian console image reboot
# dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.48-ti-r88 (root@b1-omap5-uevm-2gb) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP Sun Feb 12 01:06:00 UTC 2017
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: TI AM335x BeagleBone Black
[ 0.000000] cma: Reserved 48 MiB at 0x9c800000