Skip to content

Instantly share code, notes, and snippets.

View RogerCreasy's full-sized avatar

Roger Creasy RogerCreasy

View GitHub Profile
@RogerCreasy
RogerCreasy / project.sh
Created February 22, 2018 13:01
snippet for .alias file - allows cli easy access to projects
project() {
if [ $# -eq 0 ]; then
echo "Please supply a project direcory or '/' for the root dir"
elif [ $1 = '/' ]; then
cd /media/windows-data/projects
else
cd /media/windows-data/projects/$1
# $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/local/bin:/usr/bin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /home/rcreasy/.ssh/config
debug1: /home/rcreasy/.ssh/config line 47: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "xx.xx.xx.xx" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to xx.xx.xx.xx [xx.xx.xx.xx] port 22.
debug1: Connection established.
debug1: identity file /home/rcreasy/.ssh/id_rsa type 1
@RogerCreasy
RogerCreasy / NewUser.sh
Created August 3, 2016 13:13
Add Samba User
#!/bin/bash
#
# Ensure that root is running the script.
##
WHOAMI=`/usr/bin/whoami`
if [ $WHOAMI != "root" ]; then
echo "You must be root to add news users!"
exit 1
fi
#
@RogerCreasy
RogerCreasy / 0_reuse_code.js
Created April 6, 2016 20:46
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console