Skip to content

Instantly share code, notes, and snippets.

View glenntnorton's full-sized avatar

Glenn T Norton glenntnorton

View GitHub Profile
include /usr/share/nano/*.nanrc
# Remap prefix from 'C-b' to 'C-f'
unbind C-b
set-option -g prefix C-f
bind-key C-f send-prefix
# Improve colors
set -g default-terminal 'xterm-256color'
# Set scrollback buffer to 10000
set -g history-limit 10000
@glenntnorton
glenntnorton / .vimrc
Last active May 7, 2023 04:25
.vimrc
behave mswin
filetype on
filetype plugin on
"set lines=40 columns=120
set ai
set backspace=indent,eol,start
set dir=.
set expandtab
set foldmethod=marker
nmap -sn 192.168.1.100/24
@glenntnorton
glenntnorton / gist:d7cb608f5e5bd22b06b15b25ac9b1015
Created February 7, 2018 19:24
Quick PHP Password Hashing
<?php
$passwd = "swordfish";
$phash = password_hash($passwd, PASSWORD_DEFAULT);
if(password_verify($passwd, $phash)) {
echo "passwords match\n";
}
else {
echo "passwords do not match\n";
}
@glenntnorton
glenntnorton / gist:7cbc460f448da4b665f009883cc482a2
Created January 26, 2018 14:10
Add to phpMyAdmin.conf to work on Vagrant Centos/7
Require all granted
@glenntnorton
glenntnorton / centos7_provision.sh
Last active January 25, 2018 17:33
Vagrant provision script for CentOS7
#!/usr/bin/env bash
# changed init calls to systemctl
# update the box
sudo yum -y update
# apache2
sudo yum -y install httpd