Skip to content

Instantly share code, notes, and snippets.

@jernejcic
jernejcic / .vimrc
Last active August 29, 2015 13:56
.vimrc
" Maintainer: Luke Jernejcic
" Last change: 2014/11/06
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
" for Amiga: s:.vimrc
" for MS-DOS and Win32: $VIM\_vimrc
" for OpenVMS: sys$login:.vimrc
" When started as "evim", evim.vim will already have done these settings.
@jernejcic
jernejcic / XcodeAutoVersioning.sh
Created May 1, 2012 23:00 — forked from PaulCapestany/XcodeAutoVersioning.sh
Xcode Auto-incrementing Version and Build numbers
# Increment the build number with every build.
BUILDNUM=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}")
BUILDNUM=$(($BUILDNUM + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $BUILDNUM" "${PROJECT_DIR}/${INFOPLIST_FILE}"
# This splits a two-decimal version string, such as "0.45.123", allowing us to increment the third position.
VERSIONNUM=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${PROJECT_DIR}/${INFOPLIST_FILE}")
NEWSUBVERSION=`echo $VERSIONNUM | awk -F "." '{print $3}'`
NEWSUBVERSION=$(($NEWSUBVERSION + 1))
NEWVERSIONSTRING=`echo $VERSIONNUM | awk -F "." '{print $1 "." $2 ".'$NEWSUBVERSION'" }'`
@jernejcic
jernejcic / Basic WSGI Python App
Last active December 27, 2015 17:09
Quick and dirty python to browser implementation.
def application(environ, start_response)
html = "<html><body>"
html += "<h1>Hello World!</h1>"
html += "</body></html>"
start_response('200 OK', [('Content-type', 'text/plain'), ('Content-Length', str(len(html)))])
return [html]
/*
* IMPORTANT: THIS FILE SHOULD NEVER BE SHARED AS IT COULD POTENTIALLY
* BE A MAJOR SECURITY HOLE, ALLOWING SOMEONE WITH ACCESS THE
* ABILITY TO MANIPULATE AND SEE ANYTHING INSIDE OF GMAIL
*
* BY: LUKE RYAN JERNEJCIC
* WEBSITE: https://lukeryan.org
* LICENSE: GPLv3
*
* This is a very dangerous file. Any gmail filter in here is used to delete
@jernejcic
jernejcic / .bash_profile
Last active April 1, 2023 02:08
.bash_profile file on Mac OS X
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases.
# Much of this was originally copied from:
# http://natelandau.com/my-mac-osx-bash_profile/
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management