Skip to content

Instantly share code, notes, and snippets.

View rgjr's full-sized avatar
🌮
Playing with GraphQL

Raul Gutierrez rgjr

🌮
Playing with GraphQL
  • Los Angeles, California
View GitHub Profile
@rgjr
rgjr / send_email.py
Created August 1, 2014 18:32
Sending an email via python while reading a text file
#!/usr/bin/python -tt
from email.mime.text import MIMEText
from datetime import date
import smtplib, sys, csv
#Set up the SMTP server info
#TODO add response for username password and store info locally (obviously don't want you to have my info :] )
SMTP_SERVER = #mail server, example: "smtp.gmail.com"
SMTP_PORT = #example: gmail "587"
//Settings go here
@rgjr
rgjr / slack_dark.css
Last active March 14, 2017 17:50
slack_dark_mode
@-moz-document regexp("https://[^./]*\\.slack\\.com/(?!pricing)(?!security).*") { body { background: #222; color: #e6e6e6; }
a { color: #949494; }
a:link, a:visited { color: #949494; }
a:hover, a:active, a:focus { color: #c7c7c7; }
hr { border-bottom: 1px solid #424242; border-top: 1px solid #222; }
h1, h2, h3, h4 { color: #e6e6e6; }
h1 a { color: #e6e6e6; }
h1 a:active, h1 a:hover, h1 a:link, h1 a:visited { color: #e6e6e6; }
.bordered { border: 1px solid #363636; }
.top_border { border-top: 1px solid #363636; }
@rgjr
rgjr / hyperborder-vaporwave-config.txt
Last active October 1, 2018 23:54
HyperBorder Vaporwave Config
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@rgjr
rgjr / dark_slack_2.css
Created November 30, 2018 00:44
new dark slack
body { background: #222; color: #e6e6e6; }
a { color: #949494; }
a:link, a:visited { color: #949494; }
a:hover, a:active, a:focus { color: #c7c7c7; }
hr { border-bottom: 1px solid #424242; border-top: 1px solid #222; }
@rgjr
rgjr / instructions.md
Created December 5, 2018 23:35 — forked from sveggiani/instructions.md
[Configure XDebug, Visual Studio Code for a Vagrant VM] #debug #vm #vscode

Configure XDebug, Visual Studio Code for a Vagrant VM

1. Assumptions

  • Project (Drupal) is served on /var/www/html in the Vagrant box
  • Local project files location: c:\Users\username\Work\projects\my-project\repo\html
  • Guest machine IP is 10.0.2.2 (if this doesn't work, run route -nee in the VM and look for the gateway address)

2. Configuration

# https://slackthemes.net
#1f1f1f,#424242,#424242,#00ff1a,#424242,#ff0000,#0e5400,#e74c3c
##
# add this to your provision.sh
#
# [!] run as 'vagrant' like this:
# su vagrant -c "source ${PROVISION_DIR}/provision-node.sh"
#
# [!] please keep the echo messages.
# [!] those actions could take some more time without any output, so let the user know.
#
# NVM info: https://github.com/creationix/nvm#usage