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
#!/usr/bin/env bash | |
# ~/.osx — http://mths.be/osx | |
# Ask for the administrator password upfront | |
sudo -v | |
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished | |
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & |
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: test | |
hosts: localhost | |
connection: local | |
tasks: | |
- name: Invoke poller | |
vars: | |
url: http://localhost:8000/abc.json | |
validate_certs: yes | |
poll_interval: 10 |
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 COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
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 App\Http\Middleware; | |
use Closure; | |
use ReflectionMethod; | |
use ReflectionFunction; | |
use Illuminate\Database\Eloquent\Model; | |
class SubstituteImplicitBindings |
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/bash | |
set -e | |
# move to working tree dir | |
export GIT_DIR=$(cd ${GIT_DIR}; pwd) | |
GIT_WORK_TREE="${GIT_DIR}/.." | |
# update working dir | |
( |
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 | |
fallocate -l 2G /swapfile | |
chmod 600 /swapfile | |
ls -lh /swapfile | |
mkswap /swapfile | |
swapon /swapfile | |
free -m |
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
apt-get install --no-install-recommends ca-certificates curl wget | |
apt-get install -y openjdk-7-jre-headless | |
gpg --keyserver pool.sks-keyservers.net --recv-keys \ | |
05AB33110949707C93A279E3D3EFE6B686867BA6 \ | |
07E48665A34DCAFAE522E5E6266191C37C037D42 \ | |
47309207D818FFD8DCD3F83F1931D684307A10A5 \ | |
541FBE7D8F78B25E055DDEE13C370389288584E7 \ | |
61B832AC2F1C5A90F0F9B00A1C506407564C17A3 \ |
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
@servers([ 'web' => '[email protected]', 'localhost' => 'localhost' ]) | |
@macro('deploy') | |
deploy:merge | |
deploy:assets | |
deploy:push | |
deploy:pull | |
@endmacro |