Skip to content

Instantly share code, notes, and snippets.

@jqtrde
jqtrde / map.geojson
Last active November 14, 2016 16:59 — forked from anonymous/map.geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jqtrde
jqtrde / LC_COLORS.md
Created October 24, 2016 17:01 — forked from thomd/LC_COLORS.md
LSCOLORS & LS_COLORS

alternatively use: http://geoff.greer.fm/lscolors/

LSCOLORS

The value of this variable describes what color to use for which attribute when colors are enabled with CLICOLOR. This string is a concatenation of pairs of the format fb, where f is the foreground color and b is the background color.

The color designators are as follows:

a black

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jqtrde
jqtrde / .travis.yml
Created June 23, 2016 23:29 — forked from BretFisher/.travis.yml
Travis-CI Docker Image Build and Push to AWS ECR
sudo: required #is required to use docker service in travis
language: php #can be any language, just php for example
services:
- docker # required, but travis uses older version of docker :(
install:
- echo "install nothing!" # put your normal pre-testing installs here
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jqtrde
jqtrde / gist:d673ada9b30e12fe7245
Created March 16, 2016 22:50 — forked from runlevel5/gist:4172582
Travis + Parallel tests with Build Matrix for Rails + Cucumber

Read more at http://about.travis-ci.org/blog/2012-11-27-shipping-the-new-travis-ci-ui-for-pro/

In my app, I do not use default rails integration tests, instead I use cucumber for it. Due to the fact cucumber does not override rake test:integrations and must be execute separately. Below is a solution that I came up with to have your Travis running units + functionals + cucumber tests:

First creating a simple bash script at RAILS_ROOT/ci.sh:

#!/bin/bash

case $1 in
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jqtrde
jqtrde / install-tensorflow.sh
Created January 23, 2016 19:16 — forked from erikbern/install-tensorflow.sh
Installing TensorFlow on EC2
# Note – this is not a bash script (some of the steps require reboot)
# I named it .sh just so Github does correct syntax highlighting.
#
# This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5
#
# The CUDA part is mostly based on this excellent blog post:
# http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/
# Install various packages
sudo apt-get update