Skip to content

Instantly share code, notes, and snippets.

View jdaily's full-sized avatar

John Daily Jr. jdaily

View GitHub Profile
@jdaily
jdaily / pre-commit
Last active March 7, 2016 13:14 — forked from adamn/pre-commit
strict pep8, max-line-length=120
#!/usr/bin/env python
import os
import re
import subprocess
import sys
modified = re.compile('^(?:M|A)(\s+)(?P<name>.*)')
CHECKS = [
// Photoshop Script to Create iPhone Icons from iTunesArtwork // // WARNING!!! In the rare case that there are name collisions, this script will // overwrite (delete permanently) files in the same folder in which the selected // iTunesArtwork file is located. Therefore, to be safe, before running the // script, it's best to make sure the selected iTuensArtwork file is the only // file in its containing folder. // // Copyright (c) 2010 Matt Di Pasquale // Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and
@jdaily
jdaily / dist-play-app-initd
Last active August 29, 2015 14:01 — forked from RadoBuransky/dist-play-app-initd
Updated to set Custom Log File for process output
#!/bin/bash
#
# =========================================================================
# Copyright 2014 Rado Buransky, Dominion Marine Media
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#! /bin/sh
### BEGIN INIT INFO
# Provides: redis-server
# Required-Start: $syslog
# Required-Stop: $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: redis-server - Persistent key-value db
@jdaily
jdaily / Brewing in the morning
Last active December 30, 2015 17:19 — forked from adamstac/TODO
Brewing my Dev Environment - PHP, Ruby, Scala, Nginx, Play Framework, Node
## Xcode
Install Xcode
Head to the Apple Developer Center to download a copy of the latest Xcode
* [Apple Developer Center](http://developer.apple.com/technologies/xcode.html)
xcode-select --install
@jdaily
jdaily / innobackupex-restore.sh
Last active December 19, 2015 08:49 — forked from dalecaru/innobackupex-restore.sh
Adding config option and step to sync backups to an Amazon S3 Bucket. Also added loggin capabilities.
#!/bin/sh
#
# Script to prepare and restore full and incremental backups created with innobackupex-runner.
#
# This script is provided as-is; no liability can be accepted for use.
#
INNOBACKUPEX=innobackupex-1.5.1
INNOBACKUPEXFULL=/usr/bin/$INNOBACKUPEX
TMPFILE="/tmp/innobackupex-restore.$$.tmp"