- Copy github.php to your web root. Change the password as needed.
- Copy update.sh and change paths as needed.
- Go to the github repo's settings and find the Webhook & Services section
- Input the URL to github.php, making sure to match the password you chose.
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
class WistiaApi | |
{ | |
static $WISTIA_UPLOAD_URL='https://upload.wistia.com'; | |
static $WISTIA_API_URL='https://api.wistia.com/v1'; | |
function __construct($api_key) | |
{ | |
$this->key = $api_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
<VirtualHost *:80> | |
# The ServerName directive sets the request scheme, hostname and port that | |
# the server uses to identify itself. This is used when creating | |
# redirection URLs. In the context of virtual hosts, the ServerName | |
# specifies what hostname must appear in the request's Host: header to | |
# match this virtual host. For the default virtual host (this file) this | |
# value is not decisive as it is used as a last resort host regardless. | |
# However, you must set it for any further virtual host explicitly. | |
#ServerName www.example.com |
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 | |
if(!$_GET['pw']=='hFGw6DSxIFo8n7c4mb0RRCAdxAsK1jTDyZPyb6xlxqXKq6tM2') die('ok'); | |
$data = json_decode($HTTP_RAW_POST_DATA,true); | |
chdir(dirname(__DIR__)); | |
exec('bash update.sh', $output, $return); | |
die(join("\n",$output)); |
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 | |
export HOME=/home/samplesale | |
git pull origin master | |
/usr/local/bin/composer install | |
php artisan migrate -n | |
chmod -R 755 . | |
chmod -R 775 app/storage |
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
GIT_PROMPT_ONLY_IN_REPO=0 | |
source /etc/skel/.bash-git-prompt/gitprompt.sh | |
alias ls='ls -lah' | |
shopt -s dotglob |
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/perl | |
my $id = (getpwuid($<))[0]; | |
print "Content-type: text/html\n\n"; | |
print "<html><body>"; | |
print qq($id\n); | |
print "</body></html>"; |
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 echo 'whoim = '.exec('/usr/bin/whoami'); |
In app/config/database.php
:
'log'=>$_ENV['DB_LOGGING'],
In .env
DB_LOGGING=1
Add hostname to bootstrap/start.php
:
'local' => array('homestead', 'Bens-MacBook-Pro.local'),
Install Dotenv
:
"require": {
OlderNewer