Skip to content

Instantly share code, notes, and snippets.

View frederickjh's full-sized avatar

Frederick Henderson frederickjh

  • Hawaiian Acres, HI USA
View GitHub Profile
@frederickjh
frederickjh / .htaccess
Last active October 20, 2017 09:50 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
How to force HTTPS using the .htaccess file
To force all web traffic to use HTTPS insert the following lines of code in the .htaccess file in your website’s root folder.
Important:If you have existing code in your .htaccess, add this above where there are already rules with a similar starting
prefix.
# Redirect to SSL version of a site without needing to set the domain name,
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
@frederickjh
frederickjh / install_fish_shell_locally.sh
Last active November 15, 2019 00:18 — forked from eugenesvk/fish_shell_local_install.sh
Installs Fish Shell without root access
#! /bin/bash
# Bash script for installing Fish Shell on systems without root access
# Fish Shell will be installed in $HOME/local/bin
# It's assumed that wget and a C/C++ compiler are installed
set -e # exit on error
FISH_VER=2.2.0
mkdir -p $HOME/local $HOME/fish_shell_tmp # create our directories
cd $HOME/fish_shell_tmp