Issue name
Draft|Proposed|Fixed|Deprecated|Rejected
Where Draft: Working on a proposal.
#!/bin/bash | |
# Tail an apache log an put some colors into the output | |
# www.davideg.es | |
shopt -s expand_aliases | |
alias grey-grep="GREP_COLOR='1;30' grep -E --color=always --line-buffered" | |
alias red-grep="GREP_COLOR='1;31' grep -E --color=always --line-buffered" | |
alias green-grep="GREP_COLOR='1;32' grep -E --color=always --line-buffered" | |
alias yellow-grep="GREP_COLOR='1;33' grep -E --color=always --line-buffered" |
#!/usr/bin/perl | |
# ---------------------------------------------------------------------------- | |
# Ejecuta ciertas tareas cuando un fichero se descarga. | |
# Info amule: http://wiki.amule.org/index.php/Events | |
# | |
# Tareas ejecutadas: | |
# - Se crean tantos enlaces duros como carpetas existan en @folders. Al tener | |
# cada usuario una carpeta independiente esto posibilita que un usuario se | |
# descargue un fichero y lo pueda eliminar inmediatamente. | |
# El fichero existira hasta que todos los usuarios lo borren. |
# Description | |
# =========== | |
# This will change your prompt to something useful like: | |
# | |
# david@dgarciapc/fix-flux-capacitor:~/projects/manhattan #2 :) $ | |
# ----- ----- ----- ----- - | | |
# | | | | | | |
# user hostname git branch current folder jobs last command result | |
# | |
# If the last command exit with an error the last bit will change to :( |
" vim:fdm=marker | |
" Info {{{ | |
" Description: | |
" This vimrc starts a new mysql terminal automatically providing syntax | |
" highlighting and other features to the mysql client. | |
" Check the mappings to see some useful stuff. | |
" | |
" Installation: | |
" If you you are using vundle in your normal vim just copy this file to |
################################################################################ | |
# ------------------------- | |
# BASH PROMPT CONFIGURATION | |
# ------------------------- | |
# Description: | |
# Shows a nicer bash prompt: | |
# ▶ 🖳 mypc ▶ documents ▶ ⎇ master ▶ 𝍠 ✔ | |
# -------- --------- ---------- --- ----- | |
# | | | | | | |
# hostname folder git branch jobs last command result |
+-------------------------------------------------------------------------------------------------------------------------------+ | |
| Feature Perl Python | | |
+-------------------------------------------------------------------------------------------------------------------------------+ | |
| Documentation perlpod docstrings | | |
| check doc perldoc MODULE class.__doc__ | | |
| Filter grep { COND } @array [ x for x in list if COND ] | | |
| Format strings "x: $x" "x: {}".format(x) | | |
| "x: {x}" |
/* | |
Usage: | |
1. Go to some BGA Carcassonne game, review, | |
and jump to the point you are interested in. | |
2. Open developer console (F12) | |
3. Go to console tab. | |
4. Paste code below. | |
Alternative to that, you can create a new bookmark in your browser pointing at: |
/** | |
* This Google Sheets script keeps data in the specified column sorted any time | |
* the data changes. | |
* | |
* After much research, there wasn't an easy way to automatically keep a column | |
* sorted in Google Sheets, and creating a second sheet to act as a "view" to | |
* my primary one in order to achieve that was not an option. Instead, I | |
* created a script that watches for when a cell is edited and triggers | |
* an auto sort. | |
* |