Skip to content

Instantly share code, notes, and snippets.

@henkealg
henkealg / Connecting PHP 5.6 to MSSQL.md
Created March 2, 2016 08:02 — forked from joecampo/Connecting PHP 5.6 to MSSQL.md
Connecting PHP 5.6 to MSSQL - Ubuntu (Debian) w/ Apache
@henkealg
henkealg / vg.sh
Last active September 1, 2016 08:16
Global shortcut shell script for faster access to vagrant boxes through the (pref. MacOS) terminal
#!/bin/bash
match=0
project=${1-none}
action=${2-up}
# --- place this script in the /usr/local/bin foder with permissions -rwxrwxrwx
# --- only strings in CAPITAL LETTERS below should be edited
# --- update the path variable to point to your local project folder root, ending without slash
# --- example: /User/henkealg/Documents/web_projects
@henkealg
henkealg / functions.php
Last active May 15, 2017 12:30
Adds custom XML tags to the default WP RSS feed output.
<?php
/*
Adds custom tags to the default WP RSS feed output
Reference: https://codex.wordpress.org/Plugin_API/Action_Reference/rss2_item
*/
function rss_add_custom_tags() {
global $post;
@henkealg
henkealg / setup-bare-repo.md
Last active August 22, 2024 12:21
Quick step by step guide to remote git bare repo setup

Quick step by step guide to remote git bare repo setup

For controlled delivery/deployment of your project to custom remote git repositories.

Remote server setup

Replace %%repo-name%% with your custom name for the remote bare repo you are creating. I prefer using /var/git as the recipient folder but this can be any folder for witch the user has read/write access.

On the remote/recipient server Create and navigate to the target folder