I hereby claim:
- I am saii9 on github.
- I am saii9 (https://keybase.io/saii9) on keybase.
- I have a public key ASB66oB5Z1PtfzYTN1glAqrG7aiBsWca5d5aQkLu5ng8dQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
to find the root cert of the server | |
$] openssl s_client -showcerts -connect www.domain.com:443 | |
downoad crt from http://cacerts.digicert.com/DigiCertGlobalCAG2.crt | |
convert to pem in home folder | |
$] openssl x509 -inform der -in DigiCertGlobalCAG2.crt -out DigiCertGlobalCAG2.pem | |
convert to crt | |
$] openssl x509 -outform der -in podcert.pem -out podcert.crt |
#get ip of vagrant machine | |
#all the commands are centered around my Vagrant git project | |
vagrant ssh -c "hostname -I | cut -d' ' -f2" 2>/dev/null | |
#get IP of host machine | |
netstat -rn | grep "^0.0.0.0 " | cut -d " " -f10 |
#To tether internet over USB (Ubuntu Only) | |
On Host machine | |
ifconfig | |
ifconfig enx544a16bf6b4e 192.168.7.1 | |
sysctl net.ipv4.ip_forward=1 | |
iptables --table nat --append POSTROUTING --out-interface wlp2s0 -j MASQUERADE | |
iptables --append FORWARD --in-interface nx544a16bf6b4e -j ACCEPT | |
On BeagleBone | |
route add default gw 192.168.7.1 | |
echo "nameserver 8.8.8.8" >> /etc/resolv.conf |
UBOOT prompt | |
------------ | |
load mmc 1:2 0x88000000 /boot/am335x-boneblack.dtb # load dtb to memory | |
load mmc 1:2 0x82000000 /boot/uImage # load kernel to memory | |
# load: load a file to memory | |
# mmc: from MMC | |
# 1:2: 1 -> eMMC 2 -> partition 2 | |
# 0x82000000: RAM addr to load into | |
# /boot/uImage: file name |
sudo apt-get install libncurses5-dev libncursesw5-dev unzip lzop u-boot-tools | |
#in a clean working directory donwload busybox | |
wget https://busybox.net/downloads/busybox-1.28.3.tar.bz2 | |
tar xvjf busybox-1.28.3.tar.bz2 | |
#downlaod linaro toolchain | |
wget https://releases.linaro.org/components/toolchain/binaries/latest/arm-linux-gnueabihf/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz | |
tar xvf gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz | |
#downlaod linux kernel source |
#to check SysV services | |
chkconfig --list | more | |
#To check systemd service files | |
systemctl list-unit-files | |
systemctl list-units | |
systemd | |
___________|___________ | |
| | | |
V2V Intersection Collision Warning (ICW) Dec 2016 | |
• We built an v2v communication framework to add applications that are related to driver assistance and autonomous driving. | |
• Apps like automatic emergency braking, lane-following, automated lane changing can be added on this framework. We implemented Intersection collision warning system to demonstrate the working of the framework. | |
• Sensor fusion of compass and GPS module to eliminate any glitches in the positioning reported by GPS module. | |
• The ICW system which is demonstrated in the below YouTube link, is an important active safety feature in autonomous driving. It is driver assistance system which warns driver when there is a probability of collision. | |
• Can detect Intersection Collision Warning, predict collision time and warn the driver accordingly. | |
• Code repo at GitHub: https:/github.com/saii9/Vehicle-Comn-nrf | |
• YouTube Link: https://www.youtube.com/watch?v=roOfH7tUPEg |
#!/bin/bash | |
set -e | |
# set -x | |
function log(){ | |
echo "$(date -u +'%Y%m%dT%H%M%SZ') - $*" | |
} | |
# variable declaration - start | |
bucket=<bucket> |
const cluster = require('cluster'); | |
if(cluster.isMaster){ | |
function test(num){ | |
let workers = {}; | |
let count = num; | |
for (let i = 0; i < num; i++) { | |
workers[i] = []; | |
workers[i].push((new Date).getTime()); | |
const worker = cluster.fork(); |