For MacOS Catalina, visit Install mysql2 on MacOS Catalina
Installing mysql2
gem errors on MacOS Mojave.
Make sure openssl
is installed on Mac via Homebrew.
For MacOS Catalina, visit Install mysql2 on MacOS Catalina
Installing mysql2
gem errors on MacOS Mojave.
Make sure openssl
is installed on Mac via Homebrew.
#!/usr/bin/env ruby | |
# Implementación sencilla de un clon de cURL para utilizar en el examen. | |
# El script debe invocarse como un ejecutable (deberás darle permisos | |
# de ejecución con `chmod +x curl.rb`) y espera recibir los siguientes | |
# argumentos: | |
# - La URL a la cual realizar la petición | |
# - El método http a utilizar (opcional), que puede ser GET, POST o | |
# DELETE (si se omite se considera GET). | |
# - El cuerpo de la petición a realizar (opcional, sólo aplica en caso |
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# Original theme taken from https://github.com/jackharrisonsherlock/common - all credit goes to @jackharrisonsherlock | |
# Just copied this to further customize it. | |
# Prompt symbol | |
COMMON_PROMPT_SYMBOL="❯" | |
# Left Prompt | |
PROMPT='$(common_host)$(common_current_dir)$(common_rb_version)$(common_return_status)' |
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#428bca, 6.5%)", | |
"@brand-success": "#5cb85c", |
# This script has to be run as a root user | |
echo "* Updating system" | |
apt-get update | |
apt-get -y upgrade | |
echo "* Installing packages" | |
apt-get -y install build-essential libmagickcore-dev imagemagick libmagickwand-dev libxml2-dev libxslt1-dev git-core nginx redis-server curl nodejs htop | |
id -u deploy &> /dev/null | |
if [ $? -ne 0 ] |
#!/bin/bash | |
# Keep an updated local copy of Ruby on Rails | |
# and use it to run commands, rather than the | |
# version you might have installed as a gem | |
# on your system | |
# | |
# @author ncuesta | |
# Customize this with your own fork |
The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.
Add _site
to .gitignore
. The generated site should not be uploaded to Github since its gets generated by github.
#!/usr/bin/env php | |
<?php | |
/** | |
* Insist on committing some changes using fast:commit. | |
* This script takes at least one argument: | |
* + The changelist number. | |
* Optionally, you may indicate the maximum number of attempts desired. | |
*/ |
#!/bin/bash | |
### ### | |
## ## | |
# # | |
# Insist on committing some changes using fast:commit # | |
# This script takes at least one argument: # | |
# + The changelist number. # | |
# Optionally, you may indicate the maximum number of attempts # | |
# desired. # |