This file contains hidden or 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\Commands; | |
use App\Commands\Command; | |
use Dotenv; | |
use Illuminate\Contracts\Bus\SelfHandling; | |
use Omnipay\PayPal\ExpressGateway; | |
class MakePayment extends Command implements SelfHandling |
This file contains hidden or 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
case $- in *i*) | |
if [ -z "$TMUX" ]; then exec tmux; fi;; | |
esac |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am amonger on github. | |
* I am amonger (https://keybase.io/amonger) on keybase. | |
* I have a public key whose fingerprint is 6F1D 91BE 0F57 9C9F 5EC9 1BA5 FFA7 B0AE 63A2 105C | |
To claim this, I am signing this object: |
This file contains hidden or 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
#new-session | |
set -g default-shell $SHELL | |
#set -g default-command "reattach-to-user-namespace -l ${SHELL}" | |
set -g default-command "reattach-to-user-namespace -l zsh" | |
set -g pane-border-status top | |
set -g pane-border-format "#{pane_current_path}" | |
set -g window-style 'bg=colour235' | |
set -g window-active-style 'bg=black' |
This file contains hidden or 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
SELECT | |
id, | |
(3959 * acos(cos(radians(:latitude)) * cos(radians(lat)) * cos(radians(lng) - radians(:longitude)) + | |
sin(radians(:latitude)) * sin(radians(lat)))) AS distance | |
FROM user | |
HAVING distance < :distance | |
ORDER BY distance | |
LIMIT 0, 20; |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="Deploy" default="production" basedir="." description="A deployment Script"> | |
<property name="remote_host" value="host.com"/> | |
<property name="remote_user" value="user"/> | |
<property name="remote_pass" value="pass"/> | |
<target name="production"> | |
<exec command="cd site" /> | |
<echo msg="Pulling down latest git version"/> | |
<exec command="git pull" /> | |
<echo msg="Updating dependancies"/> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="Deploy" default="production" basedir="." description="A deployment Script"> | |
<property name="remote_host" value="host.com"/> | |
<property name="remote_user" value="username"/> | |
<property name="remote_pass" value="password"/> | |
<target name="production"> | |
<echo msg="Uploading remote phing script"/> | |
<scp host="${remote_host}" username="${remote_user}" password="${remote_pass}" | |
todir="/home/learnmango/phing-example" |
NewerOlder