This file contains hidden or 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
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
labels: | |
k8s-app: metrics-server | |
name: metrics-server | |
namespace: kube-system | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole |
This file contains hidden or 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
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 |
This file contains hidden or 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
version: '3' | |
services: | |
haproxy: | |
image: haproxy:1.5 | |
volumes: | |
- /path/to/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg | |
ports: | |
- "80:80" |
This file contains hidden or 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
require "minitest/autorun" | |
class Potter | |
attr_accessor :items | |
PRICE_PER_BOOK = 8 | |
def initialize(items) | |
@items = items.sort | |
@current_value = items.first |
This file contains hidden or 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
derp |
This file contains hidden or 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
# 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] |
This file contains hidden or 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
{ | |
"network":{ | |
"network_id": 5 | |
}, | |
"branch":{ | |
"branch_id": 1566, | |
"channel": 1, | |
"overseas": false | |
}, | |
"property":{ |
This file contains hidden or 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
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 |
This file contains hidden or 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
$scope.archiveGoal = function(goal) { | |
goal.removed_at = new Date(); | |
goal.editable = false; | |
Goal.update({goal: goal, id: goal.id}); | |
}; |
This file contains hidden or 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/sh | |
if [[ $@ =~ ^/ ]]; then | |
/Applications/Emacs.app/Contents/MacOS/Emacs "$@" & | |
else | |
/Applications/Emacs.app/Contents/MacOS/Emacs "$PWD/$@" & | |
fi |
NewerOlder