Skip to content

Instantly share code, notes, and snippets.

Steven Lee witwall

Block or report user

Report or block witwall

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@devin-petersohn
devin-petersohn / blog_post_20181025_modin.ipynb
Last active Nov 13, 2018
Modin blog - October 25, 2018
View blog_post_20181025_modin.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dtheodor
dtheodor / install_mariadb_columnstore_centos_7_2.md
Last active Dec 3, 2018
Install MariaDB 1.08 Columnstore on Centos 7.2
View install_mariadb_columnstore_centos_7_2.md
@bradfordcp
bradfordcp / README.md
Last active Aug 8, 2019
Setting up Apache Spark to use Apache Shiro for authentication of Spark Master dashboard.
View README.md

Securing Apache Spark with Apache Shiro

  1. Download shiro-core-1.2.5.jar Apache Shiro Downloads
  2. Download shiro-web-1.2.5.jar Apache Shiro Downloads
  3. Note the location of the JAR files and shiro.ini. I placed it in the root of my Spark download
  4. Update the spark-env.sh file with the Shiro JARs and add an entry for the path where the shiro.ini resides
  5. Start the Spark master sbin/start-master.sh
  6. Navigate to the Spark master dashboard
  7. Authenticate with credentials in shiro.ini

Note this was developed / tested with Apache Spark 1.4.1, but should work with newer versions as well.

@janikvonrotz
janikvonrotz / SQL Cheat Sheet.md
Last active Aug 6, 2019
SQL Cheat Sheet#SQL#Markdown
View SQL Cheat Sheet.md

SQL languages

DDL is short name of Data Definition Language, which deals with database schemas and descriptions, of how the data should reside in the database.

DML is short name of Data Manipulation Language which deals with data manipulation, and includes most common SQL statements such SELECT, INSERT, UPDATE, DELETE etc, and it is used to store, modify, retrieve, delete and update data in database.

DCL is short name of Data Control Language which includes commands such as GRANT, and mostly concerned with rights, permissions and other controls of the database system.

Datatypes

Text types

@rajeevkannav
rajeevkannav / pdf2htmlEX.sh
Last active Jun 25, 2019
Install CMake, pkg-config,GNU Getopt,GCC,poppler,fontforge,pdf2htmlEX in Ubuntu 15.05
View pdf2htmlEX.sh
#!/bin/bash
# Ubuntu Developer Script For pdf2htmlEx
# Created by Rajeev Kannav Sharma
# http://rajeevkannav.github.io/
#
#
# Downloads and configures the following:
#
# CMake, pkg-config
# GNU Getopt
View export.py
import requests
import re
import sys
tags = ['', 'python', 'javascript', 'django', 'web', 'google', 'java', 'ajax',
'rails', 'plugin', 'android', 'cplusplus', 'mysql', 'dotnet', 'game',
'appengine', 'php', 'flash', 'jquery', 'database', 'gwt']
seen_tags = set(tags)
@hrbrmstr
hrbrmstr / app.R
Last active Sep 13, 2017
Example basic shinydashboard framework
View app.R
library(shiny)
library(shinydashboard)
library(sparkline)
library(httr)
library(jsonlite)
library(data.table)
library(dplyr)
library(rvest)
library(magrittr)
library(XML)
@aurora-mareviv
aurora-mareviv / RStartAndroid.R
Created Sep 30, 2014
Script to start playing with R on Android
View RStartAndroid.R
###########################################
### COMMANDS TO START WITH R ON ANDROID ###
###########################################
# Under GNU-GPL license
# R in Android installed via the apps "GNURoot" and "GNURoot Wheezy", and sources.list updated with the newest CRAN repositories.
# I strongly recommend to set the working directory of R to a folder that can be accessed from Android such as /sdcard
setwd("/sdcard/R")
@lavoiesl
lavoiesl / process-mysqldump.c
Last active Mar 5, 2018
Add newlines before parenthesis for a SQL mysqldump
View process-mysqldump.c
// gcc -O2 -Wall -pedantic process-mysqldump.c -o process-mysqldump
// Usage: cat dump.sql | process-mysqldump
// Or : process-mysqldump dump.sql
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#define BUFFER 100000
@tevino
tevino / n2n_v2_osx_fix.diff
Created Mar 27, 2014
This fix an error about the function `tun_close` in n2n_v2(r7394 tested) when compiling on OS X
View n2n_v2_osx_fix.diff
If you see the error message below, you may need this patch:
Undefined symbols for architecture x86_64:
"_tun_close", referenced from:
_tuntap_open in n2n.a(tuntap_osx.o)
ld: symbol(s) not found for architecture x86_64
# How to use
If you got the source code from official repository, like me:
svn co https://svn.ntop.org/svn/ntop/trunk/n2n
You can’t perform that action at this time.