Skip to content

Instantly share code, notes, and snippets.

View Avidproducers's full-sized avatar

Avidproducers

View GitHub Profile
@Avidproducers
Avidproducers / iptables.sh
Created March 7, 2017 13:32
Simple Ubuntu Firewall Kickstart
#!/bin/bash
#Simple Firewall Script.
#Setting up default kernel tunings here (don't worry too much about these right now, they are acceptable defaults)
#DROP ICMP echo-requests sent to broadcast/multi-cast addresses.
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
#DROP source routed packets
echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route
#Enable TCP SYN cookies
@Avidproducers
Avidproducers / BackRe_ubuntu_server.md
Created August 30, 2016 23:08 — forked from CodeWire/BackRe_ubuntu_server.md
Backup & Restore Ubuntu Server The Simple Way

How I Backup My Ubuntu Server & Restore To Another Ubuntu Instance

How to backing up Ubuntu server and restoring to another Ubuntu instance

It is adviced to make TWO backups. 1 for / and 1 for /home if they are on different partition. If you want one you will have to add a lot of exceptions to that one command. Example:

1. Open Terminal

sudo -i cd /

@Avidproducers
Avidproducers / setup.md
Created August 25, 2016 14:16 — forked from rtelicak/setup.md
Larave & beanstalkd setup
@Avidproducers
Avidproducers / codewire.md
Created August 17, 2016 03:57 — forked from CodeWire/codewire.md
CodeWire Signature

It's the simple things in life which can make the biggest impact! The beauty in art is the vision for those who see it..

1. Install Figlet

Use yum or apt-get to install the tools:

sudo apt-get update
sudo apt-get install toilet figlet 
@Avidproducers
Avidproducers / fix-mac-homestead-v_2_0.md
Last active August 18, 2016 02:24
How to fix homestead 2.0 on your MAC so everything works including edit

How to fix homestead 2.0 on your MAC & install Laravel 4.2 so everything works including Homestead edit!

1. Removing composer if installed and if the directory/files exist; otherwise do nothing and complete back to prompt

Making this a safe option for everyone using a MAC!

rm -rf ~/.composer
rm -rf ~/composer-setup.php
rm -rf ~/composer.phar
rm -rf /usr/local/bin/.composer
rm -rf /usr/local/bin/composer
@Avidproducers
Avidproducers / composer_install.md
Last active August 14, 2016 04:44
How to install Composer Globally the simple way

Manual Method

I found an easier way to globally install composer than the manual proscribed in the github readme.md. It's actually on the getcomposer.org website:

curl -s http://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/
@Avidproducers
Avidproducers / install-oh-my-zsh.md
Last active August 12, 2016 12:54
init-oh-my-zsh.sh

Installing Curl, VIM, Git, & ZSH in an Ubuntu OS

Oh My Zsh is an open source, community-driven framework for managing your [zsh](http://www.zsh.org/) configuration. That sounds boring. Let's try this again.

Oh My Zsh is a way of life! Once installed, your terminal prompt will become the talk of the town or your money back! Each time you interact with your command prompt, you'll be able to take advantage of the hundreds of bundled plugins and pretty themes. Strangers will come up to you in cafés and ask you, "that is amazing. are you some sort of genius?" Finally, you'll begin to get the sort of attention that you always felt that you deserved... or maybe you'll just use the time that you saved to start flossing more often.

Oh My Zsh