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
tasks:
View firewall_rules.yml
tasks:
- name: Install iptables Persistent
apt: name=netfilter-persistent state=present update_cache=true
- name: Set Loop Back Rule
iptables:
chain: INPUT
in_interface: lo
jump: ACCEPT
comment: 'Accept all loop back traffic'
@codarrenvelvindron
codarrenvelvindron / fast_setup.sh
Created Mar 20, 2018
Prerequisites: Ubuntu, nvidia card, dev environment . Run as sudo user
View fast_setup.sh
#Add ubuntu package archive
echo "Adding ubuntu package archive to sources list"
sudo echo "deb-src http://archive.ubuntu.com/ubuntu/ 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
codarrenvelvindron / sudo_creator.sh
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.
View sudo_creator.sh
#!/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.