Skip to content

Instantly share code, notes, and snippets.

View willywos's full-sized avatar
🐥
Living el pollo loco

Willy willywos

🐥
Living el pollo loco
View GitHub Profile

Keybase proof

I hereby claim:

  • I am willywos on github.
  • I am willywos (https://keybase.io/willywos) on keybase.
  • I have a public key ASCEXeJeQ2GaO_lozbqOopwo7HdDt_GmbftRxcFN-fUgVQo

To claim this, I am signing this object:

@willywos
willywos / tmux.conf
Created October 8, 2016 05:12
My tmux configurations, it's literally the best tmux eveeeer.
###########################
# Configuration
###########################
# use UTF8
set -g utf8
set-window-option -g utf8 on
# set shell
set -g default-shell /bin/zsh
@willywos
willywos / .tmux.sh
Last active October 7, 2016 21:53
A .tmux.sh example
#!/bin/sh
SESSION_NAME="%TMUX_SESSION_NAME%"
cd %CURRENT_DIRECTORY%
export TERM=screen-256color-bce tmux
tmux has-session -t ${SESSION_NAME}
if [ $? != 0 ]
FROM node:6.4.0
RUN apt-get update -y
RUN apt-get install -y imagemagick libmagickcore-dev libmagickwand-dev && apt-get install -y webp libwebp-dev
COPY package.json /src/package.json
RUN cd /src; npm install
COPY . /src
EXPOSE 80
CMD["npm", "start"]
{
"family": "dogservice-api-task-def",
"containerDefinitions": [
{
"image": "dogservice.ecr.us-east-1.amazonaws.com/dogservice-api:%IMAGE_VERSION%",
"name": "dogservice-api-app",
"cpu": 10,
"memory": 300,
"essential": true,
"portMappings": [
@willywos
willywos / jenkins-task-service.sh
Last active September 19, 2016 16:03
dogservice task def
#Variables
REG_ADDRESS="dogservice.ecr.us-east-1.amazonaws.com"
REPO="dogservice-api"
# Build parameter in Jenkins called DockerTag. Users will enter v_1 or v_2.
IMAGE_VERSION=${DockerTag}
WORKSPACE_PATH="/var/lib/jenkins/jobs/dogservice-api/workspace"
SERVICE_NAME="dogservice-api-app"
SERVICE_FAMILY="dogservice-api-task-def"
@willywos
willywos / gist:112f787b397330489207
Last active September 19, 2015 14:39
guy_cowsay.cow
$the_cow = <<EOC;
$thoughts ,+*^^*+___+++_
$thoughts ,*^^^^ )
$thoughts _+* ^**+_
$thoughts +^ _ _++*+_+++_, )
_+^^*+_ ( ,+*^ ^ \\+_ )
{ ) ( ,( ,_+--+--, ^) ^\\
{ (\@) } f ,( ,+-^ __*_*_ ^^\\_ ^\\ )
{:;-/ (_+*-+^^^^^+*+*<_ _++_)_ ) ) /
( / ( ( ,___ ^*+_+* ) < < \\
###########################
# Configuration
###########################
# use UTF8
set -g utf8
set-window-option -g utf8 on
# use 256 term for pretty colors
set -g default-terminal "xterm-256color"
<html>
<head>
<title>dug.js - Retriever dropdown</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
# config/initializers/database_limits.rb
module ActiveRecord
module ConnectionAdapters
module DatabaseLimits
def index_name_length
#this is a monkey patch to get the ms sql db schema to work in sqlite.
#errors with the names in sql server being to long for sqlite cause of
#of the original 64 character limit. Switch it to 84 to allow the longer
#names.
84