git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
<?php | |
class PageController extends \App\Http\Controllers\Controller | |
{ | |
public function show() | |
{ | |
$slug = request()->segment(1); | |
$page = \TCG\Voyager\Models\Page::where('slug', $slug) | |
->firstOrFail(); | |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
Marks-MacBook-Pro.local ~/Sites $ valet install | |
Updating Homebrew... | |
==> Auto-updated Homebrew! | |
Updated 2 taps (homebrew/core, homebrew/php). | |
==> New Formulae | |
gmic | |
libosmium | |
luaver | |
mfterm | |
treefrog |
console.log(Object.keys(OSjs.Locales).map(function(l) { | |
return 'Locale `' + l + '` misses:\n' + Object.keys(OSjs.Locales.en_EN).filter(function(v) { | |
return typeof OSjs.Locales[l][v] === 'undefined'; | |
}).map(function(i) { | |
return '- ' + i; | |
}).join('\n'); | |
}).join('\n\n')); |
<?php | |
class OsjsValetDriver extends ValetDriver | |
{ | |
/** | |
* Determine if the driver serves the request. | |
* | |
* @param string $sitePath | |
* @param string $siteName | |
* @param string $uri |
#!/bin/bash | |
set -x | |
domain=$(readlink -f .) | |
domain=${domain##*/} | |
timestamp=$(date +%s) | |
if ! [ -s "current" ]; then | |
mkdir ../$domain-temp |
We need Java in order to have Cassandra running since Cassandra 2.0 and later require Java 7 or later. And we need Cassandra in order to run Kong.
So lets start installing Java 8 (the newest one)
First we add a repository to our build in order to manage the Java 8 package, since that is not normally supported by Ubuntu.
sudo add-apt-repository ppa:webupd8team/java
### Installing Java7 | |
# Using Oracle Java 7 is not formally supported by Ubuntu. | |
# There's plenty solutions for installing it, listed on https://help.ubuntu.com/community/Java . | |
# | |
# The simplest one listed is this one: | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java7-installer | |
# It'll keep your java 7 installation up to date. |
# Manually secure port 6379 | |
sudo iptables -A INPUT -p tcp --dport 6379 -s xxx.xxx.xxx.xxx -j ACCEPT | |
sudo iptables -A INPUT -p tcp --dport 6379 -j DROP | |
sudo iptables -L | |
# Save current firewall config | |
# sudo iptables-save > /etc/iptables.conf | |
# Above removed - Mark | |
sudo bash -c "iptables-save > /etc/iptables.conf" |