Skip to content

Instantly share code, notes, and snippets.

FROM golang:1.8-alpine
ADD . /go/src/hello-app
RUN go install hello-app
FROM alpine:latest
COPY --from=0 /go/bin/hello-app .
ENV PORT 8080
CMD ["./hello-app"]
May 04 15:20:37 scorpious kernel: [drm:gfx_v8_0_ring_test_ring [amdgpu]] *ERROR* amdgpu: ring 0 test failed (scratch(0xC040)=0xCAFEDEAD)
May 04 15:20:39 scorpious kernel: [drm:gfx_v8_0_kiq_resume [amdgpu]] *ERROR* KCQ enable failed (scratch(0xC040)=0xCAFEDEAD)
May 04 15:20:39 scorpious kernel: [drm] IP block:gfx_v8_0 is hung!
May 04 15:20:39 scorpious kernel: [drm] soft reset failed, will fallback to full reset!
May 04 15:20:39 scorpious kernel: [drm] dc_commit_streams: 0 streams
May 04 15:20:39 scorpious kernel: amdgpu 0000:09:00.0: GPU pci config reset
May 04 15:20:40 scorpious kernel: amdgpu 0000:09:00.0: GPU reset succeeded, trying to resume
May 04 15:20:40 scorpious kernel: [drm] PCIE GART of 256M enabled (table at 0x000000F400040000).
May 04 15:20:40 scorpious kernel: [drm:amdgpu_gpu_reset [amdgpu]] *ERROR* VRAM is lost!
May 04 15:20:40 scorpious kernel: amdgpu: [powerplay] DPM is already running
#! /bin/env python3
import sys
import subprocess
import re
'''
default route looks like the following:
#! /bin/bash
tiller_namespaces=$(kubectl get pod -l name=tiller --all-namespaces -o jsonpath='{.items[*].metadata.namespace}')
f
var PouchDB = require('pouchdb');
PouchDB.plugin(require('pouchdb-find'));
db = new PouchDB("test");
db.createIndex({
index: {
fields: ['metadata.type']
}
@kevinjqiu
kevinjqiu / cleanup.py
Last active November 27, 2017 20:21
cleanup.py
import argparse
import bisect
import os
import datetime
import pprint
import logging
import shutil
from operator import attrgetter
from collections import namedtuple
ln -s s.rb ss.rb
irb
irb(main):001:0> File.stat('s.rb').ino
=> 4591794
irb(main):002:0> File.stat('ss.rb').ino
=> 4591794
irb(main):003:0>
@kevinjqiu
kevinjqiu / 00-build-python.sh
Last active December 21, 2016 04:04
couchdb indexing benchmark
docker build -f Dockerfile.python -t couchdb-python .
@kevinjqiu
kevinjqiu / devstrap.sh
Last active January 4, 2017 05:51
Use env var
#! /bin/bash
# curl -sL https://gist.githubusercontent.com/kevinjqiu/642589895fec175eb74ca71858bfe450/raw/b9c405eb9a2829ff47add8ec79e5c459d6b4601e/devstrap.sh | bash
set -ex
CHEZMOI="$HOME/chezmoi"
DOTBASH="$CHEZMOI/dot_bash"
VIMMY="$CHEZMOI/vimmy"
git clone --depth=1 https://github.com/kevinjqiu/chezmoi.git $CHEZMOI
git clone --depth=1 https://github.com/kevinjqiu/dot_bash.git $DOTBASH
module MineSweeper
class Tile
attr_accessor :state, :value
def initialize()
@state = :closed
@value = nil
end
def to_s