Skip to content

Instantly share code, notes, and snippets.

View saii9's full-sized avatar
😄
Currently learning skills other than coding, will be a while to my next checkin

Sai saii9

😄
Currently learning skills other than coding, will be a while to my next checkin
  • Wayfair LLC
  • Boston
View GitHub Profile
@saii9
saii9 / uboot Commands
Created April 29, 2018 16:28
some Uboot commands for ref.
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
@saii9
saii9 / bbb_rtl8723bu
Last active April 29, 2018 15:19
installation steps for rtl8723bu.sh on beaglebone
#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
@saii9
saii9 / vagrants.cmds
Last active April 27, 2018 14:32
Vagrant, Some help full commands
#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 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

Keybase proof

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: