Skip to content

Instantly share code, notes, and snippets.

View justbuchanan's full-sized avatar

Justin Buchanan justbuchanan

View GitHub Profile
# Maintainer: Benjamin Chretien <chretien at lirmm dot fr>
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
# Contributor: Vladimir Ermakov <vooon341@gmail.com>
# Updated to 7.4.0 by Justin Buchanan <justbuchanan@gmail.com>
pkgname=gazebo
pkgver=7.4.0
pkgrel=1
pkgdesc="A multi-robot simulator for outdoor environments"
arch=('i686' 'x86_64')
pkgname=sdformat
pkgver=4.2.0
pkgrel=1
pkgdesc="SDF Converter for gazebo"
arch=('i686' 'x86_64')
url="http://sdformat.org/"
license=('Apache')
depends=('boost' 'tinyxml' 'ignition-math>=2')
makedepends=('cmake' 'doxygen' 'ruby>=1.9.1')
#!/usr/bin/env python3
import tools
import time
import sys
from colorsys import *
# #010101 -> (1.0/2^16) * 3
def hex2triplet(hexval):
#!/usr/bin/env python
import i3
outputs = i3.get_outputs()
workspaces = i3.get_workspaces()
# figure out what is on, and what is currently on your screen.
workspace = list(filter(lambda s: s['focused'], workspaces))[0]
output = list(filter(lambda s: s['active'], outputs))
[test]
command=$SCRIPT_DIR/test.py
interval=persist
signal=1
#!/usr/bin/env python3
## Volume script for i3blocks
#
# This script uses playerctl to update whenever the current song changes, rather
# than polling at a fixed interval.
#
# Dependencies:
# * python-gobject - system package
# * playerctl - system package
@justbuchanan
justbuchanan / i3style2xresources.py
Last active February 22, 2021 01:18
Convert i3-style themes to xresources format
#!/usr/bin/env python3
import yaml
import sys
from collections import OrderedDict
"""
This script converts i3-style themes into xresources format.
i3-style can be found here: https://github.com/acrisci/i3-style.
@justbuchanan
justbuchanan / fix_cuda_compilation.patch
Last active October 17, 2016 03:48
Arch PKGBUILD for tensorflow with cuda 8.0 and cudnn 5.1.5 support
diff --git a/third_party/gpus/crosstool/CROSSTOOL.tpl b/third_party/gpus/crosstool/CROSSTOOL.tpl
index a367aa8..02cac9e 100644
--- a/third_party/gpus/crosstool/CROSSTOOL.tpl
+++ b/third_party/gpus/crosstool/CROSSTOOL.tpl
@@ -54,6 +54,9 @@ toolchain {
# Use "-std=c++11" for nvcc. For consistency, force both the host compiler
# and the device compiler to use "-std=c++11".
cxx_flag: "-std=c++11"
+ cxx_flag: "-D_MWAITXINTRIN_H_INCLUDED"
+ cxx_flag: "-D_FORCE_INLINES"
@justbuchanan
justbuchanan / cudnn-PKGBUILD
Created October 16, 2016 01:51
Arch Linux PKGBUILD for cudnn 5.1.5 for cuda 8.0
# Modified version of the "cudnn" PKGBUILD on the AUR
# Original Author: Benjamin Chrétien <chretien dot b +aur at gmail dot com>
# Modified by Justin Buchanan <justbuchanan at gmail dot com> on 10/15/2016 to use latest version from nvidia
pkgname=cudnn
pkgver=5.1.5
pkgrel=1
pkgdesc="NVIDIA CUDA Deep Neural Network library"
arch=('x86_64')
url="https://developer.nvidia.com/cuDNN"
license=('proprietary')
@justbuchanan
justbuchanan / .gitignore
Last active October 4, 2016 15:50
cpp-channel test
main
cpp-channel