Skip to content

Instantly share code, notes, and snippets.

View hpoul's full-sized avatar
🚴

Herbert Poul hpoul

🚴
View GitHub Profile
@hpoul
hpoul / designer.html
Created June 25, 2014 19:18
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-item/paper-item.html">
<link rel="import" href="../paper-input/paper-input.html">
<polymer-element name="my-element">
@hpoul
hpoul / gist:b7ab5b58c32c7dfd463d
Created August 21, 2014 15:35
NuProcessKillProblem.java
import java.util.concurrent.TimeUnit;
import com.zaxxer.nuprocess.NuAbstractProcessHandler;
import com.zaxxer.nuprocess.NuProcess;
import com.zaxxer.nuprocess.NuProcessBuilder;
public class TestSigAbrtProcess {
public static void main(String[] args) {
/*
@hpoul
hpoul / worktrail_to_gcal.py
Created August 31, 2014 20:45
Convert WorkTrail work entries CSV files into Google Calendar CSV files / Get your Time Tracking results from https://worktrail.net/ to Google Calendar.
#!/usr/bin/python
# Converts work entries as exported by WorkTrail into a CSV format readable
# by Google Calendar.
#
# WorkTrail format as used in https://worktrail.net/
# -> Reports and Administration -> Work Reports -> Download as CSV
#
# Google Calendar format as described at
# https://support.google.com/calendar/answer/45656?hl=en
@hpoul
hpoul / NuProcessProblem.java
Created September 3, 2014 16:12
NuProcess - Possible race condition on linux with fast exiting processes
package playground;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.ExecutionException;
@hpoul
hpoul / fiddle.html
Last active August 29, 2015 14:26
Photoshop Asset Generator Layer name generator for android assets http://jsfiddle.net/gh/gist/jquery/edge/4acadb7a1c5e6fbb10e8/
<p>Enter for example: 24x24 test.png</p>
<input type="text" name="basesize" id="basesize" />
<div class="output">
</div>

Keybase proof

I hereby claim:

  • I am hpoul on github.
  • I am hpoul (https://keybase.io/hpoul) on keybase.
  • I have a public key whose fingerprint is 391A D710 FA53 5534 975D 609A 3F55 DC43 BC36 16F4

To claim this, I am signing this object:

image: google/dart:1.22.0
stages:
- build
- deploy
# before_script:
# - apt-get update -qy
# - apt-get install unzip
# - wget https://storage.googleapis.com/dart-archive/channels/stable/release/30107/sdk/dartsdk-linux-x64-release.zip
@hpoul
hpoul / .gitignore
Last active June 15, 2020 11:50
Scratchbook for my favorite .gitignore
# https://gist.github.com/hpoul/b78f7a1b3cde988f3ce4d12e954367eb
#
# IDEA: Allow some configuration, which is shared across users.
/.idea/*
!.idea/runConfigurations
!.idea/runConfigurations/*
!.idea/vcs.xml
!.idea/dictionaries
!.idea/dictionaries/*
@hpoul
hpoul / daemon.log
Last active November 7, 2018 16:44
logs for https://github.com/moby/moby/issues/38092 //// Unresponsive container, all commands stuck (kill, logs, exec, etc.)
Oct 26 17:19:31 docker-host dockerd[473]: time="2018-10-26T17:19:31.210520830+02:00" level=warning msg="Health check for container 74b12161d2289ada6ef5795a1c4bbbd8cf12e60da5be8905e391c4d0a21d6f9a error: context deadline exceeded"
Oct 26 17:20:09 docker-host dockerd[473]: time="2018-10-26T17:20:09.690872357+02:00" level=info msg="NetworkDB stats docker-host(a5c8ecf444a9) - netID:gozqkaobyvb7baliptnbkpnbz leaving:false netPeers:1 entries:5 Queue qLen:0 netMsg/s:0"
Oct 26 17:20:09 docker-host dockerd[473]: time="2018-10-26T17:20:09.690969642+02:00" level=info msg="NetworkDB stats docker-host(a5c8ecf444a9) - netID:pm4oxyhccs2jmbtdditxab8u2 leaving:false netPeers:1 entries:12 Queue qLen:0 netMsg/s:0"
Oct 26 17:20:09 docker-host dockerd[473]: time="2018-10-26T17:20:09.690998753+02:00" level=info msg="NetworkDB stats docker-host(a5c8ecf444a9) - netID:xa0t1054tkj02uewi9h7iyyrj leaving:false netPeers:1 entries:13 Queue qLen:0 netMsg/s:0"
Oct 26 17:20:09 docker-host dockerd[473]: time="2018-10-26T17:20:09.691023898+02: