Skip to content

Instantly share code, notes, and snippets.

View makokal's full-sized avatar
🤖

Billy makokal

🤖
View GitHub Profile
# builds a "fixed" libnabo deb package for ros-kinetic
# output will be /tmp/libnabo_1.0.6.deb
cd /tmp
git clone https://github.com/ethz-asl/libnabo.git
mkdir libnabo/build
cd libnabo/build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/ros/kinetic/ ..
make clean && make
sudo make install
@makokal
makokal / aaai_script.sh
Created June 21, 2016 23:48 — forked from chfritz/aaai_script.sh
This shell script produces the latex source-package of a paper as required by AAAI, in preparation for printed proceedings.
#!/bin/bash
# ----------------------------------------------------------------------
# This shell script produces the latex source-package of a paper
# as required by AAAI, in preparation for printed proceedings.
# Copyright (C) 2009 Christian Fritz "fritz at cs dot toronto dot
# edu"
#
# I thank Jorge Baier for his contributions and Shirin Sohrabi for her
# feedback that has lead to improvements to the script. Thanks also
@makokal
makokal / osx-for-hackers.sh
Last active August 26, 2015 19:19 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@makokal
makokal / pedsim_formations.md
Created May 19, 2015 11:40
Creating F formations in `pedsim`
@makokal
makokal / randutils.hpp
Last active August 29, 2015 14:20 — forked from imneme/randutils.hpp
/*
* Random-Number Utilities (randutil)
* Addresses common issues with C++11 random number generation.
* Makes good seeding easier, and makes using RNGs easy while retaining
* all the power.
*
* The MIT License (MIT)
*
* Copyright (c) 2015 Melissa E. O'Neill
*
@makokal
makokal / fix_svn_tree_conflict.sh
Created October 9, 2014 12:58
Fix svn tree conflicts
svn resolve --accept working -R <path>
@makokal
makokal / vid_conv.sh
Last active August 29, 2015 13:56
convert mp4 to mov and other formats
# mp4 to mov
ffmpeg -i pedsim_video3d.mp4 -acodec copy -vcodec copy -f mov pedsim.mov
# mp4 to avi
ffmpeg -i pedsim_video3d.mp4 -vcodec mpeg4 -acodec ac3 -ar 48000 -ab 192k pedsim.avi
@makokal
makokal / subl.settings
Created November 15, 2013 15:14
sublime custom settings
{
"close_windows_when_empty": true,
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"font_face": "Source Code Pro",
"font_options":
[
"subpixel_antialias"
],
"font_size": 12,
"ignored_packages":
@makokal
makokal / clean_held_back.sh
Created November 12, 2013 16:48
Clean held back packages in Ubuntu and related
dpkg --get-selections | grep deinstall | sed 's/deinstall/\lpurge/' | sudo dpkg --set-selections; sudo dpkg -Pa
apt-get --purge autoremove
# check that the count is now zero
dpkg --get-selections | grep deinstall | wc -l
@makokal
makokal / sfml.rb
Last active December 27, 2015 19:39 — forked from juniorz/sfml.rb
SFML 2.1 keg
require 'formula'
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Sfml < Formula
homepage 'http://www.sfml-dev.org'
version '2.1'
url 'https://github.com/LaurentGomila/SFML/archive/2.1.zip'