Skip to content

Instantly share code, notes, and snippets.

Avatar

Luke jernejcic

View GitHub Profile
View app-script-delete-old-emails.js
/*
* 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
View .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 / .bash_profile
Last active May 12, 2019
.bash_profile file on Mac OS X
View .bash_profile
# ---------------------------------------------------------------------------
#
# 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
@jernejcic
jernejcic / Basic WSGI Python App
Last active Dec 27, 2015
Quick and dirty python to browser implementation.
View Basic WSGI Python App
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]
@jernejcic
jernejcic / XcodeAutoVersioning.sh
Created May 1, 2012 — forked from PaulCapestany/XcodeAutoVersioning.sh
Xcode Auto-incrementing Version and Build numbers
View XcodeAutoVersioning.sh
# 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'" }'`
You can’t perform that action at this time.