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
#include "SoftwareSerial.h" | |
#include <VC0706_UART.h> | |
#include <SD.h> | |
#include <SPI.h> | |
#define SS_SD 10 | |
//use software serial | |
SoftwareSerial cameraconnection(2,3);//Rx, Tx | |
VC0706 cam = VC0706(&cameraconnection); | |
//use hardware serial |
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
boolean VC0706::motionDetected(void) | |
{ | |
if (_read(4, 200) != 4) { | |
Serial.println("in read"); | |
return false; | |
} | |
if (!_verify(VC0706_COMM_MOTION_DETECTED)){ | |
Serial.println("in verify"); | |
Serial.println(_verify(VC0706_COMM_MOTION_DETECTED)); |
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
uint8_t VC0706::_verify(uint8_t cmd) | |
{ | |
if((vcBuff[VC0706_PTL_BYTE] != VC0706_RECV_MARK) || | |
(vcBuff[VC0706_SERIAL_BYTE] != VC0706_SERIAL_NUMBER)){ | |
DBG("return format error\n"); | |
return RESP_DATA_FORMAT_ERROR; | |
} | |
if(vcBuff[VC0706_CMD_BYTE] != cmd){ | |
DBG("return command error\n"); |
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
#!/bin/sh | |
# A simple git pre-commit hook that checks if any public keys in the current directory with extension .pub is secure | |
for i in $(ls pubkeys/*.pub) | |
do | |
# DSA is insecure | |
f=$(ssh-keygen -l -f $i | cut -d "(" -f2 | cut -d ")" -f1) | |
echo "$f" | |
[ "$f" = "DSA" ] && echo "DSA is insecure: $i" && exit 1 | |
#RSA < 2096 bits is not that secure |
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
# cat strace.log | |
1762 execve("/usr/bin/python3.4", ["python3.4"], [/* 15 vars */]) = 0 | |
1762 brk(0) = 0x110e000 | |
1762 uname({sys="Linux", node="spdibox-3716BBBK0D3E", ...}) = 0 | |
1762 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) | |
1762 mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6fcd000 | |
1762 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
1762 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
1762 fstat64(3, {st_mode=S_IFREG|0644, st_size=17658, ...}) = 0 | |
1762 mmap2(NULL, 17658, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb6fc8000 |
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
# 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 |
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
# 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: |
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
# 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 |
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
# 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 |
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
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 |
OlderNewer