Skip to content

Instantly share code, notes, and snippets.

View zeert's full-sized avatar
🏠
Working from home

Reinaldo Zurita zeert

🏠
Working from home
View GitHub Profile
@zeert
zeert / docker_commands.txt
Created January 5, 2021 03:00
Recetas docker
###############################################################################
# Helpful Docker commands and code snippets
###############################################################################
### CONTAINERS ###
docker stop $(docker ps -a -q) #stop ALL containers
docker rm -f $(docker ps -a -q) # remove ALL containers
docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter
# exec into container
@zeert
zeert / Tmux_init.sh
Created December 11, 2020 03:19
Iniciar Tmux en Zsh
if [ -z "$TMUX" ]
then
tmux attach -t TMUX || tmux new -s TMUX
fi
@zeert
zeert / tmux.conf
Last active December 11, 2020 17:27
Configuracion personalizada Tmux
# status bar
#set-option -g status-utf8 on
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
# default window title colors
# active window title colors
@zeert
zeert / Iptables.sh
Created December 8, 2019 02:33
Iptables Configuration #iptables #Linux
cargamos los modulos
/sbin/modprobe ip_tables
/sbin/modprobe iptable_nat
/sbin/modprobe ip_nat_ftp
/sbin/modprobe ip_conntrack
/sbin/modprobe ip_conntrack_ftp
# cambiamos la politica de las reblas de uso interno
# por defecto, denegaremos todas las entradas si no indicamos lo contrario
/sbin/iptables -P INPUT DROP
@zeert
zeert / .gitignore
Created August 26, 2019 23:48
Gitignore base
# Created by https://www.gitignore.io/api/node,linux,macos,maven,windows,intellij+all,visualstudiocode
# Edit at https://www.gitignore.io/?templates=node,linux,macos,maven,windows,intellij+all,visualstudiocode
### Intellij+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/**/workspace.xml
@zeert
zeert / laravel-browser-sync.sh
Last active July 21, 2019 03:34
Laravel & Browser Sync
# Primero hay que instalar las dependencias de BrowserSync con Yarn
yarn add browser-sync
# Despues añadir esto al final del body
<script id="__bs_script__">//<![CDATA[
document.write("<script async src='http://HOST:3000/browser-sync/browser-sync-client.js?v=2.26.7'><\/script>".replace("HOST", location.hostname));
//]]></script>
@zeert
zeert / remote_folders_fix.ps1
Created June 26, 2018 20:26
Gestor de Carpetas remotas
#Create local folder
if (Test-Path C:\MSTSC17677)
{
echo "C:\MSTSC17677" existing folder
}
else
{
New-Item -ItemType directory -path C:\MSTSC17677
}
@zeert
zeert / frontendDevlopmentBookmarks.md
Created March 10, 2017 12:04 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@zeert
zeert / gist:6e16d8dea953dbfe444b82511479367c
Created July 31, 2016 18:59
Simple Google Apps Script to export a single sheet to PDF and email it to a contact list
// Simple function to send Weekly Status Sheets to contacts listed on the "Contacts" sheet in the MPD.
// Load a menu item called "Project Admin" with a submenu item called "Send Status"
// Running this, sends the currently open sheet, as a PDF attachment
function onOpen() {
var submenu = [{name:"Send Status", functionName:"exportSomeSheets"}];
SpreadsheetApp.getActiveSpreadsheet().addMenu('Project Admin', submenu);
}
function exportSomeSheets() {
@zeert
zeert / README.md
Last active August 29, 2015 14:12 — forked from smileart/README.md

My modified fork of agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

Compatibility