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
--- | |
- name: Add the Oracle Java PPA | |
apt_repository: repo='ppa:webupd8team/java' state=present update_cache=yes | |
- name: Automatically select the Oracle License | |
debconf: name=oracle-java8-installer question=shared/accepted-oracle-license-v1-1 value=true vtype=select | |
- name: Install Java 8 | |
apt: pkg=oracle-java8-installer force=yes state=installed |
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
# Usage: @HAL tombstone First Line / Second Line / Third Line / Fourth Line | |
module.exports = (robot) -> | |
robot.respond /tombstone (.*)/i, (res) -> | |
lines = res.match[1].split '/' | |
if lines.length > 4: | |
res.reply "Too many lines. Max 4." | |
else | |
query = for i, line of lines | |
"top#{parseInt(i)+1}=#{encodeURIComponent(line)}" |
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
- name: Set Max Open File limit | |
sysctl: name="fs.file-max" value=2097152 sysctl_set=yes state=present reload=yes |
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
<?php | |
namespace Core\Middleware; | |
use Slim\Middleware; | |
/** | |
* A Middleware implemenation which will send any exceptions to the Slim | |
* error handler. | |
* @package Core\Middleware |
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
--- | |
- name: Install libfontconfig1 | |
apt: pkg=libfontconfig1 state=installed | |
- name: Download phantomjs | |
get_url: url=https://bitbucket.org/ariya/phantomjs/downloads/{{phantomjs.name}}.tar.bz2 dest=/usr/local/share/{{phantomjs.name}}.tar.bz2 validate_certs=no | |
- name: Unpack phantomjs | |
command: tar xvjf /usr/local/share/{{phantomjs.name}}.tar.bz2 -C /usr/local/share creates=/usr/local/share/{{phantomjs.name}} |
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
-='cd -' | |
..='cd ..' | |
...='cd ../..' | |
1='cd -' | |
2='cd -2' | |
3='cd -3' | |
4='cd -4' | |
5='cd -5' | |
6='cd -6' | |
7='cd -7' |
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
frontend incoming | |
# Stuff here ... | |
# www to non-www redirect | |
redirect prefix https://domain.com code 301 if { hdr_beg(host) -i www. } | |
# Stuff here ... |
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
# ... | |
config.vm.provider :virtualbox do |v| | |
# ... Other stuff here | |
# Set the timesync threshold to 10 seconds, instead of the default 20 minutes. | |
v.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 10000] | |
end | |
# ... |
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
<!-- rest of config here --> | |
<!-- iOS 8 Override Config to support iPhone 6/6+ screen size --> | |
<gap:config-file platform="ios" parent="UILaunchImages" overwrite="true"> | |
<array> | |
<!-- iPhone 4s --> | |
<dict> | |
<key>UILaunchImageMinimumOSVersion</key> | |
<string>8.0</string> | |
<key>UILaunchImageName</key> |
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
<?php | |
class Foo { | |
private $closure; | |
public function __construct(Closure $closure) | |
{ | |
$this->closure = $closure; | |
} |