Skip to content

Instantly share code, notes, and snippets.

Codarren Velvindron codarrenvelvindron

Block or report user

Report or block codarrenvelvindron

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View start_firewall_rules.yml
- hosts: tls14
remote_user: secure
become: yes
become_method: sudo
View firewall_rules.yml
- name: Install iptables Persistent
apt: name=netfilter-persistent state=present update_cache=true
- name: Set Loop Back Rule
chain: INPUT
in_interface: lo
jump: ACCEPT
comment: 'Accept all loop back traffic'
codarrenvelvindron /
Created Mar 20, 2018
Prerequisites: Ubuntu, nvidia card, dev environment . Run as sudo user
#Add ubuntu package archive
echo "Adding ubuntu package archive to sources list"
sudo echo "deb-src xenial main" >> /etc/apt/sources.list
echo "Updating repo list"
sudo apt-get update
echo "Done.."
#Install graphics drivers
echo "Installing nvidia graphics drivers"
sudo apt-get purge nvidia
codarrenvelvindron /
Created Mar 20, 2018
Create sudo account and automatically switch to it through a shell script. Must be run as root. Works on Ubuntu, Fedora and should work on other linux distros as well.
#!/usr/bin/env bash
#Add sudo user
echo "Enter account name to make sudo"
read account
adduser $account
echo "Done.."
#Adding username to sudo group
echo "Adding $account to sudo"
usermod -aG sudo $account
You can’t perform that action at this time.