Skip to content

Instantly share code, notes, and snippets.

View OAkyildiz's full-sized avatar
🎯
Focusing

Ozan Akyıldız OAkyildiz

🎯
Focusing
View GitHub Profile
@OAkyildiz
OAkyildiz / turtlebot2_noetic.rosinstall
Created July 28, 2020 06:52
rosinstall file for turtlebot2 packages in ROS Noetic on Ubuntu 20.04 Focal. I discarded ar_track and it's dependents to avoid updating all opencv references
repositories:
ddynamic_reconfigure:
type: git
url: https://github.com/pal-robotics/ddynamic_reconfigure
version: kinetic-devel
ecl/ecl_core:
type: git
url: https://github.com/stonier/ecl_core
version: release/0.62-noetic
ecl/ecl_lite:
@OAkyildiz
OAkyildiz / DSN_cifar10.prototxt
Created April 26, 2019 17:01
PorotoTxt file for the DSN model
name: "CaffeNet"
layers {
layer {
name: "data"
type: "data"
source: "cifar10_gcn-leveldb/cifar-train-leveldb"
batchsize: 100
}
top: "data"
top: "label"
@OAkyildiz
OAkyildiz / fix_robotsim.sh
Last active June 11, 2018 19:44
[TRINA] Scripted Fix for robotsim_wrap.cxx: This file finds the code block to be moved and the target location and moves each line up. It is required by install_trina.sh
#!/bin/bash
#move this
tomove="return _wrap_new_WorldModel__SWIG_1(self, args);"
#to where tis is:
into="return _wrap_new_WorldModel__SWIG_2(self, args);"
# calculate how many lines to shift
fromln=$(grep -in "$tomove" Klampt/Python/klampt/src/robotsim_wrap.cxx | cut -d : -f 1)
toln=$(grep -in "$into" Klampt/Python/klampt/src/robotsim_wrap.cxx | cut -d : -f 1)
@OAkyildiz
OAkyildiz / condapath
Created March 26, 2018 19:02
Enable conda, add it to the path, optionally activate an environment and remove other packages from PYTHONPATH or vice-versa
#! /bin/bash
if [ "$CONDA" == true ] ; then
if ! [ -z $CONDA_DEFAULT_ENV ] && ! [ "$CONDA_DEFAULT_ENV" == "root" ] ; then
echo "Deactivating ${CONDA_DEFAULT_ENV} first"
source deactivate
fi
export PATH=$NOCONDA_PATH
@OAkyildiz
OAkyildiz / unbind
Last active March 16, 2018 20:24
Unbind a port by killing the owner process
#! /bin/bash
sudo kill $(sudo lsof -t -i:$1)
@OAkyildiz
OAkyildiz / trina-config.sh
Created December 14, 2017 21:38
Output a .json file for TRINA server configuration. Use tih as a stub to attach quote marks to vairables' provide verbose and help output with scripts, and to cat multiline text. Will be updated s oon
#!/bin/bash
verbose(){
cat $output
}
help(){
echo "trina-config: generate json file for the trina server"
echo "usage : trina-config"
echo "-h output this message"
echo "-v print out the json output"
@OAkyildiz
OAkyildiz / ros-env.sh
Last active July 31, 2022 20:13
Bash script to easily set up/switch ROS_env variables
#!/bin/bash
# don't forget to SOURCE!
# USAGE: source ros-nev(.sh) MASTER_IP iface
# Specify IP for the ROS master and prioritize one of the inet interfaces.
# Usually, 1 is eth* and 2 is wifi*. If not found it falls back
# to the lower one. (2>1>0) where 0 is localhost
# Get MASTER_URI's IP
M_IP=$1
@OAkyildiz
OAkyildiz / catkin-create-pkg.sh
Last active December 12, 2017 23:01
Bash scripts to create ROS workspaces and packages using python-catkin-tools.
#!/bin/bash
# create signed packages using caktin_tools' create quickly
# set the env. variables below or modify acordingly
# if you are running a different ROS distro, modify that as well.
if [ -z "$EMAIL" ] || [ -z "$NAME" ] ; then
echo "Set NAME and EMAIL variables, or modify the script.
This script was writen to create signed, licensed packages quickly using
caktin_tools' create ."
exit 1
fi
@OAkyildiz
OAkyildiz / pkg-check.sh
Created December 12, 2017 19:26
#Redundant script to check & install packages. Testing line #11 was the only purpose behind this
#!/bin/bash
#Redundant script to check packages.
PKG="$1"
if [ -z "$PKG" ]; then
echo "Package name is required!"
exit 128
fi
# I actually wrote this script to test the line below
@OAkyildiz
OAkyildiz / .bash_aliases
Last active June 29, 2019 19:11
Useful Aliases for Ubuntu (with ROS/Cuda/Anaconda...).Personalize! Also, Might need some fixing
# User your favorite editor here!
alias word=vim
#Useful Aliases for Ubuntu (with ROS/Cuda/Anaconda...).Personalize! Also, Might need some fixing
## get rid of a common typo - command not found ##
alias cd..='cd ..'
## apt-get laziness # Debian encourages using apt now
alias update='sudo apt update'
alias upgrade='sudo apt upgrade'