Skip to content

Instantly share code, notes, and snippets.

View tjventurini's full-sized avatar
💭
🚀

Thomas 𝕍enturini tjventurini

💭
🚀
View GitHub Profile
@tjventurini
tjventurini / de_countries.php
Last active November 16, 2021 11:59 — forked from vxnick/gist:380904
Array of country codes (ISO 3166-1 alpha-2) and corresponding names
<?php
/*
|--------------------------------------------------------------------------
| Country Codes
|--------------------------------------------------------------------------
|
| Array of available country codes to generate form fields and stuff like
| that.
|

Using Git to Manage a Live Web Site

Overview

As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.

Contents

@tjventurini
tjventurini / laravel_post_receive hook
Last active November 11, 2018 00:05 — forked from vool/laravel_post_receive hook
Post receive hook for Laravel website deploy
#!/bin/bash
echo "********************"
echo "Post receive hook: Updating website"
echo "********************"
#set the git repo dir
GIT_REPO_DIR=~/git/<repo>.git
echo "The git repo dir is $GIT_REPO_DIR"