Skip to content

Instantly share code, notes, and snippets.

View ericktucto's full-sized avatar
😎
Happy

Erick Tucto ericktucto

😎
Happy
View GitHub Profile
@ericktucto
ericktucto / instalar-php-nginx-mysql-nodejs.xsh
Last active June 23, 2018 04:51
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é
#!/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",
@ericktucto
ericktucto / after.sh
Last active September 18, 2018 20:32
Script to create ssl on Homestead. Save file on ~/.homestead/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 / base16-shell-xonsh.xsh
Last active December 12, 2018 18:56
Script to change base16 shell themes
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))):