Skip to content

Instantly share code, notes, and snippets.

View JoeCrescoll's full-sized avatar

Jordy Crescoli JoeCrescoll

View GitHub Profile
@JoeCrescoll
JoeCrescoll / Homestead.yaml
Last active October 15, 2018 22:29
Exemple de configuration Homestead sur Windows. Attention au format des chemins sur le host !
---
ip: "192.168.10.10" # Adresse IP à utiliser sur le fichier hosts
memory: 2048
cpus: 1
provider: virtualbox
# Vérifiez qu'une paire de clés publique/privée existe en lançant la commande ls ~/.ssh sur Git Bash
# Si ce n'est pas le cas, générez-en une avec la commande ssh-keygen -o
authorize: ~/.ssh/id_rsa.pub
keys:
@JoeCrescoll
JoeCrescoll / after.sh
Last active May 16, 2024 06:11
Installs PostGIS extension on a Homestead box and enables it on a specific PostgreSQL database.
#!/bin/bash
# If you would like to do some extra provisioning you may
# add any commands you wish to this file and they will
# be run after the Homestead machine is provisioned.
#
# If you have user-specific configurations you would like
# to apply, you may also create user-customizations.sh,
# which will be run after this script.
@JoeCrescoll
JoeCrescoll / post_receive
Last active May 7, 2024 17:31
Post receive hook on a Git bare repo for a Laravel project deploy
#!/bin/bash
# Adapted from https://gist.github.com/noelboss/3fe13927025b89757f8fb12e9066f2fa
# Changes these variables values
TARGET="/home/poweruser/www/app"
GIT_DIR="/home/poweruser/menufinder.git"
BRANCH="master"
while read oldrev newrev ref
do