Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
BASE=(`cat VERSION | tr '.' ' '`)
MAJOR=${BASE[0]}
MINOR=${BASE[1]}
PATCH=${BASE[2]}
case $1 in
"major")
let "MAJOR++"
@lfaoro
lfaoro / bump-version.sh
Created May 17, 2018 10:34 — forked from mareksuscak/bump-version.sh
Bump version shell script.
#!/bin/bash
# Thanks goes to @pete-otaqui for the initial gist:
# https://gist.github.com/pete-otaqui/4188238
#
# Original version modified by Marek Suscak
#
# works with a file called VERSION in the current directory,
# the contents of which should be a semantic version number
# such as "1.2.3" or even "1.2.3-beta+001.ab"

Keybase proof

I hereby claim:

  • I am lfaoro on github.
  • I am lfaoro (https://keybase.io/lfaoro) on keybase.
  • I have a public key whose fingerprint is 8290 B006 9438 247D 729A 4147 8AEE 5A2F 1EB9 94B0

To claim this, I am signing this object:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>15E55</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>AppleIntelHD5000Graphics</string>
141.101.98.117 - - [11/Jan/2016:21:39:57 +0100] "GET / HTTP/1.1" 303 317 "-" "curl/7.35.0"
141.101.98.117 - - [11/Jan/2016:21:39:58 +0100] "GET / HTTP/1.1" 303 317 "-" "curl/7.35.0"
141.101.98.117 - - [11/Jan/2016:21:39:58 +0100] "GET / HTTP/1.1" 303 317 "-" "curl/7.35.0"
141.101.98.117 - - [11/Jan/2016:21:39:58 +0100] "GET / HTTP/1.1" 303 317 "-" "curl/7.35.0"
141.101.98.117 - - [11/Jan/2016:21:39:58 +0100] "GET / HTTP/1.1" 303 317 "-" "curl/7.35.0"
141.101.98.117 - - [11/Jan/2016:21:39:58 +0100] "GET / HTTP/1.1" 303 317 "-" "curl/7.35.0"
141.101.98.117 - - [11/Jan/2016:21:39:58 +0100] "GET / HTTP/1.1" 303 317 "-" "curl/7.35.0"
141.101.98.117 - - [11/Jan/2016:21:39:59 +0100] "GET / HTTP/1.1" 303 317 "-" "curl/7.35.0"
141.101.98.117 - - [11/Jan/2016:21:39:59 +0100] "GET / HTTP/1.1" 303 317 "-" "curl/7.35.0"
141.101.98.117 - - [11/Jan/2016:21:39:59 +0100] "GET / HTTP/1.1" 303 317 "-" "curl/7.35.0"
@lfaoro
lfaoro / git-php-webhook.php
Created December 10, 2015 20:00 — forked from marcelosomers/git-php-webhook.php
A basic webhook for deploying updates to repos on Github to your local server
<?php
/**
* This script is for easily deploying updates to Github repos to your local server. It will automatically git clone or
* git pull in your repo directory every time an update is pushed to your $BRANCH (configured below).
*
* Read more about how to use this script at http://behindcompanies.com/2014/01/a-simple-script-for-deploying-code-with-githubs-webhooks/
*
* INSTRUCTIONS:
* 1. Edit the variables below
* 2. Upload this script to your server somewhere it can be publicly accessed
@lfaoro
lfaoro / Casted.swift
Created October 23, 2015 10:55
Generated with Cast (cast.lfaoro.com)
publicGist
@lfaoro
lfaoro / Casted.swift
Created October 23, 2015 10:54
Generated with Cast (cast.lfaoro.com)
http://is.gd/4GXoBf
@lfaoro
lfaoro / a.rb
Created September 18, 2015 14:07
http://git.io/vnt10
@lfaoro
lfaoro / a.rb
Created September 18, 2015 14:06
test