Skip to content

Instantly share code, notes, and snippets.

apiVersion: v1
kind: ServiceAccount
metadata:
labels:
k8s-app: metrics-server
name: metrics-server
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
@omarqureshi
omarqureshi / 7.rb
Last active December 9, 2018 22:41
steps = Hash.new([])
File.open("./input.txt") do |file|
file.each_line do |line|
line =~ /Step ([A-Z]) must be finished before step ([A-Z])/
step = $2
prereq = $1
steps[prereq] = [] unless steps.has_key?(prereq)
steps[step] += [prereq]
end
version: '3'
services:
haproxy:
image: haproxy:1.5
volumes:
- /path/to/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg
ports:
- "80:80"
require "minitest/autorun"
class Potter
attr_accessor :items
PRICE_PER_BOOK = 8
def initialize(items)
@items = items.sort
@current_value = items.first
# config file for ansible -- http://ansible.com/
# ==============================================
# nearly all parameters can be overridden in ansible-playbook
# or with command line flags. ansible will read ANSIBLE_CONFIG,
# ansible.cfg in the current working directory, .ansible.cfg in
# the home directory or /etc/ansible/ansible.cfg, whichever it
# finds first
[defaults]
{
"network":{
"network_id": 5
},
"branch":{
"branch_id": 1566,
"channel": 1,
"overseas": false
},
"property":{
Expanded display is on.
DROP TABLE
DROP FUNCTION
DROP FUNCTION
psql:hearthstone.sql:5: ERROR: index "card_mechanics_size" does not exist
psql:hearthstone.sql:6: ERROR: index "card_mechanics_size_fail" does not exist
BEGIN
CREATE TABLE
COPY 1
CREATE TABLE
$scope.archiveGoal = function(goal) {
goal.removed_at = new Date();
goal.editable = false;
Goal.update({goal: goal, id: goal.id});
};
#!/bin/sh
if [[ $@ =~ ^/ ]]; then
/Applications/Emacs.app/Contents/MacOS/Emacs "$@" &
else
/Applications/Emacs.app/Contents/MacOS/Emacs "$PWD/$@" &
fi