Skip to content

Instantly share code, notes, and snippets.

@yocontra
yocontra / aoe2hd.md
Last active June 9, 2023 18:28
Age of Empires II HD - For Mac OSX
@t-io
t-io / osx_install.sh
Last active April 27, 2025 20:06
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)"
@Andrewpk
Andrewpk / OSX-junos_pulse_listenToMe.sh
Last active July 11, 2024 20:22
wtf juniper.Anyone else find it irritating that junos pulse services and pulse tray must always running in OS X regardless of whether or not you're currently connected?Yeah, me too.I added the following as aliases to my shell to fix this problem.Be sure to change your /Library/LaunchAgents/net.juniper.pulsetray.plist file to reflect the `KeepAli…
#################################################################################
# start and stop the vpn from the command line from now on with these two commands
#################################################################################
startvpn() {
sudo launchctl load -w /Library/LaunchDaemons/net.pulsesecure.AccessService.plist
launchctl load -w /Library/LaunchAgents/net.pulsesecure.pulsetray.plist
}
quitvpn() {
launchctl unload -w /Library/LaunchAgents/net.pulsesecure.pulsetray.plist
sudo launchctl unload -w /Library/LaunchDaemons/net.pulsesecure.AccessService.plist
wget http://mirror.ox.ac.uk/sites/rsync.apache.org/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz
sudo tar xzf apache-maven-3.0.5-bin.tar.gz -C /usr/local
cd /usr/local
sudo ln -s apache-maven-3.0.5 maven
mkdir libext
cd libext
wget http://extjs.com/deploy/ext-2.2.zip
export DSE_LIB=/usr/share/dse
@LB--
LB-- / LiveScript.java
Created November 10, 2012 00:12
Java Reflection Interactive
import java.util.*;
import java.lang.reflect.*;
public class LiveScript
{
private LiveScript() throws UnsupportedOperationException
{
throw new UnsupportedOperationException();
}
@jimternet
jimternet / PhoneNumberSolver.java
Created November 9, 2012 22:39
Phone number problem
import java.util.*;
import java.lang.*;
import java.util.Map;
public class PhoneNumberSolver{
//3 numbers just for examples sake so far
private static Integer[] phoneNumber = new Integer[]{new Integer(3) , new Integer(5), new Integer(5)};
/*
String{]{"d","e","f"})
@collinpeters
collinpeters / log4j.sh
Created May 31, 2012 20:46
Script to setup log4j for Tomcat internal logging. Uses custom log4j.properties gist as well
#!/bin/sh
# Setup log4j for Tomcat logging as per http://tomcat.apache.org/tomcat-7.0-doc/logging.html#Using_Log4j
# @author Collin Peters
# Download log4j.properties
echo "Getting log4j.properties..."
wget -q --output-document /opt/tomcat/lib/log4j.properties https://gist.github.com/collinpeters/2845875/raw/caef85e03e7b586bace0dbc14da17a4f78d1757a/log4j.properties
# Download log4j.tgz and extract jar directly to Tomcat
@fnichol
fnichol / README.md
Created March 30, 2011 21:17
Chef Bootstrapper For SuSE/SLES

Chef Bootstrapper For SuSE/SLES

Installation

Note: Run this script as the root user (no sudo calls are used in the script).

You will need the curl package installed, though I would have no idea why it wouldn't be installed by default:

zypper --non-interactive install curl