Skip to content

Instantly share code, notes, and snippets.

@versatran01
versatran01 / sharenet.sh
Last active August 29, 2015 14:12
Forward packet from wlan0 to eth0
function sharenet()
{
if [ $# -eq 0 ]; then
echo "usage: sharenet <on/off>"
return 0
fi
local if_from=wlan0
local if_to=eth0
# check command-line commands
@versatran01
versatran01 / interfaces.sh
Last active August 29, 2015 14:12
Network interfaces setup
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
# wireless
auto wlan0
iface wlan0 inet static
address 192.168.129.104
netmask 255.255.255.0
gateway 192.168.129.1
@versatran01
versatran01 / config-gcc.sh
Last active August 29, 2015 14:26
update-alternatives for gcc
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 60
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 40
sudo update-alternatives --config g++
disable auth
broadcastclient
server 192.168.100.110 iburst
sudo ntpdate -d 192.168.100.110
sudo ntpq -c lpeers
@versatran01
versatran01 / NTP.md
Last active September 6, 2016 15:32

Base station

username: chao
password: galt2014
ip: 192.168.3.200

Check status

roslaunch galt_setup deploy_rqt.launch
@versatran01
versatran01 / kitti_archives.txt
Last active October 22, 2024 07:10
kitti archives
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_calib.zip
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0001/2011_09_26_drive_0001_sync.zip
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0002/2011_09_26_drive_0002_sync.zip
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0005/2011_09_26_drive_0005_sync.zip
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0009/2011_09_26_drive_0009_sync.zip
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0011/2011_09_26_drive_0011_sync.zip
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0013/2011_09_26_drive_0013_sync.zip
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0014/2011_09_26_drive_0014_sync.zip
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0015/2011_09_26_drive_0015_sync.zip
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_2
@versatran01
versatran01 / scenenet_archives.txt
Last active May 20, 2018 19:16
scenenet archives
http://www.doc.ic.ac.uk/~ahanda/train_split/train_0.tar.gz
http://www.doc.ic.ac.uk/~ahanda/train_split/train_1.tar.gz
http://www.doc.ic.ac.uk/~ahanda/train_split/train_2.tar.gz
http://www.doc.ic.ac.uk/~ahanda/train_split/train_3.tar.gz
http://www.doc.ic.ac.uk/~ahanda/train_split/train_4.tar.gz
http://www.doc.ic.ac.uk/~ahanda/train_split/train_5.tar.gz
http://www.doc.ic.ac.uk/~ahanda/train_split/train_6.tar.gz
http://www.doc.ic.ac.uk/~ahanda/train_split/train_7.tar.gz
http://www.doc.ic.ac.uk/~ahanda/train_split/train_8.tar.gz
http://www.doc.ic.ac.uk/~ahanda/train_split/train_9.tar.gz
@versatran01
versatran01 / dhcpd.conf
Last active September 24, 2018 22:01
fla ovc
#
# Sample configuration file for ISC dhcpd for Debian
#
# Attention: If /etc/ltsp/dhcpd.conf exists, that will be used as
# configuration file instead of this file.
#
#
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
@versatran01
versatran01 / gqn_converter.py
Last active October 9, 2018 20:00
convert gqn dataset
import os
from collections import namedtuple
import tensorflow as tf
import torch
import gzip
import multiprocessing as mp
from functools import partial
def collect_files(path, ext=None, key=None):
if key is None: