Skip to content

Instantly share code, notes, and snippets.

View metaldrummer610's full-sized avatar

Robbie Diaz metaldrummer610

  • Hivemine Technologies, LLC
  • Atlanta, GA
View GitHub Profile
@andyshinn
andyshinn / Dockerfile
Created July 2, 2017 17:58
nginx serving Angular 4 application built as Docker multi-stage image
FROM node:8.1.2-onbuild as builder
ARG TARGET=production
RUN npm install @angular/cli
RUN node_modules/.bin/ng build -aot --target ${TARGET}
FROM nginx:1.13-alpine
COPY nginx.conf /etc/nginx/conf.d/
COPY --from=builder /usr/src/app/dist /usr/src/app
@tfg13
tfg13 / touchpadconf.sh
Created November 24, 2013 15:50
script to set synaptics configuration for Thinkpad T440p
#!/bin/sh
# this script sets some parameters to get a useable configuration
# these changes are not persistent, you may want to include this in your autostart
# 1 finger = left click, 2 finger = right click, 3 finger = middle click
synclient TapButton2=3
synclient TapButton3=2
synclient ClickFinger2=3
synclient ClickFinger3=2
@g3d
g3d / gist:2709563
Last active May 15, 2025 07:00 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan
@twe4ked
twe4ked / input.scss
Created December 5, 2011 06:27
FREE! Sass (SCSS) mixin for including retina images (useful when developing for iOS).
@mixin background-image-retina($file, $type, $width, $height) {
background-image: url($file + '.' + $type);
@media (-webkit-min-device-pixel-ratio: 2), (-moz-min-device-pixel-ratio: 2) {
& {
background-image: url($file + '@2x.' + $type);
-webkit-background-size: $width $height;
}
}
}