Skip to content

Instantly share code, notes, and snippets.

View yannick's full-sized avatar
🏗️

Yannick Koechlin yannick

🏗️
View GitHub Profile
@yannick
yannick / gist:4c2427b13390296f5978
Created April 9, 2015 09:11
salt-cloud profile
small:
provider: aws-frankfurt
image: ami-m1am1
size: t2.small
ssh_username: root
script: bootstrap-salt
script_args: -F -D -L -A saltmaster.my.domain -i
tag: {'Environment': 'production', 'Role': 'generic'}
sync_after_install: all
block_device_mappings:
import std.stdio;
import vibe.http.client;
import vibe.stream.operations : readAllUTF8;
import vibe.http.common : HTTPMethod;
import vibe.core.concurrency;
import vibe.core.core;
import std.datetime;
shared static Task dbTask;
require "json"
File.each_line("/dev/stdin") do |line|
pull = JSON::PullParser.new(line)
pull.on_key!("meta") do
pull.on_key!("timestamp") do
puts pull.read_int
end
end
end
import std.stdio;
//import std.format;
import std.container.rbtree : RedBlackTree;
struct MyStruct
{
long id;
alias id this;
import vibe.d;
import std.format : format;
import core.atomic : atomicOp;
import std.stdio;
shared int serial;
shared shared(Log)*[int] logstore;
shared struct Log
module x;
import vibe.d;
import std.format : format;
import core.atomic : atomicOp;
import std.stdio;
import routes;
Process: bug-shared [24451]
Path: /Users/USER/*/bug-shared
Identifier: bug-shared
Version: 0
Code Type: X86-64 (Native)
Parent Process: dub [24431]
Responsible: Terminal [498]
User ID: 501
Date/Time: 2015-04-27 17:27:37.344 +0200
import std.stdio;
import std.container.dlist;
void main()
{
auto dl = DList!string();
dl.insertBack("eins");
dl.insertBack("zwei");
video_driver = "gl"
audio_driver = "pulse"
phoenix_last_rom = "/home/infoscreen/roms/Bust-A-Move '99.z64"
input_max_users = "16"
input_axis_threshold = "0.530000"
video_gpu_record = "false"
input_remap_binds_enable = "true"
netplay_client_swap_input = "true"
input_descriptor_label_show = "true"
autoconfig_descriptor_label_show = "true"
==11723== Memcheck, a memory error detector
==11723== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==11723== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==11723== Command: ./yadmp
==11723== Parent PID: 587
==11723==
--11723--
--11723-- Valgrind options:
--11723-- --leak-check=full
--11723-- -v