- You will need to do some things as 'root':
sudo su- The following command will redirect the port using iptables
/sbin/iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080- Then save your settings
| # Run this one-liner from the Sublime Text console if you need to revert all open documents | |
| [ view.run_command('revert') for view in sublime.Window.views(sublime.active_window()) ] |
| <snippet> | |
| <content><![CDATA[ | |
| /* ${1:<Section Name>} | |
| -------------------------------------------------------------------------- */ | |
| ]]></content> | |
| <tabTrigger>/*-</tabTrigger> | |
| </snippet> |
| # Bash completion for Yeoman generators - tested in Ubuntu, OS X and Windows (using Git bash) | |
| function _yo_generator_complete_() { | |
| # local node_modules if present | |
| local local_modules=$(if [ -d node_modules ]; then echo "node_modules:"; fi) | |
| # node_modules in /usr/local/lib if present | |
| local usr_local_modules=$(if [ -d /usr/local/lib/node_modules ]; then echo "/usr/local/lib/node_modules:"; fi) | |
| # node_modules in user's Roaming/npm (Windows) if present | |
| local win_roam_modules=$(if [ -d $(which yo)/../node_modules ]; then echo "$(which yo)/../node_modules:"; fi) | |
| # also, node_modules in nodebrew current | |
| local nodebrew_modules=$(if [ -d ${HOME}/.nodebrew/current/lib/node_modules ]; then echo "${HOME}/.nodebrew/current/lib/node_modules:"; fi) |
| function waterfall() { | |
| var args = [].slice.call(arguments); | |
| var next = args.shift(); | |
| if (!next) return; | |
| next(); // @todo: check if it's a Promise | |
| setTimeout(function() { waterfall.apply(null, args); }, 100); | |
| } | |
| // Sample usage: | |
| waterfall( |
| # Install bash-completion on Amazon Linux | |
| wget http://www.caliban.org/files/redhat/RPMS/noarch/bash-completion-20060301-1.noarch.rpm | |
| sudo rpm -ivh bash-completion-20060301-1.noarch.rpm | |
| rm bash-completion-20060301-1.noarch.rpm | |
| . /etc/bash_completion |
sudo su/sbin/iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080| #!/bin/bash | |
| ############################################### | |
| # To use: | |
| # chmod +x install-redis.sh | |
| # ./install-redis.sh | |
| ############################################### | |
| version=3.2.0 | |
| echo "*****************************************" | |
| echo " 1. Prerequisites: Install updates, set time zones, install GCC and make" |
| # Install linux update, followed by GCC and Make | |
| sudo yum -y update | |
| sudo yum install -y gcc make | |
| # Install Nginx and PHP-FPM | |
| sudo yum install -y nginx php-fpm | |
| # Install PHP extensions | |
| sudo yum install -y php-devel php-mysql php-pdo \ | |
| php-pear php-mbstring php-cli php-odbc \ |
| # file: /root/.bashrc | |
| alias vi='vim' |
A Framefy é uma plataforma de soluções para potencializar a produção de vídeos de maneira simples, acessível e personalizada, tanto para empresas como profissionais de criação ao redor do mundo.
Nível: Pleno
Modelo de contratação: PJ
Indústria: Tecnologia da Informação e Serviços