SPC q q- quitSPC w /- split window verticallySPC w- - split window horizontallySPC 1- switch to window 1SPC 2- switch to window 2SPC w c- delete current windowSPC TAB- switch to previous bufferSPC b b- switch buffers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # (c) Wolfgang Ziegler // fago | |
| # | |
| # Inotify script to trigger a command on file changes. | |
| # | |
| # The script triggers the command as soon as a file event occurs. Events | |
| # occurring during command execution are aggregated and trigger a single command | |
| # execution only. | |
| # | |
| # Usage example: Trigger rsync for synchronizing file changes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <workflow-app xmlns='uri:oozie:workflow:0.4' name='sparkjob'> | |
| <start to='spark-process' /> | |
| <action name='spark-process'> | |
| <spark xmlns='uri:oozie:spark-action:0.1'> | |
| <job-tracker>${jobTracker}</job-tracker> | |
| <name-node>${nameNode}</name-node> | |
| <configuration> | |
| <property> | |
| <name>oozie.service.SparkConfigurationService.spark.configurations</name> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| call plug#begin() | |
| " NERDTree | |
| Plug 'scrooloose/nerdtree' | |
| " Git integration | |
| Plug 'tpope/vim-fugitive' | |
| Plug 'airblade/vim-gitgutter' | |
| " Linting |
Errors you'll see if a RestTemplate isn't defined
Consider defining a bean of type 'org.springframework.web.client.RestTemplate' in your configuration.
or
No qualifying bean of type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name := "playground" | |
| version := "1.0" | |
| scalaVersion := "2.10.4" | |
| libraryDependencies += "org.apache.spark" %% "spark-core" % "1.1.0" | |
| libraryDependencies += "net.sf.opencsv" % "opencsv" % "2.3" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.apache.hadoop.conf.Configuration; | |
| import org.apache.hadoop.fs.*; | |
| import org.apache.hadoop.io.IOUtils; | |
| import java.io.IOException; | |
| public class MyFileUtil { | |
| public static boolean copyMergeWithHeader(FileSystem srcFS, Path srcDir, FileSystem dstFS, Path dstFile, boolean deleteSource, Configuration conf, String header) throws IOException { | |
| dstFile = checkDest(srcDir.getName(), dstFS, dstFile, false); |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Includes HTTP-Header information in the output
Listing pods with kubectl get pods, then select a pod name and copy paste it into kubectl logs [pod name]
- I want to streamline my workflow and stop using the terminal
- learn more about kubernetes
- main kubernetes extension for Emacs out there is greedy for permissions