Skip to content

Instantly share code, notes, and snippets.

View nmvega's full-sized avatar
🤗

N. Milton Vega nmvega

🤗
View GitHub Profile
@nmvega
nmvega / INTERACTIVE.PYSPARK.SHELL.README.txt
Last active February 3, 2020 23:44
I wrote this a while back because I wanted to interact with the PySpark shell from within the bpython(1) code-auto-complete enabled interpreter and/or WING IDE and/or any code-auto-complete enabled IDE for that matter. Simply invoking the supplied pyspark(1) command wasn't good enough, since there's no code intelligence to assist. While this was…
How to use this code.
NOTE: You can place all of the following in your .profile (or shell equivalent).
(1) linux$ export MASTER='yarn-client | local[NN] | spark://host:port'
(2) linux$ export SPARK_HOME=/usr/lib/spark # Your's will vary.
(3) linux$ export JAVA_HOME=/usr/java/latest # Your's will vary.
(4) linux$ export NAMENODE='vps00' # Your's will vary.
(5) linux$ export PYSTART=${PYTHONSTARTUP} # See in-line commends about the reason for the need for this alias to PYTHONSTARTUP.
(6) linux$ export HADOOP_CONF_DIR=/etc/hadoop/conf # Your's will vary. This one may not be necessary to set. Try and see.
@nmvega
nmvega / gist:24a49a402fba092a5f6eaaf40bfc5e12
Last active April 12, 2020 12:58
Fedora / CensOS '/etc/yum.repos.d/kubernetes.conf'. Enables retrieving this file during the build of Dockerfile with wget(1).
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
@nmvega
nmvega / .vimrc
Last active July 3, 2020 22:11
vimrc file configured to enable Python3 IDE behaviors.
" ========================================================================
" NOTE: Inline comments are not always allowed, so avoid them!
" ========================================================================
" ========================================================================
" SIMPLE SETUP INSTRUCTIONS (for any user).
" REMEMBER: If you update this file, update the GitHub Gist below, too!
" ========================================================================
" user$ cd ${HOME} && rm -rf ~/.vim/
" user$ curl -sLO https://gist.github.com/nmvega/97ab9e261ea872a45ecef43e91c80c0c/raw/.vimrc
@nmvega
nmvega / ccss.csv
Created September 22, 2022 20:24 — forked from philngo/ccss.csv
Common Core State Standards CSV
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 8 columns, instead of 7 in line 7.
id,content_type,category_id,category_name,grade_id,grade_name,item,description
CCSS.ELA-LITERACY.L.K.1,ELA-LITERACY,L,Language,K,Kindergarten,1,Demonstrate command of the conventions of standard English grammar and usage when writing or speaking.
CCSS.ELA-LITERACY.L.K.1.a,ELA-LITERACY,L,Language,K,Kindergarten,1a,Print many upper- and lowercase letters.
CCSS.ELA-LITERACY.L.K.1.b,ELA-LITERACY,L,Language,K,Kindergarten,1b,Use frequently occurring nouns and verbs.
CCSS.ELA-LITERACY.L.K.1.c,ELA-LITERACY,L,Language,K,Kindergarten,1c,"Form regular plural nouns orally by adding /s/ or /es/ (e.g., dog, dogs; wish, wishes)."
CCSS.ELA-LITERACY.L.K.1.d,ELA-LITERACY,L,Language,K,Kindergarten,1d,"Understand and use question words (interrogatives) (e.g., who, what, where, when, why, how)."
CCSS.ELA-LITERACY.L.K.1.e,ELA-LITERACY,L,Language,K,Kindergarten,1e,"Use the most frequently occurring prepositions (e.g., to, from, in, out, on, off, for, of, by, with)."
CCSS.ELA-LITERACY.L.K.1.f,ELA-LITERACY,L,Language,K,Kindergarten,