View gist:5582882
sed -i -e "$( ssh root@vimageoslive 2>&1 | grep Offending | sed 's/.*:\([0-9]\+\).*/\1/' )d" .ssh/known_hosts
View gist:5584415
plane_ = createEntity("PLANE");
plane_->getSubEntity(0)->setMaterialName("Background");
plane_->setRenderQueueGroup(RENDER_QUEUE_BACKGROUND);
node_ = rootNode()->createChildSceneNode();
node_->attachObject(plane_);
node_->lookAt(Vector3::UNIT_Y, Ogre::Node::TS_WORLD, Ogre::Vector3::UNIT_Z);
View gist:5584901
for i in *; do ( echo "============ $i "; cd $i && git pull && cd Release && make -j8 all ); done
View gist:5590393
## Disable udev2 name scheme for network interfaces
ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules
View gist:5590505
newCamera->synchroniseBaseSettingsWith(oldCamera);
View gist:5597748
function ssh-known-hosts-rm { sed -i -e "$( ssh $@ -o StrictHostKeyChecking 2>&1 | grep Offending | sed 's/.*:\([0-9]\+\).*/\1/' )d" .ssh/known_hosts }
View gist:5748800
void parseData(const char* dataStr, unsigned char* data, int* length) {
::memset(data, 0, sizeof(data));
const char* ds = dataStr;
unsigned char* d = data;
char byteStr[3] = { 0 };
while (true) {
if (ds[0] == ' ') {
++ds;
}
if (ds[0] == 0 || ds[1] == 0) {
View serialecho.cpp
/*
* main.cpp
*
* Created on: Jun 10, 2013
* Author: pez
*/
#include <termios.h>
#include <string.h>
#include <unistd.h>
View gist:5774455
$: << File.expand_path("../lib", File.dirname(__FILE__))
View jquery.js
(function($) {
$(document).ready(function() {
});
})(jQuery)