Skip to content

Instantly share code, notes, and snippets.

View flah00's full-sized avatar
🐛
space is the place

Philip Champon flah00

🐛
space is the place
View GitHub Profile
---CRASH REPORT BEGIN
Time Since Boot: 394.097s
Firmware Version: 0.6.16
Boot Count: 229
Mount Count: 1
Error Message:
0:/v0.6/libs/sloop/Sloop.lua:211: attempt to call a nil value (field 'mainFlashMessage')
stack traceback:
0:/v0.6/libs/sloop/Sloop.lua:211: in function 'sloop.Sloop.doZeroBuffer'
0:/v0.6/libs/sloop/Sloop.lua:299: in field 'task'
@flah00
flah00 / helm_template.txt
Last active September 21, 2018 21:01
efs-provisioner
helm template \
\
-f ../helm/efs-provisioner.yaml \
-f ../helm-2/eks/efs-provisioner.yaml \
../../charts/stable/efs-provisioner
---
# Source: efs-provisioner/templates/storageclass.yaml
kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
@flah00
flah00 / cluster.yaml
Last active September 17, 2017 13:53
Save etcd from itself
etcd:
version: 3.2.7
snapshot:
automated: true
disasterRecovery:
automated: true
count: 3
customFiles:
- path: /etc/sumologic-environment
permissions: 0600
@flah00
flah00 / Dockerfile
Last active September 14, 2017 05:38
Redmine errors
FROM bitnami/redmine:3.4.2-r2
MAINTAINER Techops <techops@adaptly.com>
ARG REDMINE_THEME_CHANGER_VERSION=0.2.0
ARG REDMINE_MINIMAL_FLAT_VERSION=1.1.3
LABEL version=3.4.2-p0
LABEL image=redmine
LABEL name=redmine
ENV UPDATED_AT=2017-09-13T15
ENV THEME_CHANGER=redmine_theme_changer-${REDMINE_THEME_CHANGER_VERSION}.zip
Verifying that "1HUGra6VtgK9Tjkdh4PME5EZ4ogCbWseMi.id" is my Blockstack ID. https://onename.com/1HUGra6VtgK9Tjkdh4PME5EZ4ogCbWseMi
@flah00
flah00 / cluster.yaml
Last active June 7, 2017 01:53
kube-aws 0.9.6 fails to create controller
clusterName: k8s-new
apiEndpoints:
- # The unique name of this API endpoint used to identify it inside CloudFormation stacks or
name: default
dnsName: k8s-new.dev.zoo.us-east-1.example.com
loadBalancer:
createRecordSet: true
subnets:
- name: ManagedPrivateSubnet1d
private: true
@flah00
flah00 / common.yml
Last active July 13, 2016 17:39
input and output from ecs-cli compose create
version: '2'
services:
app:
environment:
LEIN_USERNAME:
LEIN_PASSPHRASE:
LOG_LEVEL:
FACEBOOK_API_KEY:
@flah00
flah00 / after_removing_dups.txt
Last active March 3, 2016 00:29
sudo -u dd-agent dd-agent check http_check
2016-03-03 00:25:51,507 | DEBUG | dd.collector | utils.proxy(proxy.py:64) | No proxy configured
2016-03-03 00:25:51,515 | DEBUG | dd.collector | config(config.py:878) | Loaded check.d/chef_status.py
2016-03-03 00:25:51,515 | DEBUG | dd.collector | config(config.py:779) | No configuration file for teamcity. Looking for defaults
2016-03-03 00:25:51,515 | DEBUG | dd.collector | config(config.py:784) | Default configuration file /etc/dd-agent/conf.d/teamcity.yaml.default is missing. Skipping check
2016-03-03 00:25:51,515 | DEBUG | dd.collector | config(config.py:779) | No configuration file for gunicorn. Looking for defaults
2016-03-03 00:25:51,515 | DEBUG | dd.collector | config(config.py:784) | Default configuration file /etc/dd-agent/conf.d/gunicorn.yaml.default is missing. Skipping check
2016-03-03 00:25:51,515 | DEBUG | dd.collector | config(config.py:779) | No configuration file for marathon. Looking for defaults
2016-03-03 00:25:51,515 | DEBUG | dd.collector | config(config.py:784) | Default configuration
@flah00
flah00 / glacier_uploader.rb
Last active July 19, 2018 08:49
Upload an archive to AWS Glacier, automatically splitting the file, if necessary
#!/usr/bin/env ruby
# Inspired by https://github.com/aws/aws-sdk-core-ruby/blob/5bdfbebc6d845ac24fb977cb078a920b03b791ac/features/glacier/step_definitions.rb#L28
# Usage: glacier_uploader.rb VAULT /PATH/TO/FILE [NUM_PARTS] [RETRIES]
# files larger than 100mb must be broken up into chunks 1mb-4gb
# total chunks cannot exceed 10,000
# chunk sizes must be a power of 2
# Metadata stored in simpledb
GDRIVE_DOMAIN = 'GlacierGdrive'
Aws.config[:logger] = Logger.new $stdout
@flah00
flah00 / Gemfile
Last active August 29, 2015 14:17
Killing Cabin, with Aws
source "https://rubygems.org"
gem "aws-sdk", "~> 2.0.0"
gem "cabin", "~> 0.7.0", git: "https://github.com/jordansissel/ruby-cabin.git"