Skip to content

Instantly share code, notes, and snippets.

Avatar

Henrik henkealg

  • Sweden
View GitHub Profile
@henkealg
henkealg / setup-bare-repo.md
Last active Apr 20, 2020
Quick step by step guide to remote git bare repo setup
View setup-bare-repo.md

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

@henkealg
henkealg / functions.php
Last active May 15, 2017
Adds custom XML tags to the default WP RSS feed output.
View functions.php
<?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 / vg.sh
Last active Sep 1, 2016
Global shortcut shell script for faster access to vagrant boxes through the (pref. MacOS) terminal
View vg.sh
#!/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 / Connecting PHP 5.6 to MSSQL.md
Created Mar 2, 2016 — forked from joecampo/Connecting PHP 5.6 to MSSQL.md
Connecting PHP 5.6 to MSSQL - Ubuntu (Debian) w/ Apache
View Connecting PHP 5.6 to MSSQL.md
You can’t perform that action at this time.