Skip to content

Instantly share code, notes, and snippets.

View emilorol's full-sized avatar

Emil Orol emilorol

  • Miami, FL
View GitHub Profile
@emilorol
emilorol / add_users.sh
Created April 4, 2019 21:16
Creating new Drupal users using old version of Drush from the shell script command line
#!/usr/bin/env bash
#
# Create users from list on the array and loop thru it to import them.
#
# List structure ( Important: elements have to be separated by a pipe ( | ) character )
#
# username|password|username@server.com|5|UserRoleName
#
# Note: the last two elements are for the user role. In the example the number "5" indicate
# the id of the role in Drupal and "UserRoleName" the name of the role
@emilorol
emilorol / register-self-signed-cert.sh
Created April 4, 2019 19:15
Get a self signed certificate in your local dev machine to show in the browser as a valid SSL. The current setup works for the RedHat / Centos family of distros. Original idea from: https://deliciousbrains.com/ssl-certificate-authority-for-local-https-development/ and most of the code is coming from here: https://gist.github.com/dobesv/13d4cb3cb…
#!/usr/bin/env bash
#
# Usage: dev_signed_cert.sh HOSTNAME
#
# Creates a CA cert and then generates an SSL certificate signed by that CA for the
# given hostname.
#
# After running this, add the generated dev_cert_ca.cert.pem to the trusted root
# authorities in your browser / client system.
#
@emilorol
emilorol / sublime-user-settings.json
Created November 20, 2018 20:04
Sublime Text 3 - user configuration
{
"close_windows_when_empty": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"default_line_ending": "unix",
"ensure_newline_at_eof_on_save": true,
"fallback_encoding": "UTF-8",
"font_face": "Operator Mono Light",
"font_size": 19,
"highlight_line": true,
"hot_exit": false,