Skip to content

Instantly share code, notes, and snippets.

@tony19
tony19 / newest_git_ubuntu.sh
Created April 8, 2012 19:28
Install newest git on Ubuntu 11.10
#!/bin/sh
# Ubuntu 11.10 currently comes with Git 1.7.2. If you want to install
# the latest dev build of Git, follow these steps. One feature I really
# needed from this is the ability to stash unstaged *and untracked*
# changes. (Current version only stashes unstaged changes)
sudo apt-get install libssl-dev libcurl4-gnutls-dev libexpat1-dev
git clone git://git.kernel.org/pub/scm/git/git.git
git tag
@t-io
t-io / osx_install.sh
Last active July 24, 2024 15:28
Install most of my Apps with homebrew & cask
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@SpekkoRice
SpekkoRice / checkPHPVersion
Last active July 21, 2020 07:40
Bash: Check the version of PHP
#!/bin/bash
# Function to check if the PHP version is valid
checkPHPVersion() {
# The current PHP Version of the machine
PHPVersion=$(php -v|grep --only-matching --perl-regexp "5\.\\d+\.\\d+");
# Truncate the string abit so we can do a binary comparison
currentVersion=${PHPVersion::0-2};
# The version to validate against
minimumRequiredVersion=$1;