Skip to content

Instantly share code, notes, and snippets.

I1127 12:59:00.056116 14130 main.go:189] ***************************
I1127 12:59:00.056149 14130 main.go:190] Args: [/usr/local/bin/runsc --debug --debug-log=/tmp/runsc/ --strace --log-packets --root /var/run/docker/runtime-runc/moby --log /run/containerd/io.containerd.runtime.v2.task/moby/f752f1cdc8c4dd00aefcbc55843da0adeacb13c07589d43f5c892b3a314cbed6/log.json --log-format json create --bundle /run/containerd/io.containerd.runtime.v2.task/moby/f752f1cdc8c4dd00aefcbc55843da0adeacb13c07589d43f5c892b3a314cbed6 --pid-file /run/containerd/io.containerd.runtime.v2.task/moby/f752f1cdc8c4dd00aefcbc55843da0adeacb13c07589d43f5c892b3a314cbed6/init.pid f752f1cdc8c4dd00aefcbc55843da0adeacb13c07589d43f5c892b3a314cbed6]
I1127 12:59:00.056157 14130 main.go:191] Version release-20231113.0
I1127 12:59:00.056161 14130 main.go:192] GOOS: linux
I1127 12:59:00.056164 14130 main.go:193] GOARCH: amd64
I1127 12:59:00.056168 14130 main.go:194] PID: 14130
I1127 12:59:00.056172 14130 main.go:195] UID: 0, GID: 0
I1127 12:
@danielnorberg
danielnorberg / gist:9a4e0efa9e4645a89ac9dce8efc0cc78
Created October 13, 2018 08:06
native-image@14def01 gson errors
mx native-image -jar /Users/dano/projects/test/target/test.jar -H:ReflectionConfigurationFiles=reflectionconfig-test.json -H:+JNI
[test:67342] classlist: 3,078.66 ms
[test:67342] (cap): 1,639.63 ms
[test:67342] setup: 3,441.42 ms
[test:67342] (typeflow): 6,085.94 ms
[test:67342] (objects): 7,689.07 ms
[test:67342] (features): 140.67 ms
[test:67342] analysis: 14,140.49 ms
[test:67342] universe: 2,003.61 ms
error: unsupported features in 28 methods
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class Main {
public static void main(String[] args) throws IOException {
final HttpURLConnection connection = (HttpURLConnection) new URL("http://www.google.com").openConnection();
System.err.println(connection.getRequestMethod() + " " + connection.getURL());
@danielnorberg
danielnorberg / acl.yml
Last active June 11, 2018 05:06
Digdag secrets
# System secret ACL policy
---
acl:
operators:
# TD
td:
secrets:
- td.*
td_load:
secrets:
@danielnorberg
danielnorberg / logs
Created June 28, 2016 04:15
spotify http timeout
04:14:07.664 D [gaia_manager.cpp:988 ] GAIA: current state ID updated to 1467087248092
04:14:07.667 I [dns.cpp:62 ] resolved audio-ak.spotify.com.edgesuite.net to 72.246.190.152
04:14:07.667 I [dns.cpp:62 ] resolved audio-ak.spotify.com.edgesuite.net to 72.246.190.97
04:14:10.673 E [cdn_chunk_downloader.cpp:199 ] CDN failure 5095424->5636096. Error: http_error_timeout (12). Http: 0.
04:14:10.674 I [cdn_chunk_downloader.cpp:80 ] Requesting data (5095424 -> 5636096) from CDN url: http://audio-fa.spotify.com/audio/7ed36cfd99c04c2323cde5a978d5723b469104a7?1467090847_AMSVwPk/fFGT+lBxO/XMJpSz/EUUbNAozI5RDfA6VaE=
04:14:12.822 I [cdn_chunk_downloader.cpp:219 ] Request for file c184910c896f832707b123153bad6253940e402d complete (code: success (0))
04:14:20.755 E [cdn_chunk_downloader.cpp:199 ] CDN failure 5095424->5636096. Error: http_error_timeout (12). Http: 206.
04:14:20.755 I [ap_chunk_downloader.cpp:67 ] Requesting data (5095424 -> 5636096) f
@danielnorberg
danielnorberg / github_org_clone_all.rb
Last active March 23, 2016 10:55 — forked from tagomoris/github_org_clone_all.rb
Script to clone all repositories of specified organization
#!/usr/bin/env ruby
# brew install parallel
# gem i github_api
## Setting -> Applications -> Personal Access Tokens -> Generate new token
# Selected scopes:
# * repo
# * public_repo
# * repo:status
Full thread dump
"jersey-client-async-executor-27@6501" prio=5 tid=0x106 nid=NA waiting
java.lang.Thread.State: WAITING
at sun.misc.Unsafe.park(Unsafe.java:-1)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
at org.apache.http.pool.PoolEntryFuture.await(PoolEntryFuture.java:133)
at org.apache.http.pool.AbstractConnPool.getPoolEntryBlocking(AbstractConnPool.java:282)
at org.apache.http.pool.AbstractConnPool.access$000(AbstractConnPool.java:64)
@danielnorberg
danielnorberg / gist:191de475a8a468b8b183
Last active August 29, 2015 14:08
Java 8 - AutoMatter - static builder() method
@AutoMatter
interface Foobar {
// ...
static FoobarBuilder builder() {
return new FoobarBuilder();
}
}
Foobar foobar = new FoobarBuilder()
.someFooThing(17)
.aBarField("hello world")
.build();
String json = mapper.writeValueAsString(foobar);
out.println(json);
#!/bin/bash
cat /etc/resolv.conf | boot2docker ssh "cat > /etc/resolv.conf"