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
{ lib, fetchFromGitHub, buildGoModule }: | |
buildGoModule rec { | |
pname = "containerlab"; | |
version = "0.22.0"; | |
src = fetchFromGitHub { | |
owner = "srl-labs"; | |
repo = "containerlab"; | |
rev = "v${version}"; |
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
{ lib, fetchFromGithub, buildGoModule }: | |
buildGoModule rec { | |
pname = "containerlab"; | |
version = "0.22.0"; | |
src = fetchFromGithub { | |
owner = "srl-labs"; | |
repo = "containerlab"; | |
rev = "v${version}"; |
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
fn main() { | |
let args: Vec<String> = env::args().collect(); | |
let pkcs12 = make_pkcs12(&args[1], &args[2]); | |
let owned_root = args[3].to_string(); | |
let acceptor = TlsAcceptor::new(pkcs12).unwrap(); | |
let acceptor = Arc::new(acceptor); | |
let listener = TcpListener::bind("0.0.0.0:1965").unwrap(); |
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
Version: 1.2 | |
Source ID: 0 | |
Reserved: 0 | |
Project ID/GUID: '00000000-0000-0000-0000-000000000000' | |
System ID: 'PDAL' | |
Generating Software: 'PDAL 2.0.1 (Releas)' | |
File Creation Day/Year: 293/2019 | |
Header Byte Size 227 | |
Data Offset: 609 | |
Header Padding: 0 |
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
version: '2' | |
services: | |
postgres: | |
image: postgres:10 | |
volumes: | |
- postgresdata:/var/lib/postgresql/data | |
expose: | |
- "5432" | |
restart: always |
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
declare-option -hidden str tidal_tmp_dir | |
define-command -docstring %{Start the TidalCycles server} \ | |
tidal-start %{ | |
evaluate-commands %sh{ | |
dir=$(mktemp -d "${TMPDIR:-/tmp}"/kak-tidal.XXXXXXXX) | |
mkfifo ${dir}/stdin | |
mkfifo ${dir}/stdout | |
printf %s\\n "set-option buffer tidal_tmp_dir ${dir}" | |
} |
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
#![feature(conservative_impl_trait)] | |
#![feature(generators)] | |
#![feature(proc_macro)] | |
#![feature(try_from)] | |
#![recursion_limit = "1024"] | |
#[macro_use] | |
extern crate diesel; | |
//#[macro_use] | |
//extern crate diesel_codegen; |
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
impl Northship { | |
fn matrix_loop( | |
&self, | |
tokio_handle: &TokioHandle, | |
homeserver_url: Url, | |
username: String, | |
password: String, | |
) -> impl Future<Item = (), Error = ruma_client::Error> + 'static { | |
let client = ruma_client::Client::https(tokio_handle, homeserver_url, None).unwrap(); |
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
named!(date<&str, NaiveDateTime>, do_parse!( | |
y: digit >> | |
tag_s!("-") >> | |
m: digit >> | |
tag_s!("-") >> | |
d: digit >> | |
new_time: value!(NaiveTime::from_hms(0, 0, 0), do_parse( | |
alt!(tag_s!("T") | tag_s!(" ")) >> | |
time)) >> | |
(NaiveDateTime::new(NaiveDate::from_ymd(i32::from_str(y).unwrap(), u32::from_str(m).unwrap(), u32::from_str(d).unwrap()), new_time)) |
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
named!(date<&str, Date>, do_parse!( | |
y: digit() >> | |
tag_s!("-") >> | |
m: digit() >> | |
tag_s!("-") >> | |
d: digit() >> | |
eof!() >> | |
(Date { | |
year: from_str::<u16>(y), | |
month: from_str::<u8>(m), |
NewerOlder