Skip to content

Instantly share code, notes, and snippets.

View rafmagana's full-sized avatar

Rafael Magaña rafmagana

  • Colima, Mexico
View GitHub Profile
@rafmagana
rafmagana / unwatch-repos.js
Last active May 19, 2021 23:05
Unwatch multiple repositories at once in GiHub
/* USAGE
Go to https://github.com/watching
Paste this function in the console
e.g. unwatchRepos("rails|node|go")
That unwatches repos containing rails, node or go in the repo link.
*/
var unwatchRepos = (pattern) => {
var list = document.getElementsByClassName('repo-list')[0]
var rows = list.getElementsByClassName('js-subscription-row')
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
@rafmagana
rafmagana / .bash_profile
Created September 11, 2013 15:27
My .bash_profile (Mac)
set -o vi
bind -m vi-insert "\C-l":clear-screen
function aliaz
{
if [ -n "$1" ]
then
read COMMAND ALIAS <<<$(IFS="="; echo $1)
if command -v $COMMAND > /dev/null 2>&1
then
[
{
"city":"800-PIN",
"state":"--",
"country":"United States",
"countryDialingCode":"1",
"areaCode":"999"
}
,
{