This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; entry := [] [[:+, 10, [:hello, 33]]] | |
LDC 10 | |
LDC 33 | |
LDF 10 | |
AP 1 ; hello | |
ADD | |
RTN | |
; __let1 := [:f] [[:+, :f, :foo]] | |
LD 0 0 ; f | |
LD 1 0 ; foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use-fixtures :each (rule-fixture spotify.rules.foo)) | |
(deftest test-monitoring-hooks | |
(testing "Critical hooks should notify through e-mail and pagerduty" | |
(send-events | |
{:event-base {:host :host1 :tags ["hook"] :service "some-service"}} | |
[{:time 0 :state "critical"} | |
{:time 10 :state "ok"} | |
{:time 20 :state "ok"}]) | |
(check-externals |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
lookup_map={ | |
'A': ".-", | |
'B': "-...", | |
'C': "-.-.", | |
'D': "-..", | |
'E': ".", | |
'F': "..-.", | |
'G': "--.", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILE=$1 | |
[[ ! -f $FILE ]] && exit 1 | |
function create_args() { | |
while [[ $# -gt 1 ]]; do | |
shift | |
echo -n " \"$1\"" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
from celery import Celery | |
from kombu import Exchange | |
from kombu import Queue | |
# modify this to select which routing_key to consume. | |
SITE = 'sto' | |
celery = Celery() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdlib> | |
#include <deque> | |
#include <iostream> | |
#include <string> | |
#include <boost/array.hpp> | |
#include <boost/bind.hpp> | |
#include <boost/asio.hpp> | |
#include <boost/thread.hpp> | |
using boost::asio::ip::tcp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- code for love.network can be found at https://bitbucket.org/udoprog/love-network | |
function socketError(s, reason) | |
print("socket error: " .. reason) | |
end | |
function socketRead(s, data) | |
print("socket read: " .. data) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
Some packages could not be installed. This may mean that you have | |
requested an impossible situation or if you are using the unstable | |
distribution that some required packages have not yet been created | |
or been moved out of Incoming. | |
The following information may help to resolve the situation: | |
The following packages have unmet dependencies: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Hook suitable for maintaining hiera directories. | |
# | |
# --- Command line | |
refname="$1" | |
oldrev="$2" | |
newrev="$3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import itertools | |
import bencode | |
import glob | |
import sys | |
import os | |
import shutil | |
OlderNewer