Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0"?>
<root>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_Calculator</name>
<url type="file">/Applications/Calculator.app</url>
</vkopenurldef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_SHELL_date_pbcopy</name>
<url type="shell">
<![CDATA[ rosservice call /kill "{thrusters: True}" ]]>
@spaghetti-
spaghetti- / gist:44ee3be5dfb8c9dca05ea9e35465538a
Last active June 17, 2016 06:11
aws freebsd ami 10.2 uses ports/HEAD which is bad
fix it by editing `/etc/pkg/FreeBSD.conf` and do a s/latest/quarterly/
then recreate the db by `pkg upgrade -f pkg && pkg upgrade -f`
@spaghetti-
spaghetti- / ke.md
Created June 16, 2016 09:55
auto keyword on gentoo

especially if you're installing stuff from the gentoo haskell overlay you'll have to unmask tons of packages (take a look at the beginning of a standard haskell file if you don't know why)

if the emerge -pv of the package lists only the required packages to be keyworded then you can do

emerge -pv package 2&gt;&amp;1 | grep ^= | sudo tee -a /etc/portage/package.accept_keywords/package

@spaghetti-
spaghetti- / rcpp.cpp
Created June 15, 2016 08:26
rosccp c++14
class NodeHandle : public :: ros::NodeHandle
{
public:
template<class M>
::ros::Subscriber subscribe(
const std::string& topic,
uint32_t queue_size,
const std::function<void(const M&)>& cb,
const ::ros::VoidConstPtr& tracked_object = ::ros::VoidConstPtr(),
const ::ros::TransportHints& transport_hints = ::ros::TransportHints())
Who once were a bloom of wayside brides in the hawed house
And heard the lewd, wooed field flow to the coming frost,
The scurrying, furred small friars squeal in the dowse
Of day, in the thistle aisles, till the white owl crossed
$ tail -f /var/tmp/portage/dev-lisp/sbcl-1.3.5/temp/build.log
Doing 25 pending tests of 25 tests total.
SB-CONCURRENCY-TEST::FRLOCK.1 SB-CONCURRENCY-TEST::QUEUE.1
SB-CONCURRENCY-TEST::QUEUE.2 SB-CONCURRENCY-TEST::QUEUE.3
SB-CONCURRENCY-TEST::QUEUE.4 SB-CONCURRENCY-TEST::QUEUE.5
SB-CONCURRENCY-TEST::QUEUE.T.1 SB-CONCURRENCY-TEST::QUEUE.T.2
SB-CONCURRENCY-TEST::QUEUE.T.3 SB-CONCURRENCY-TEST::MAILBOX-TRIVIA.1
SB-CONCURRENCY-TEST::MAILBOX-TRIVIA.2 SB-CONCURRENCY-TEST::MAILBOX-TRIVIA.3
SB-CONCURRENCY-TEST::MAILBOX-TIMEOUTS
SB-CONCURRENCY-TEST::MAILBOX.SINGLE-PRODUCER-SINGLE-CONSUMER
find ./src/common_msgs -maxdepth 1 -not -path '*/\.*' -type d -printf "%f "
@spaghetti-
spaghetti- / gist:91c0dfc86a8c7940fc522fc492ba0add
Created April 1, 2016 11:34
the description for this gist
test
@spaghetti-
spaghetti- / file1.txt
Created April 1, 2016 10:48
the description for this gist
$input
@spaghetti-
spaghetti- / file1.txt
Created April 1, 2016 10:45
the description for this gist
String file contents