https://github.com/j-martin/dotfiles
- iTerm2 v3
- Sublime Text 3
- IntelliJ IDEA
- vim
- Spacemacs (org-mode)
- zsh
- shellcheck
- tmux
paste -d "\t" - - - - < filename |
docker run -d --name dogstatsd -u 0 -h `hostname` -p 8125:8125/udp -e API_KEY=$API_KEY datadog/docker-dd-agent:latest-dogstatsd |
#The merge method takes in the two subarrays and creates a output array | |
def merge(left, right): | |
result = [] | |
i , j = 0 , 0 | |
while i < len (left) and j < len (right): # iterate through both arrays and arrange the elements in sorted order | |
if left[i] <= right [j]: | |
result.append(left[i]) | |
i+=1 | |
else: | |
result.append(right[j]) |
{ | |
"github": { | |
"token": "YOUR_GITHUB_TOKEN" | |
}, | |
"project": { | |
"user": "BenchLabs", | |
"teamLabel": "team_platform", | |
"sprintKeywords": "Platform Sprint", | |
"sprintLabelColor": "fbca04", | |
"teamRepos": [ |
https://github.com/j-martin/dotfiles
#!/bin/bash | |
_appName=$1 | |
_limit=$2 | |
echo "$(date) checking app:$_appName with limit:$_limit " | |
# get app versions above the limit as a list | |
versions=$(aws elasticbeanstalk describe-application-versions\ | |
--application-name $_appName\ |
#!/bin/bash | |
# Original was modified to do backup only for one specified volume. | |
set -ue | |
set -o pipefail | |
export PATH=$PATH:/usr/local/bin/:/usr/bin | |
## START SCRIPT |
package co.bench.api.spray | |
import spray.routing.{Directives, Route} | |
import spray.http.HttpHeaders.{`Access-Control-Allow-Credentials`, `Access-Control-Allow-Headers`, `Access-Control-Allow-Methods`, `Access-Control-Allow-Origin`} | |
import spray.http.{StatusCodes, HttpOrigin, SomeOrigins} | |
import spray.http.HttpMethods._ | |
trait CORSSupport extends Directives { | |
private val CORSHeaders = List( |
val customMergeStrategy: String => MergeStrategy = { | |
case x if Assembly.isConfigFile(x) => | |
MergeStrategy.concat | |
case PathList(ps @ _*) if Assembly.isReadme(ps.last) || Assembly.isLicenseFile(ps.last) => | |
MergeStrategy.rename | |
case PathList("META-INF", xs @ _*) => | |
(xs map {_.toLowerCase}) match { | |
case ("manifest.mf" :: Nil) | ("index.list" :: Nil) | ("dependencies" :: Nil) => | |
MergeStrategy.discard | |
case ps @ (x :: xs) if ps.last.endsWith(".sf") || ps.last.endsWith(".dsa") => |
git remote update --prune
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d