This file contains hidden or 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 | |
# Nginx installer script - Ruby On Rails example | |
# | |
# Pre-req: | |
# * Ubuntu Bionic (18.04) flavored distro | |
# * Script must be executed under the account of the web admininstrator | |
# * linux-devel-setup.sh - https://gist.github.com/WillSams/f17427b5a4f5bccc23d6efe1389b33ca | |
# * mongodb-setup.sh - https://gist.github.com/WillSams/3588b69c805acf07ccb278c55fd91302 | |
# |
This file contains hidden or 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 | |
# Nginx installer script - Keystone JS example | |
# | |
# Pre-req: | |
# * Ubuntu Bionic (18.04) flavored distro | |
# * Script must be executed under the account of the web admininstrator | |
# * linux-devel-setup.sh - https://gist.github.com/WillSams/f17427b5a4f5bccc23d6efe1389b33ca | |
# * mongodb-setup.sh - https://gist.github.com/WillSams/3588b69c805acf07ccb278c55fd91302 |
This file contains hidden or 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 | |
# Nginx installer script - Grandnode.NET example | |
# | |
# Pre-req: | |
# * Ubuntu Bionic (18.04) flavored distro | |
# * Script must be executed under the account of the web admininstrator | |
# * linux-devel-setup.sh - https://gist.github.com/WillSams/f17427b5a4f5bccc23d6efe1389b33ca | |
# * mongodb-setup.sh - https://gist.github.com/WillSams/3588b69c805acf07ccb278c55fd91302 | |
# |
This file contains hidden or 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 | |
# The 'get you set up w/ NodeJS, Ruby, and .NET on Linux' script | |
# | |
# Pre-req: Ubuntu Bionic (18.04) desktop or server | |
# | |
# Note: This script makes a few assumptions for you: | |
# 1) If you don't have RVM and Ruby installed, this script will download and source it for you. | |
# DO NOT EXECUTE this script if you already have Ruby installed and not currently using RVM. | |
# 2) If you don't have a ~/.npm-global available, this script will create it for you. |
This file contains hidden or 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 | |
# | |
# MongoDB script | |
# | |
# Pre-req: Ubuntu Bionic (18.04) flavored distro | |
# Note: To expose your server to the network, set bind to 0.0.0.0 in /etc/mongod.conf | |
# | |
# Recommended for first time users: create a VM, ssh into it, 'wget' the raw version of this gist. |
This file contains hidden or 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
var React = require('react') | |
var ReactDOM = require('react-dom') | |
var ContentEditable = require('react-wysiwyg') | |
class Example extends React.Component { | |
constructor(props){ | |
super(props) | |
this.state = { | |
text: '', | |
editing: false |
This file contains hidden or 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
set -o nounset # unset variables are errors | |
__ScriptVersion="2018.02.19" | |
__ScriptName="bowling-ruby_tdd_kata-Debian.sh" | |
__ScriptFullName="$0" | |
if [ -d $HOME/.rvm ]; then | |
echo "RVM /w Ruby is already installed on your machine." | |
else | |
echo "********************** RVM & RUBY INSTALL ************************" |
This file contains hidden or 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
#note: Kodi on Xbox One only sees it via the IP so just search available NFS servers instead of searching via hostname | |
sudo su | |
apt install nfs-kernel-server | |
cat > /etc/exports << EOF | |
/<path to music>/ 192.168.1.0/24(rw,sync,no_subtree_check) | |
/<path to movies>/ 192.168.1.0/24(rw,sync,no_subtree_check) | |
/<path to tv>/ 192.168.1.0/24(rw,sync,no_subtree_check) | |
EOF |
This file contains hidden or 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
sudo bash -c "apt update && sudo update -y" | |
sudo bash -c "apt install samba" | |
sudo smbpasswd -a # type in a password | |
sudo bash -c "echo ' | |
#################################################### | |
[videos] | |
path = $HOME/Pictures | |
available = yes | |
valid users = |
This file contains hidden or 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
#The "official" way on gorails has issues if Ruby is already installed. So, use the rvm method | |
mkdir ruby-dev && cd ruby-dev | |
sudo bash -c "apt update" | |
sudo bash -c "apt install gnupg2" | |
ln -s /usr/lib/chromium-browser/chromedriver /usr/local/bin | |
gpg2 --keyserver hkp://keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
curl -sSL https://get.rvm.io | bash -s stable |