Skip to content

Instantly share code, notes, and snippets.

View goobta's full-sized avatar

Ankur Gupta goobta

View GitHub Profile
@goobta
goobta / links.md
Created February 17, 2024 17:52
02-2024 SJSU Docker Talk Assets
@goobta
goobta / 02-2024 SJSU Docker Talk Assets.md
Last active February 18, 2024 18:03
02-2024 SJSU Docker Talk Assets
@goobta
goobta / README.md
Created February 7, 2021 10:21
Solo Virtual Environment Bootstrapper

Solo Virtual Environment Bootstrapper

ROS is kind of a hack when it comes to environment sandboxing because it essentially works by monkey-patching your bash environment. Virtual environments are kind of a hack when it comes it environment sandboxing because it essentially works by monkey-patching your bash environment. What are we using? Both.

First Time Use

This script will generate a Python 3.6 virtual environment called venv-ros-solo in the directory that the script is located. Note that means that you need to have python3.6-venv installed. On Debian/Ubuntu variants, this should be pretty easily doable with sudo apt install python3.6-venv.

@goobta
goobta / readme.md
Last active February 10, 2021 15:29
Solo8 Dev Stack

Solo 8 Dev Stack

If you want to work on gym_solo, or use any version of the repos that isn't master, you need to replace those repos in the docker container via a volume mount.

Assuming your filestructure is as follows and your docker image is named solo8:sb-gpu, you can just ./run.sh and it should start JupyterLab within the container.

Required filesystem:

@goobta
goobta / Using Anaconda to Create a Sandboxed Environment.md
Last active July 13, 2018 18:44
Installing a python environment

Foreword

I constantly find myself rewriting these instructions over and over again, so I figured that I'll write 'em once and reference this document when needed.

Assumptions

  • There is a file in the root directory named requirements.txt. This file should be hold all of the packages required for the project. This file can be generated by running pip freeze > requirements.txt on UNIX based systems.
  • That the project is using Python 3. Most of my projects are written in Python 3, so this condition will usually be true. If this not the case, it will be explictly written as such in the README.md. The only major change to use Python 2 is to replace python=3 with python=2 when the step comes.

Directions

If you already have pip installed (Just try running pip from the command line), simply

@goobta
goobta / WPI Wireless on Arch Linux
Last active October 27, 2017 20:39
Connecting to WPI WPA2 Wireless using NetCTL on Arch LInux
Connecting to WPI network with wpa_supplicant or wicd (or other)
Download client both certificates (CA and the .p12 from WPI-Wireless-setup) Make sure to download the CA cert in pem format. It may work in the default format, but I can not confirm that.
Make sure to save both certs and everything created in this tutorial in a useful directory, such as /usr/share/wpiwificerts
All commands should be run in that same directory, some commands may need to be run as root
Create client certificate
openssl pkcs12 -in certificate.p12 -out cert.pem -clcerts -nokeys
(enter @wpi.edu) password when prompted