Skip to content

Instantly share code, notes, and snippets.

View nico202's full-sized avatar

Nicolò Balzarotti nico202

View GitHub Profile
@nico202
nico202 / default.nix
Created September 26, 2016 14:05
gazebo-yarp-plugins
{ stdenv, fetchFromGitHub, cmake, pkgconfig
, ogre, ignition, tinyxml, gazeboSimulator
, freeimage, tbb, yarp
}:
stdenv.mkDerivation rec {
name = "gazebo-yarp-plugins-${version}";
version = "0.1.2";
src = fetchFromGitHub {
@nico202
nico202 / calibre log
Created September 12, 2016 11:47
calibre log
test_apsw (calibre.test_build.BuildTest) ... test_apsw (calibre.test_build.BuildTest) ... okok [0.02 s] [0.02 s]
test_certgen (calibre.test_build.BuildTest)test_certgen (calibre.test_build.BuildTest) ... ... okok [0.03 s] [0.03 s]
test_dbus (calibre.test_build.BuildTest)test_dbus (calibre.test_build.BuildTest) ... ... okok [0.007 s]
[0.007 s]
test_dlls (calibre.test_build.BuildTest)test_dlls (calibre.test_build.BuildTest) ... ... skipped u'DLL loading needs testing only on windows (non-continuous integration)'skipped u'DLL loading needs testing only on windows (non-continuous integration)' [5e-05 s] [5e-05 s]
test_executables (calibre.test_build.BuildTest)test_executables (calibre.test_build.BuildTest) ... ... skipped u'Only makes sense to test executables in frozen builds'skipped u'Only makes sense to test executables in frozen builds' [5e-05 s] [5e-05 s]
@nico202
nico202 / org-reveal-animate.js
Last active August 30, 2016 19:39
Enable animate-css in org-mode ox-reveal
// Animate.css integration with org-mode reaveal-js.
// Add: animate-animation to the frag
// like: #+ATTR_REVEAL: :frag animate-bounce
// include this js with: #+REVEAL_EXTRA_JS: {src: './org-reveal-animate.js'}
function checkanimate(el) {
var splitted = el.split("-");
if (splitted[0] == "animate") {
return splitted[1];
}
return false;
@nico202
nico202 / disable-yarpfs.patch
Last active August 28, 2016 22:14
libyarpc patch
--- /src/CMakeLists.txt 2016-08-28 21:08:36.947222543 +0200
+++ /tmp/CMakeLists.txt 2016-08-28 21:10:19.461430271 +0200
@@ -69,7 +69,7 @@
if(YARP_COMPILE_UNMAINTAINED)
add_subdirectory(libyarpc)
add_subdirectory(libyarpcxx)
- if(YARP_COMPILE_EXECUTABLES)
- add_subdirectory(yarpfs)
- endif()
+# if(YARP_COMPILE_EXECUTABLES)
@nico202
nico202 / keybase.md
Created August 25, 2016 19:14
keybase.md

Keybase proof

I hereby claim:

  • I am nico202 on github.
  • I am nixo (https://keybase.io/nixo) on keybase.
  • I have a public key ASAWH6aVBEJNo2rsr46qJtsQMh16ofw6NjP9sfobcc6BpAo

To claim this, I am signing this object:

@nico202
nico202 / player-control
Last active August 1, 2016 10:04 — forked from exic/player-control
Control a player implementing MPRIS D-Bus Specification v2.2
#!/bin/sh
name="$1"
shift
PATHS="org.mpris.MediaPlayer2.$name /org/mpris/MediaPlayer2"
DBUS_SEND="dbus-send --type=method_call --dest=$PATHS"
RC="$DBUS_SEND org.mpris.MediaPlayer2.Player"
if [ "$@" = "prev" ]; then
$RC.Prev
elif [ "$@" = "stop" ]; then
$RC.Stop
@nico202
nico202 / drumgz.log
Created May 15, 2016 23:16
Crash DG
[nixo@asus_nixos:~/DrumgGZ/MuldjordKit2]$ drumgizmo -i jackmidi -I midimap=Midimap.xml -o jackaudio MuldjordKit.xml
2016-05-16 01:11:23 debug:drumgizmo:run:248 Debug enabled.
Cannot lock down 207603658 byte memory area (Cannot allocate memory)
Cannot lock down 82274202 byte memory area (Cannot allocate memory)
This system has no accessible HPET device (Permission denied)
Using kitfile: MuldjordKit.xml
2016-05-16 01:11:23 debug:thread:run:40 Thread::run()
2016-05-16 01:11:23 debug:thread:thread_run:64 Thread run
2016-05-16 01:11:23 debug:thread:run:40 Thread::run()
@nico202
nico202 / julia.log
Created April 30, 2016 09:14
julia-git error on NixOS
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.5.0-dev
_/ |\__'_|_|_|\__'_| |
|__/ | x86_64-unknown-linux-gnu
julia> Pkg.add("JSON")
INFO: Initializing package repository /home/nixo/.julia/v0.5
@nico202
nico202 / yarp-python-default.nix
Last active April 14, 2016 15:09
What's the right way to do this?
{ stdenv, fetchFromGitHub, ace, cmake, python, swig, yarp
}:
stdenv.mkDerivation rec {
name = "yarp-bindings-${version}";
version = yarp.version;
src = yarp.src;
preConfigure = "cd bindings";
{ stdenv, fetchFromGitHub, pkgconfig, cmake
}:
stdenv.mkDerivation rec {
name = "yarp-${version}";
version = "2.3.64";
src = fetchFromGitHub {
owner = "robotology";
repo = "yarp";
rev = "v2.3.64";