Skip to content

Instantly share code, notes, and snippets.

View nlenkowski's full-sized avatar

Nathan Lenkowski nlenkowski

View GitHub Profile
@nlenkowski
nlenkowski / nginx.conf
Created October 20, 2017 12:04
A sensible Nginx config
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 1024;
multi_accept on;
}
http {
@nlenkowski
nlenkowski / gulp-wiredep-config.js
Last active June 28, 2016 04:56
Gulp Wirdep config
// ### Wiredep Scripts
// 'gulp wiredep-scripts' - Combines, uglifies and generates source maps for
// Bower script dependencies.
gulp.task('wiredep-scripts', function() {
var wiredep = require('wiredep');
// Output script dependencies to /dist/scripts/vendor.min.js
return gulp.src(wiredep().js)
.pipe(sourcemaps.init())
.pipe(concat('vendor.js'))
@nlenkowski
nlenkowski / osx-annoyances.md
Created October 8, 2015 10:04
OS X annoyances from a Windows user who made the switch

OS X Annoyances

From a Windows user who made the switch.

Updated 10/8/15, 3+ years after the switch

OS X UI / UX

  • The green button! I'll never understand the logic behind it. I just want to maximize the application window to fit the screen without entering fullscreen mode, why is it so hard! Fixed with BetterSnapTool. As of El Capitan the default green button functionality is to now make an application run in fullscreen and/or split screen mode and one has to alt-click just to get the prior wonky functionality back.
@nlenkowski
nlenkowski / provision-osx-apps.sh
Last active October 8, 2015 09:12
Shell script to install Brew, Cask and Npm packages on OS X
#!/bin/sh
# Force Cask to install to the /Applications folder
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
#
# Brew tap
#
brew tap homebrew/dupes
brew tap homebrew/homebrew-php
@nlenkowski
nlenkowski / useful-git-commands.sh
Last active June 28, 2016 04:57
Useful Git commands
# Cloning a repository
git clone repository-url
# Initializing a bare repository
git init
git remote add origin repository-url
# Initializing a repository in a non-empty directory and adding all existing files
git init
git add .