Skip to content

Instantly share code, notes, and snippets.

View eitchugo's full-sized avatar

Hugo Cisneiros eitchugo

View GitHub Profile
@eitchugo
eitchugo / sunrise.php
Created March 6, 2024 21:36
Sunrise to allow different domains for administration on a Wordpress multi-site blog
<?php
/**
* File sunrise.php
*
* This file is read and run before most of wordpress functionality. Here we will allow
* all multi-site blogs administration interfaces to work on another domain (usually inside
* a VPN).
*/
if (!function_exists('sunrise_modify_domain')):
/**
@eitchugo
eitchugo / ocp-project-snapshot.sh
Created May 4, 2020 21:33
OpenShift Project Snapshot for Troubleshooting
#!/bin/bash
#
# check oc/login
oc whoami 1> /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "ERROR: You need to be logged in the cluster with 'oc' before running this."
exit 1
fi