Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
############################################################################### | |
# 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 |
if [ -z "$TMUX" ] | |
then | |
tmux attach -t TMUX || tmux new -s TMUX | |
fi |
# 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 |
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 |
# 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 |
# 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> | |
#Create local folder | |
if (Test-Path C:\MSTSC17677) | |
{ | |
echo "C:\MSTSC17677" existing folder | |
} | |
else | |
{ | |
New-Item -ItemType directory -path C:\MSTSC17677 | |
} |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
// 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() { |