start new:
tmux
start new with session name:
tmux new -s myname
#! /bin/bash | |
#Autor: B4R0n | |
#Agradecimentos: Alexandre, Carlos, C00ler_, D3lf0, rem | |
# | |
echo "Configurando Firewall (basico) .." | |
iptables -N basic-chain | |
iptables -A basic-chain -j LOG | |
#ping da morte e scans default de nmap (noobs) |
#Autor: B4R0n | |
#Organizacao: geekvigarista.com | |
#Agradecimentos: Alexandre, Carlos, C00ler_, D3lf0, Tito, Sexta ... | |
# | |
#minha interfaces de rede | |
if_ext = "{re0 wlan0}" | |
#tabela dos fdp | |
table <fdp> persist | |
# Nao filtra na interface loopback |
# -*- coding: UTF-8 -*- # ################################################### | |
# # | |
# mvps_hosts - Sync MVPS HOSTS # | |
# # | |
# DESCRIPTION # | |
# The Sync MVPS HOSTS backup your hosts file ... download the mvps hosts # | |
# and join into the new hosts file... if you need add or remove a custom host # | |
# change the older file "/etc/hosts_bak" # | |
# # | |
# REQUERIMENT # |
#Add this code in ApplicationController | |
before_filter do | |
resource = controller_name.singularize.to_sym | |
method = "#{resource}_params" | |
params[resource] &&= send(method) if respond_to?(method, true) | |
end |
if (typeof window.localStorage == 'undefined' || typeof window.sessionStorage == 'undefined') (function () { | |
var Storage = function (type) { | |
function createCookie(name, value, days) { | |
var date, expires; | |
if (days) { | |
date = new Date(); | |
date.setTime(date.getTime()+(days*24*60*60*1000)); | |
expires = "; expires="+date.toGMTString(); |
// Sample grunt-jekyll grunt.js file | |
// https://github.com/dannygarcia/grunt-jekyll | |
/*global module:false*/ | |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
jekyll: { |
alias fig='docker run --rm -it \ | |
-v $(pwd):/app \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-e FIG_PROJECT_NAME=$(basename $(pwd)) \ | |
dduportal/fig' | |
# soucer https://github.com/docker/fig/issues/598#issuecomment-62174187 |
1 - Download from http://static.dockerfiles.io/boot2docker-v1.1.2-virtualbox-guest-additions-v4.3.12.iso | |
2 - Move to $HOME\.boot2docker | |
3 - /c/Program\ Files/Oracle/VirtualBox/VBoxManage.exe sharedfolder add boot2docker-vm -name home -hostpath $HOME |
xrandr --output $SEC_SCREEN --right-of $MAIN_SCREEN |