Skip to content

Instantly share code, notes, and snippets.

View harmishhk's full-sized avatar

Harmish Khambhaita harmishhk

View GitHub Profile
#!/bin/sh
exec socat UNIX-LISTEN:/var/run/docker.sock,fork,group=docker,umask=007 EXEC:"npiperelay.exe -ep -s //./pipe/docker_engine",nofork
@harmishhk
harmishhk / km-0409.ini
Created April 15, 2017 15:25
parital solution for us intl keyboard with xrdp
[noshift]
Key8=0:0
Key9=65307:27
Key10=49:49
Key11=50:50
Key12=51:51
Key13=52:52
Key14=53:53
Key15=54:54
Key16=55:55
@harmishhk
harmishhk / README.md
Created March 25, 2017 11:51
Configure docker user-namespacing with LDAP

For Ubuntu 14.04.x Add --userns-remap={username}:{groupname} somewhere in DOCKER_OPTS in /etc/default/docker file. Add a new line with {username}:{userid}:65536 in /etc/subuid file. Add a new line with {groupname}:{groupid}:65536 in /etc/subuid file.

@harmishhk
harmishhk / iri-lab
Last active February 1, 2017 18:58
Dockerfile with some IRI packages
Dockerfile with some IRI packages
git clone -b indigo-devel https://github.com/ros-drivers/audio_common src/audio_common
touch src/audio_common/audio_capture CATKIN_IGNORE
touch src/audio_common/audio_play CATKIN_IGNORE
git clone -b indigo-devel https://github.com/harmishhk/pr2_battery_alert.git src/pr2_battery_alert
git clone -b indigo-devel https://github.com/harmishhk/pr2_common_actions.git src/pr2_common_actions
git clone -b indigo-devel https://github.com/PR2/pr2_robot src/pr2_robot
sed -i 's/timeout: 0.2/timeout: 0.5/g' src/pr2_robot/pr2_controller_configuration/pr2_base_controller2.yaml
@harmishhk
harmishhk / pr2_calibration_ws.sh
Created November 14, 2016 09:59
pr2_calibration
git clone -b indigo-devel https://github.com/PR2/pr2_calibration.git src/pr2_calibration
git clone -b indigo-devel https://github.com/PR2/pr2_common.git src/pr2_common
git clone -b indigo-devel https://github.com/PR2/pr2_controllers.git src/pr2_controllers
git clone -b indigo-devel https://github.com/PR2/pr2_mechanism src/pr2_mechanism
git clone -b indigo-devel https://github.com/PR2/pr2_robot src/pr2_robot
git clone -b indigo-devel https://github.com/ros/convex_decomposition src/non_pr2_pkgs/convex_decomposition
#include <iostream>
#include <string>
#include <vector>
#include <random>
#include <chrono>
#include <ctime>
int main()
{
int start_c = 10000, end_c = 20000;
@harmishhk
harmishhk / navigation-setup.md
Last active December 5, 2017 11:10
scripts for installing human-aware robot navigation

This repository contains script for installing packages related to human-aware navigation.

Requirements

Ubuntu 14.04 with ROS Indigo.

Usage

git clone https://gist.github.com/harmishhk/2e6baec83d696b5f5c212110d1d04dcc $HOME/ros/navigation_setup
cd ~/ros/navigation_setup && ./setup.sh
# #!/bin/bash -eux
code --install-extension DotJoshJohnson.xml
code --install-extension EditorConfig.EditorConfig
code --install-extension PeterJausovec.vscode-docker
code --install-extension UCL.haskelly
code --install-extension ajshort.msg
code --install-extension cssho.vscode-svgviewer
code --install-extension donjayamanne.githistory
code --install-extension donjayamanne.python
@harmishhk
harmishhk / lumia_gps_metadata_copy.ps1
Created April 13, 2016 17:03
powershell script to copy gps-metadata between image files
# script to copy GPS metadata between files based on names.
# implemented for photos from Lumia 1020 phone which stores images in two sizes,
# one of them (low resolution image) has GPS but the other (high resolution image) does not!
# requires ExifTool: http://www.sno.phy.queensu.ca/~phil/exiftool
# author: Harmish Khambhaita, v0.1, 13/04/2016
# specify directory to process photos
$rootFolder = "C:\Users\your_name\Pictures\lumia_1020"
# specify location for exiftool