This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## This will flsuh your DNS cache, note that some browsers maintain their own cache | |
dscacheutil -flushcache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################################# | |
# This opinionated oneline installer assumes that you want internal PostgreSQL, # | |
# Google Docs integration, LibreOffice, Solr, Java, Sharepoint and Tomcat to be installed. # | |
# Note that the password is stored in the $PASSWORD variable - you can set this # | |
# in the one-liner or outside of this code. # | |
# Documented here: http://docs.alfresco.com/4.2/concepts/silent-alf-install.html # | |
# Further: http://blyx.com/2014/02/20/alfresco-tip-unattended-installation-with-one-command # | |
############################################################################################# | |
alfresco-enterprise-4.2.3.1-installer-linux-x64.bin --prefix /opt/alfresco \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Replace SECRETKEY.pem with your key, 2020 with the port, loadbalancername with | |
# the name of your load balancer. | |
ssh -i ~/Google\ Drive/SECRETKEY.pem -p 2020 ec2-user@loadbalancername |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# chkconfig: 2345 80 30 | |
# description: Alfresco Enterprise | |
# | |
# Username YOURUSER used in this case. Replace with one defined locally | |
# e.g.: with Chef or Puppet. | |
$YOURUSER = YOURUSER | |
RETVAL=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you're like me and rarely use sleep or hibernation on your desktop and have some systems with small root SSDs, | |
this will probably come in handy. Windows 8.1 has changed a few things around so that getting an admin command | |
prompt is slightly different than Windows 7, but that's easily sorted. | |
To remove the pesky hiberfil.sys: | |
- Press Win | |
- Type :cmd" | |
- Confirm with shift+ctl+enter | |
- Type powercfg -h off | |
- hit enter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -e 's~&~\&~g' -e 's~<~\<~g' -e 's~>~\>~g' -e 's~\"~\"~g' -e "s~\'~\'~g" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./alfresco-installer.bin --help | |
Alfresco One 5.0.1 | |
Usage: | |
--help Display the list of valid options | |
--version Display product information | |
--unattendedmodeui <unattendedmodeui> Unattended Mode UI | |
Default: none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws opsworks --region us-east-1 describe-instances --instance-ids 82hu7s86-ff57-4fc8-0000-f3cb364b125e | grep PrivateIp | awk -F '"' '{print $4}' |
OlderNewer