Skip to content

Instantly share code, notes, and snippets.

😎
Happy

Erick Tucto ErickTucto

😎
Happy
Block or report user

Report or block ErickTucto

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ErickTucto
ErickTucto / base16-shell-xonsh.xsh
Last active Dec 12, 2018
Script to change base16 shell themes
View base16-shell-xonsh.xsh
def base16(arg):
# Helpers
def s(cmd):
return cmd.strip('\n') if type(cmd) is str else cmd
def l(cmd):
return cmd.split("\n")[:-1] if type(cmd) is str else cmd
def all_themes():
for theme in l(s($(ls -1 $BASE16_SHELL/scripts))):
@ErickTucto
ErickTucto / after.sh
Last active Sep 18, 2018
Script to create ssl on Homestead. Save file on ~/.homestead/after.sh
View after.sh
#!/usr/bin/env bash
# Post: https://laracasts.com/discuss/channels/tips/tip-how-to-enable-ssl-in-homestead-20
# Populate this array with each of your dev site hostnames.
sites_hosts=( app.local ) # array, e.g., www.example.dev
# Config for SSL.
SSL_DIR="/etc/nginx/ssl"
PASSPHRASE="secret"
@ErickTucto
ErickTucto / instalar-php-nginx-mysql-nodejs.xsh
Last active Jun 23, 2018
En este script para xonsh coloco las instrucciones necesarias para instalar PHP Mysql Nginx y Nodejs... Atención este gist no está completado, pero en esto dias lo terminaré
View instalar-php-nginx-mysql-nodejs.xsh
#!/usr/bin/env xonsh
distro = "trusty"
url_nginx = "http://nginx.org/packages/debian/"
paquetes_php = [
"php7.2",
"php7.2-cgi",
"php7.2-cli",
"php7.2-curl",
"php7.2-dev",
You can’t perform that action at this time.