Skip to content

Instantly share code, notes, and snippets.

View sonOfRa's full-sized avatar

Simon Levermann sonOfRa

View GitHub Profile
@sonOfRa
sonOfRa / $ emerge --info '=dev-rubyrdoc-4.3.0::gentoo';
Created April 27, 2018 09:59
$ emerge --info '=dev-ruby/rdoc-4.3.0::gentoo';
$ emerge --info '=dev-ruby/rdoc-4.3.0::gentoo'
Portage 2.3.31 (python 3.5.5-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-7.3.0, glibc-2.25-r11, 4.14.36-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-4.14.36-gentoo-x86_64-Intel-R-_Core-TM-_i7-4771_CPU_@_3.50GHz-with-gentoo-2.4.1
KiB Mem: 16365704 total, 5611416 free
KiB Swap: 16777212 total, 16777212 free
Head commit of repository gentoo: f30703f984eeafbaa5bd11519f61381e3f5845e5
@sonOfRa
sonOfRa / $ emerge -pqv --ask=n '=dev-rubyrdoc-4.3.0::gentoo';
Created April 27, 2018 09:59
$ emerge -pqv --ask=n '=dev-ruby/rdoc-4.3.0::gentoo';
$ emerge -pqv --ask=n '=dev-ruby/rdoc-4.3.0::gentoo'
[ebuild R ] dev-ruby/rdoc-4.3.0 USE="-doc {-test}" RUBY_TARGETS="ruby23 (-ruby22%)"
@sonOfRa
sonOfRa / $ emerge -pqv --ask=no '=dev-rubyrdoc-4.3.0::gentoo';
Created April 27, 2018 09:58
$ emerge -pqv --ask=no '=dev-ruby/rdoc-4.3.0::gentoo';
$ emerge -pqv --ask=no '=dev-ruby/rdoc-4.3.0::gentoo'
usage: emerge [--search] [--unmerge] [--version] [--prune] [--config]
[--check-news] [--moo] [--clean] [--regen] [--sync]
[--rage-clean] [--list-sets] [--depclean] [--metadata] [--help]
[--info] [--alphabetical] [--ask-enter-invalid] [--buildpkgonly]
[--changed-use] [--changelog] [--columns] [--debug] [--digest]
[--emptytree] [--verbose-conflicts] [--fetchonly]
[--fetch-all-uri] [--ignore-default-opts] [--noconfmem]
[--newrepo] [--newuse] [--nodeps] [--noreplace] [--nospinner]
[--oneshot] [--onlydeps] [--pretend] [--quiet-repo-display]
@sonOfRa
sonOfRa / vartmpportageportagedev-rubyrdoc-4.3.0tempbuild.log
Created April 27, 2018 09:56
/var/tmp/portage/portage/dev-ruby/rdoc-4.3.0/temp/build.log
 * Package: dev-ruby/rdoc-4.3.0
 * Repository: gentoo
 * Maintainer: [email protected]
 * USE: abi_x86_64 amd64 elibc_glibc kernel_linux ruby_targets_ruby23 userland_GNU
 * FEATURES: installsources preserve-libs sandbox splitdebug userpriv usersandbox
>>> Unpacking source...
* Running unpack phase for all ...
* Unpacking .gem file... ...
 [ ok ]
* Uncompressing metadata ...
@sonOfRa
sonOfRa / LED.c
Created April 23, 2018 09:31
THIS IS NOT REAL LED; DO NOT USE
#include "LED128.h"
#include "string.h"
#include "immintrin.h"
#include "stdlib.h"
#define DEBUGMODE 0
#define ENABLE_AVX 1
#define MAX64 0xFFFFFFFFFFFFFFFF
#if DEBUGMODE
#include "stdio.h"
/* strip base64 from the string */
decoded = apr_palloc(r->pool, apr_base64_decode_len(in));
decodedlen = apr_base64_decode(decoded, in);
decoded[decodedlen] = '\0';
INFO: Analysed 37 targets (0 packages loaded).
INFO: Found 2 targets and 35 test targets...
FAIL: //c-toxcore/auto_tests:onion_test (see /home/simon/.cache/bazel/_bazel_simon/25c46794229cbae2b80cac19f155c85d/execroot/toktok/bazel-out/k8-fastbuild/testlogs/c-toxcore/auto_tests/onion_test/test.log)
INFO: From Testing //c-toxcore/auto_tests:onion_test:
==================== Test output for //c-toxcore/auto_tests:onion_test:
Running test suite: Onion
c-toxcore/auto_tests/onion_test.c:166: failed `(onion1 != nullptr) && (onion2 != nullptr)': Onion failed initializing.
================================================================================
FAIL: //c-toxcore/auto_tests:self_conference_title_change_test (see /home/simon/.cache/bazel/_bazel_simon/25c46794229cbae2b80cac19f155c85d/execroot/toktok/bazel-out/k8-fastbuild/testlogs/c-toxcore/auto_tests/self_conference_title_change_test/test.log)
INFO: From Testing //c-toxcore/auto_tests:self_conference_title_change_test:
INFO: Analysed 37 targets (0 packages loaded).
INFO: Found 2 targets and 35 test targets...
FAIL: //c-toxcore/auto_tests:selfname_change_conference_test (see /home/simon/.cache/bazel/_bazel_simon/25c46794229cbae2b80cac19f155c85d/execroot/toktok/bazel-out/k8-fastbuild/testlogs/c-toxcore/auto_tests/selfname_change_conference_test/test.log)
INFO: From Testing //c-toxcore/auto_tests:selfname_change_conference_test:
==================== Test output for //c-toxcore/auto_tests:selfname_change_conference_test:
error: name was not changed in callback. exiting.
================================================================================
FAIL: //c-toxcore/auto_tests:self_conference_title_change_test (see /home/simon/.cache/bazel/_bazel_simon/25c46794229cbae2b80cac19f155c85d/execroot/toktok/bazel-out/k8-fastbuild/testlogs/c-toxcore/auto_tests/self_conference_title_change_test/test.log)
INFO: From Testing //c-toxcore/auto_tests:self_conference_title_change_test:
==================== Test output for //c-toxcore/auto_te
package de.slevermann.pwhash.crypt;
import org.testng.annotations.DataProvider;
public class Sha256CryptProvider {
@DataProvider
public Object[][] externalHashes() {
return new Object[][] {
{"asdf", "asdf"},
/**
* Encode the given bytes as a b64 string
*
* @param data the data to encode
* @return the encoded String
*/
public static String encode(byte[] data) {
if (data.length % 3 != 0) {
throw new IllegalArgumentException("Input length not divisible by 3");
}