Skip to content

Instantly share code, notes, and snippets.

@nelsonenzo
nelsonenzo / Linux_Desktop_Provisioning.md
Last active February 11, 2020 11:17
Linux Desktop Environment Setup

Broadcom wireless adapter, if needed.

ANSWERE:
sudo apt install -y broadcom-sta-dkms

Inspection TOOLS:
sudo apt list | grep broadcom
broadcom-sta-dkms

sudo lspci | grep Network
@nelsonenzo
nelsonenzo / spec.md
Created October 15, 2019 13:06
Technical Spec Markdown Template

Summary

This is your tech spec’s abstract: the who/what/when/where/why of your entire proposal, made succinct. One or two sentences, keep it brief.

Background

Contextualize your project:

  • why build it?
  • What is the motivation?
  • What user problems are you attempting to solve?
  • What previous efforts, if any, have been made to solve this problem?

Keybase proof

I hereby claim:

  • I am nelsonenzo on github.
  • I am nelsonehernandez (https://keybase.io/nelsonehernandez) on keybase.
  • I have a public key whose fingerprint is 6C44 BBC6 35AC A777 45D0 BFD0 D53B A0A9 F8A7 C6B5

To claim this, I am signing this object:

@nelsonenzo
nelsonenzo / firebase_rules.json
Last active August 26, 2019 05:16
Firebase authentication with a python Flask backend
{
/* Visit https://firebase.google.com/docs/database/security to learn more about security rules. */
"rules": {
".read": "auth != null && auth.provider == 'anonymous' && auth.uid == 'SERVICE-ACCOUNT-CLIENT-ID'",
".write": "auth != null && auth.provider == 'anonymous' && auth.uid == 'SERVICE-ACCOUNT-CLIENT-ID'"
}
}
@nelsonenzo
nelsonenzo / letsencrypt-route53.md
Created February 15, 2018 21:06
Generate letsencrypt SSL certificates using acme.sh and Route53

letsencrypt + route53

what will you learn?

How to use letsencrypt to generate ssl certificates and keys locally for any domain you own, using DNS entries for domain ownership validation.

requirements

  • aws keys with rights to read/write AWS Route53 for the domain in question
  • bash
@nelsonenzo
nelsonenzo / .gitconfig
Created November 22, 2017 18:33
current ~/.gitconfig with "git shove" alias for pushing new branches upstream.
# This is Git's per-user configuration file.
[user]
name = Nelbo Baggins
email = myemail@gmail.com
[alias]
shove = "!git push --set-upstream origin \"$(git rev-parse --abbrev-ref HEAD)\""
@nelsonenzo
nelsonenzo / Gemfile
Created November 15, 2012 23:38
cap deploy script to for node.js
# A sample Gemfile
source "https://rubygems.org"
gem "capistrano"
gem "capistrano-node-deploy"
@nelsonenzo
nelsonenzo / jsonnotes.js
Created October 12, 2011 05:00
Javascript Notes and Helpers
Great Resource: http://www.json.org/js.html
// 99% of the time, you will want to be digest a json string from rails and read it into a javascript object.
response = JSON.parse(myJSONtext);
// then you can call the hash keys like they were methods
response.md5sum
response.file_name
// a reviver could be used as a pre-processor sort of, usually it will be left off.
@nelsonenzo
nelsonenzo / jqueryTools_fix.html
Created October 1, 2011 23:47
JQuery Tools Fix
First include JQuery tools:
<script src="http://cdn.jquerytools.org/1.2.6/jquery.tools.min.js"></script>
Then rename all it's functions
<script>
$.fn.jqt_tabs = $.fn.tabs;
$.fn.jqt_scrollable = $.fn.scrollable;
$.fn.jqt_tooltip = $.fn.tooltip;
$.fn.jqt_overlay = $.fn.overlay;
$ rails generate refinery_engine singular_model_name attribute:type [attribute:type ...]
note: to see all the options supported by the refinery_engine generator just run rails g refinery_engine
field type description
text a multiline visual editor
resource a link which pops open a dialog which allows the user to select an existing file or upload a new one
image a link which pops open a dialog which allows the user to select an existing image or upload a new one
string and integer a standard single line text input