Skip to content

Instantly share code, notes, and snippets.

@Axxon
Axxon / gist:c150339eba06dd5cd8ec8b9e2904e40e
Created February 19, 2021 21:01
Fix append_path message (add fn in /etc/profile.d/perlbin.sh)
append_path()
{
case ":$PATH:" in
*:"$1":*)
;;
*)
PATH="${PATH:+$PATH:}$1"
esac
}
Content here soon.
@Axxon
Axxon / TestCase1Test.php
Created February 21, 2016 13:38
A asynchronous command & event bus with bernard
<?php
namespace AppBundle\Tests;
use SimpleBus\Message\Bus\MessageBus;
use SimpleBus\Message\Recorder\PublicMessageRecorder;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\ConsoleOutput;
@Axxon
Axxon / localhost.log
Created May 17, 2015 10:14
ember-jstree-cli issue
DEBUG: -------------------------------
DEBUG: Ember : 1.12.0
DEBUG: Ember Data : 1.0.0-beta.17
DEBUG: jQuery : 1.11.3
DEBUG: -------------------------------
DEPRECATION: `lookupFactory` was called on a Registry. The `initializer` API no longer receives a container, and you should use an `instanceInitializer` to look up objects from the container. See http://emberjs.com/guides/deprecations#toc_deprecate-access-to-instances-in-initializers for more details.
at Object.Registry.lookupFactory (http://localhost:4200/assets/vendor.js:12183:26)
at ember$data$lib$initializers$store$$initializeStore (http://localhost:4200/assets/vendor.js:70540:48)
at Object.ember$data$lib$setup$container$$setupContainer [as initialize] (http://localhost:4200/assets/vendor.js:70850:7)
at http://localhost:4200/assets/vendor.js:14662:23
@Axxon
Axxon / gist:5be3e23bdf97b73a00f7
Last active August 29, 2015 14:14
SaltStack + VirtualBox + Vagrant issue

Here my problem, when i try to do:

sudo scp minion.p* me@192.168.56.1:~/saltvms

like in the tutorial, i've this issue (but tried with a empty file)

vagrant@master:~$ sudo scp filetext axxon@192.168.56.1:~/
ssh: connect to host 192.168.56.1 port 22: Connection refused
lost connection
// {{#compare unicorns ponies operator="<"}}
// I knew it, unicorns are just low-quality ponies!
// {{/compare}}
//
// (defaults to == if operator omitted)
//
// {{equal unicorns ponies }}
// That's amazing, unicorns are actually undercover ponies
// {{/equal}}
// (from http://doginthehat.com.au/2012/02/comparison-block-helper-for-handlebars-templates/)
@Axxon
Axxon / gist:10625285
Created April 14, 2014 07:48
SuperCollider debian built crash
[ 26%] Building CXX object server/supernova/CMakeFiles/libsupernova.dir/sc/sc_osc_handler.cpp.o
In file included from /home/axxon/SoftSrc/supercollider/external_libraries/boost/boost/intrusive/detail/utilities.hpp:17:0,
from /home/axxon/SoftSrc/supercollider/external_libraries/boost/boost/intrusive/bs_set_hook.hpp:18,
from /home/axxon/SoftSrc/supercollider/external_libraries/boost/boost/intrusive/treap.hpp:25,
from /home/axxon/SoftSrc/supercollider/external_libraries/boost/boost/intrusive/treap_set.hpp:17,
from /home/axxon/SoftSrc/supercollider/server/supernova/sc/sc_osc_handler.hpp:32,
from /home/axxon/SoftSrc/supercollider/server/supernova/sc/sc_osc_handler.cpp:25:
/home/axxon/SoftSrc/supercollider/external_libraries/boost/boost/intrusive/pointer_traits.hpp: In instantiation of ‘static T* boost::intrusive::pointer_traits<T*>::static_cast_from(U*) [with U = const void; T = boost::intrusive::bhtraits<nova::abstract_group, boo
@Axxon
Axxon / gist:10625135
Created April 14, 2014 07:45
supercollider debian built crash
root@debian:/home/axxon/SoftSrc/supercollider/build# make install
[ 1%] Built target boost_filesystem
[ 3%] Built target boost_program_options
[ 4%] Built target boost_system
[ 5%] Built target boost_thread
[ 5%] Built target oscpack
[ 6%] Built target tlsf
[ 6%] Built target BinaryOpUGens
[ 6%] Built target BinaryOpUGens_supernova
[ 6%] Built target ChaosUGens