Skip to content

Instantly share code, notes, and snippets.

@epk
epk / Failure_1.log
Created February 18, 2020 23:04
Krane Test failures on containerd
2020-02-17T12:31:43.8167153Z Failure:
2020-02-17T12:31:43.8167414Z KraneDeployTest#test_unrunnable_container_on_deployment_pod_fails_quickly [/home/runner/work/krane/krane/test/integration/krane_deploy_test.rb:467]
2020-02-17T12:31:43.8168991Z Minitest::Assertion: '(?-mix:container-cannot-run: Failed to start \(exit 127\): .*\/some\/bad\/path)' not found in the expected sequence in the following logs:
2020-02-17T12:31:43.8169995Z [INFO][2020-02-17 12:23:36 +0000]
2020-02-17T12:31:43.8171240Z [INFO][2020-02-17 12:23:36 +0000] ------------------------------------Phase 1: Initializing deploy------------------------------------
2020-02-17T12:31:43.8171795Z [INFO][2020-02-17 12:23:37 +0000] All required parameters and files are present
2020-02-17T12:31:43.8176027Z [INFO][2020-02-17 12:23:37 +0000] Discovering resources:
2020-02-17T12:31:43.8179263Z [INFO][2020-02-17 12:23:37 +0000] - Deployment/cannot-run
2020-02-17T12:31:43.8179851Z [INFO][2020-02-17 12:23:37 +0000]
2020-02-17T12:31:43.8182339Z [INFO][2020-02
@epk
epk / fetch.rb
Last active November 24, 2019 17:35
# frozen_string_literal: true
require 'net/http'
require 'fileutils'
require 'tempfile'
require 'open3'
require 'set'
require 'parallel'
class Panopto
@epk
epk / fortnite.gif
Created November 7, 2019 01:29 — forked from xie/fortnite.gif
fortnite.gif
Measure Mode: wall_time
Thread ID: 70150841892940
Fiber ID: 70150837678440
Total: 5.210800
Sort by: self_time
%self total self wait child calls name
90.62 4.722 4.722 0.000 0.000 300 IO#wait_readable
0.32 0.172 0.016 0.000 0.155 5600 *Hash#each
0.25 0.163 0.013 0.000 0.149 22600 *Class#new
Measure Mode: wall_time
Thread ID: 70247650631740
Fiber ID: 70247663792720
Total: 0.051162
Sort by: self_time
%self total self wait child calls name
90.29 0.046 0.046 0.000 0.000 3 IO#wait_readable
0.28 0.001 0.000 0.000 0.001 226 *Class#new
0.21 0.001 0.000 0.000 0.001 56 *Hash#each
Measure Mode: wall_time
Thread ID: 70352957022300
Fiber ID: 70352956880060
Total: 0.012253
Sort by: self_time
%self total self wait child calls name
28.87 0.004 0.004 0.000 0.000 1 IO#wait_readable
12.96 0.002 0.002 0.000 0.000 2 *Kernel#require
1.69 0.012 0.000 0.000 0.012 1 <Module::MockClient>#get_shop_id
@epk
epk / itme.gif
Created July 4, 2019 02:52 — forked from ewdurbin/itme.gif
itme.gif
false
Int!
true
true
false
Int!
false
ID!
true
//---------------------------------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <iostream>
//---------------------------------------------------------------------------------
static const int WORK_SIZE = 200000000;
static const int BLK_SIZE = 256;
using namespace std;
@epk
epk / pi-hole.sh
Last active September 26, 2018 20:33
#!/bin/bash
mkdir -p /home/pi/pi-hole/pihole &&
mkdir -p /home/pi/pi-hole/dnsmasq.d &&
cd /home/pi/pi-hole &&
docker run -d \
--name pihole \
--restart=always \
--dns=1.1.1.1 \
--dns=8.8.8.8 \
-p 53:53/tcp -p 53:53/udp -p 80:80 -p 443:443 \