A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
- NVM
- RVM
#!/bin/sh | |
set -e | |
# git-pass | |
# ======== | |
# This script allows easy usage of http://www.passwordstore.org/ with | |
# multiple, Git-managed stores. It works both as self-standing shell | |
# script (that can be committed to the repository itself), or as a Git | |
# subcommand (in which case it should reside somewhere in $PATH or in |
Remove osxfuse if installed via homebrew: | |
> brew uninstall osxfuse | |
Install osxfuse binary and choose to install the MacFUSE compatibility layer: | |
http://sourceforge.net/projects/osxfuse/files/latest/download?source=files | |
Reboot (optional but recommended by osxfuse) | |
Install ntfs-3g via homebrew: | |
> brew update && brew install ntfs-3g |
# http://stackoverflow.com/a/28818420/484780 | |
git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1` |
#!/bin/bash | |
set -e | |
for opt in $* ; do | |
case "$opt" in | |
--debug) hubot_debug="coffee --nodejs --debug";; | |
esac | |
done |
from __future__ import unicode_literals | |
import os | |
import sys | |
import requests | |
def get_emojis(token): | |
response = requests.get("https://slack.com/api/emoji.list", |
""" | |
Copies all keys from the source Redis host to the destination Redis host. | |
Useful to migrate Redis instances where commands like SLAVEOF and MIGRATE are | |
restricted (e.g. on Amazon ElastiCache). | |
The script scans through the keyspace of the given database number and uses | |
a pipeline of DUMP and RESTORE commands to migrate the keys. | |
Requires Redis 2.8.0 or higher. |
# Version key/value should be on his own line | |
PACKAGE_VERSION=$(cat package.json \ | |
| grep version \ | |
| head -1 \ | |
| awk -F: '{ print $2 }' \ | |
| sed 's/[",]//g') | |
echo $PACKAGE_VERSION |
defaults REDIS | |
mode tcp | |
timeout connect 3s | |
timeout server 6s | |
timeout client 6s | |
frontend ft_redis | |
bind *:6379 ssl crt /etc/haproxy/certificate.pem ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK | |
default_backend bk_redis |
$scope.solicitudIngresada = HorasMedicas.create( | |
{ | |
fecha: solicitudHora.fecha, | |
hora: solicitudHora.hora, | |
contacto: { email:solicitudHora.email, | |
telefono: solicitudHora.telefono | |
}, | |
sobrecupo: sobrecupo, | |
comentario: solicitudHora.comentario | |
}, function(err, horaCreada) { |