Skip to content

Instantly share code, notes, and snippets.

View jorisros's full-sized avatar
⌨️
Brewing code

Joris Ros jorisros

⌨️
Brewing code
View GitHub Profile
@jorisros
jorisros / gist:2b58c291b62494c400a6a93a29763793
Created August 26, 2019 08:46 — forked from mre/gist:64672c481f8f1232d468e3e7169f4f77
Make a change in a composer vendor folder and push to branch
# Go into the directory of the vendor package that you changed
cd vendor/<owner>/<package>
# Create a new git repository (composer does not check out the full git repo by default. Only a sparse copy)
git init
# Create a new branch for your local changes
git checkout -b branchname
# Commit changes
@jorisros
jorisros / commands.md
Created May 14, 2018 12:42 — forked from ondrej-kvasnovsky/commands.md
Commands to install and configure ElasticSearch on Ubuntu

Install ElasticSearch and Java

1  wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb
2  sudo dpkg -i elasticsearch-1.0.1.deb
3  sudo update-rc.d elasticsearch defaults 95 10
4  sudo add-apt-repository ppa:webupd8team/java
5  sudo apt-get update
6  sudo apt-get install oracle-java7-installer
7  java -version
#!/bin/sh
curl "http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.23-osx10.9-x86_64.tar.gz" -o "mysql-5.6.23-osx10.9-x86_64.tar.gz"
tar xfvz mysql-5.6*
echo "stopping mamp"
sudo /Applications/MAMP/bin/stop.sh
sudo killall httpd mysqld
echo "creating backup"