Skip to content

Instantly share code, notes, and snippets.

@CsBigDataHub
CsBigDataHub / git-aliases.md
Created September 25, 2017 22:57 — forked from EQuimper/git-aliases.md
The Ultimate Git Alias Setup

The Ultimate Git Alias Setup

If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.

Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.

The simplest way to add an alias for a specific git command is to use a standard bash alias.

# .bashrc
@CsBigDataHub
CsBigDataHub / vsc.txt
Created September 25, 2017 22:58 — forked from EQuimper/vsc.txt
Visual Studio Code shortcuts
Shortcuts
- shift+cmd+d -> create same line below
- shift+cmd+f -> open search in project
- cmd+d -> select full word
- cmd+d + shift-cmd-g -> search word in file
- shift+cmd+enter -> new line before
- cmd+enter -> new line after
- cmd+arrow -> go the end
- ctrl-tab -> go back to the recent file
// Place your settings in this file to overwrite the default settings
{
"editor.fontSize": 15,
"editor.fontFamily": "Consolas",
"editor.tabSize": 2,
"editor.wordWrapColumn": 80,
"editor.fontLigatures": true,
"editor.snippetSuggestions": "top",
"editor.minimap.enabled": true,
"files.exclude": {
@CsBigDataHub
CsBigDataHub / .bash_profile
Created March 23, 2018 20:09 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
import org.apache.spark.sql.SparkSession
/**
* Created by vgiridatabricks on 3/24/18.
*/
object SparkXMLBlob {
def main(args: Array[String]): Unit = {
val spark = SparkSession
.builder()
.appName("Spark Blob Data in XML")
import org.apache.spark.SparkConf
import org.apache.spark.sql.SparkSession
/**
* Created by vgiridatabricks on 2/1/17.
*/
object SparkMultiThreading {
def main(args: Array[String]): Unit = {
val spark = SparkSession
import org.apache.spark.sql.SparkSession
import org.apache.spark.{SparkConf, SparkContext}
/**
* Created by vgiridatabricks on 8/19/16.
*/
object WholeStageCodeGenExample {
def main(args: Array[String]): Unit = {
import org.apache.spark.sql.{SQLContext, SparkSession}
import org.apache.spark.{SparkConf, SparkContext}
/**
* Created by vgiridatabricks on 8/13/16.
*/
object FileCompression {
case class DataFrameSample(name: String, actor: String, episodeDebut: String)
@CsBigDataHub
CsBigDataHub / spark_basic_build.sbt
Created March 25, 2018 16:48 — forked from vgiri2015/spark_basic_build.sbt
spark_final_build_sbt
name := "Spark2.0-and-greater"
version := "1.0"
//Older Scala Version
scalaVersion := "2.11.8"
val overrideScalaVersion = "2.11.8"
val sparkVersion = "2.0.0"
val sparkXMLVersion = "0.3.3"