Skip to content

Instantly share code, notes, and snippets.

View sonOfRa's full-sized avatar

Simon Levermann sonOfRa

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="citest.ExampleUnitTest" tests="2" skipped="0" failures="0" errors="0" timestamp="2020-04-07T11:37:50" hostname="odin-linux" time="0.001">
<properties/>
<testcase name="addition_isCorrect" classname="citest.ExampleUnitTest" time="0.001"/>
<testcase name="anotherTest" classname=citest.ExampleUnitTest" time="0.002"/>
<system-out><![CDATA[]]></system-out>
<system-err><![CDATA[]]></system-err>
</testsuite>
image: docker:19.03.8
services:
- docker:19.03.8-dind
stages:
- sdk
- tools
before_script:
[INFO] --- animal-sniffer-maven-plugin:1.17:check (signature-check) @ surefire-extensions-api ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java17:1.0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Apache Maven Surefire 3.0.0-SNAPSHOT:
[INFO]
[INFO] Apache Maven Surefire .............................. SUCCESS [ 1.209 s]
[INFO] SureFire Logger API ................................ SUCCESS [ 0.545 s]
[INFO] SureFire API ....................................... SUCCESS [ 0.483 s]
[INFO] Surefire Extensions API ............................ FAILURE [ 0.247 s]
[INFO] SureFire Booter .................................... SKIPPED
2020/03/05 17:07:16 [info] 2012343#2012343: *92 deleteStream, client: ::ffff:127.0.0.1, server: [::]:1935
2020/03/05 17:07:16 [info] 2012343#2012343: *93 deleteStream, client: ::ffff:127.0.0.1, server: [::]:1935
2020/03/05 17:07:16 [info] 2012343#2012343: *91 deleteStream, client: ::ffff:127.0.0.1, server: [::]:1935
2020/03/05 17:07:16 [info] 2012343#2012343: *92 disconnect, client: ::ffff:127.0.0.1, server: [::]:1935
2020/03/05 17:07:16 [info] 2012343#2012343: *92 deleteStream, client: ::ffff:127.0.0.1, server: [::]:1935
2020/03/05 17:07:16 [info] 2012343#2012343: *93 disconnect, client: ::ffff:127.0.0.1, server: [::]:1935
2020/03/05 17:07:16 [info] 2012343#2012343: *93 deleteStream, client: ::ffff:127.0.0.1, server: [::]:1935
2020/03/05 17:07:16 [info] 2012343#2012343: *91 disconnect, client: ::ffff:127.0.0.1, server: [::]:1935
2020/03/05 17:07:16 [info] 2012343#2012343: *91 deleteStream, client: ::ffff:127.0.0.1, server: [::]:1935
2020/03/05 17:07:16 [notice] 2012343#2012343: signal 17 (SIGCHLD) received f
user nginx nginx;
worker_processes 1;
error_log /var/log/nginx/error_log info;
events {
worker_connections 1024;
use epoll;
}
public void execute() {
File srcFile = new File(this.srcPath);
File destFile = new File(this.destPath);
try (InputStream inputStream = new FileInputStream(srcFile);
OutputStream outputStream = new FileOutputStream(destFile)){​
byte[] buffer = new byte[8192];
int length = 0;
while ((length = inputStream.read(buffer)) > 0) {
outputStream.write(buffer, 0, length);
}
eix-sync
* Running emerge --sync
>>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
* Using keys from /usr/share/openpgp-keys/gentoo-release.asc
* Refreshing keys via WKD ... [ ok ]
Do you want to sync your ebuild repository with the mirror at
rsync://[2a01:90:200:10::1a]/gentoo-portage? [Yes/No] y
>>> Starting rsync with rsync://[2a01:90:200:10::1a]/gentoo-portage...
Welcome to starling.gentoo.org / rsync.gentoo.org
import java.security.SecureRandom;
class Birthday {
public static final int NUM_BITS = 8;
public static final int MAX_ID = (1 << NUM_BITS);
private static final SecureRandom random = new SecureRandom();
public static void main(String[] args) {
// 0.001 = 0.1%, 1 = 100%
double targetProbability = 0.001d;
import React from 'react';
import {HashRouter as Router, Route, Switch, NavLink as RNavLink} from "react-router-dom";
import {AllUsers} from "./User/AllUsers";
import {Container, Navbar, NavbarBrand, Nav, NavItem, NavLink} from "reactstrap";
class Index extends React.Component {
render() {
return <h2>Home</h2>;
}
}
#include <string>
#include <fstream>
#include <sstream>
#include <limits>
#include <iterator>
#include <tuple>
#include <iostream>
#include "ppm.h"
#include "util.h"