Skip to content

Instantly share code, notes, and snippets.

View nicekiwi's full-sized avatar
🍳
Living brunch to brunch.

Ezra nicekiwi

🍳
Living brunch to brunch.
View GitHub Profile
@nicekiwi
nicekiwi / ansible-playbook.yml
Created July 29, 2015 05:16 — forked from bhalothia/ansible-playbook.yml
register variables across plays
- vars:
# Extra vars from Rundeck for partition type
partition: "{{ partition }}"
# For 'nmctl ps' wrapper - Some deployment validation
number_of_tries: 5
sleep_between_tries: 60
hosts: "app-{{ partition }}[0]" # Canary
/*
public function openPaymentPage(Request $request) {
$user_id = $request->json('user_id');
// how to redirect post another server with paramters?
// i cant find any solution with googling..
// is it possible?
return redirect()->to('http://myserver.com/testpost', compact('user_id'));
@nicekiwi
nicekiwi / bash_aliases
Last active January 1, 2016 10:29 — forked from frdmn/bash_aliases
Customised
alias nginx.start='sudo launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist'
alias nginx.stop='sudo launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist'
alias nginx.restart='nginx.stop && nginx.start'
alias php-fpm.start="launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php54.plist"
alias php-fpm.stop="launchctl unload -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php54.plist"
alias php-fpm.restart='php-fpm.stop && php-fpm.start'
alias mysql.start="launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mariadb.plist"
alias mysql.stop="launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mariadb.plist"
alias mysql.restart='mysql.stop && mysql.start'