This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/env python3 | |
import sys | |
import subprocess | |
import re | |
''' | |
default route looks like the following: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
tiller_namespaces=$(kubectl get pod -l name=tiller --all-namespaces -o jsonpath='{.items[*].metadata.namespace}') | |
f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var PouchDB = require('pouchdb'); | |
PouchDB.plugin(require('pouchdb-find')); | |
db = new PouchDB("test"); | |
db.createIndex({ | |
index: { | |
fields: ['metadata.type'] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import bisect | |
import os | |
import datetime | |
import pprint | |
import logging | |
import shutil | |
from operator import attrgetter | |
from collections import namedtuple |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker build -f Dockerfile.python -t couchdb-python . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MineSweeper | |
class Tile | |
attr_accessor :state, :value | |
def initialize() | |
@state = :closed | |
@value = nil | |
end | |
def to_s |
NewerOlder