This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |