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
kind: ConfigMap | |
apiVersion: v1 | |
metadata: | |
name: nginx-config | |
namespace: nginx-ingress | |
data: | |
worker-processes: "24" | |
worker-connections: "100000" | |
worker-rlimit-nofile: "102400" | |
worker-cpu-affinity: "auto 111111111111111111111111" |
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
local counter = 1 | |
local urls = {} | |
local headers = {} | |
headers["client-id"] = "testKey" | |
headers["client-secret"] = "]@n8YS4Gy8K(4" | |
init = function() | |
local next = next | |
if next(myTable) == nil then | |
local loop = 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
#!/bin/sh | |
# Welcome to the thoughtbot laptop script! | |
# Be prepared to turn your laptop (or desktop, no haters here) | |
# into an awesome development machine. | |
fancy_echo() { | |
local fmt="$1"; shift | |
# shellcheck disable=SC2059 |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/eliasjp/.oh-my-zsh" | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="robbyrussell" |
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
require "./spec_helper" | |
def blog_hash | |
{"title" => "Fake", "article" => "Fake"} | |
end | |
def blog_params | |
params = [] of String | |
params << "title=#{blog_hash["title"]}" | |
params << "article=#{blog_hash["article"]}" |
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
Amber::Server.configure do |app| | |
pipeline :api do | |
# Plug is the method to use connect a pipe (middleware) | |
# A plug accepts an instance of HTTP::Handler | |
# plug Amber::Pipe::Params.new | |
plug Amber::Pipe::Logger.new | |
end | |
# All static content will run these transformations | |
pipeline :static do |
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 Amber::Validators | |
# Holds a validation error message | |
record Error, param : String, value : String?, message : String | |
# This struct holds the validation rules to be performed | |
class BaseRule | |
getter predicate : (String -> Bool) | |
getter field : String | |
getter value : String? |
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
run.config: | |
engine: crystal | |
extra_packages: | |
- nodejs | |
- openssl | |
extra_steps: | |
- npm install | |
- crystal deps build amber |
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
run.config: | |
engine: crystal | |
extra_packages: | |
- nodejs | |
- openssl | |
extra_steps: | |
- npm install | |
- crystal deps build amber |
NewerOlder