Skip to content

Instantly share code, notes, and snippets.

View dynamicguy's full-sized avatar
🎯
Focusing

Nurul Ferdous dynamicguy

🎯
Focusing
View GitHub Profile
@dynamicguy
dynamicguy / df.py
Created November 28, 2015 18:28 — forked from rxin/df.py
DataFrame simple aggregation performance benchmark
data = sqlContext.load("/home/rxin/ints.parquet")
data.groupBy("a").agg(col("a"), avg("num")).collect()
$ whatweb -v https://www.doroob.sa ‹system›
https://www.doroob.sa/ [302]
https://www.doroob.sa [302] HTTPServer[Microsoft-IIS/6.0], IP[185.63.233.57], Microsoft-IIS[6.0], RedirectLocation[https://www.doroob.sa/ar/], UncommonHeaders[x-content-type-options]
URL : https://www.doroob.sa
Status : 302
HTTPServer -----------------------------------------------------------------
Description: HTTP server header string. This plugin also attempts to
identify the operating system from the server header.
String : Microsoft-IIS/6.0 (from server string)
@dynamicguy
dynamicguy / error.html
Created October 13, 2015 15:27
khujun.com error template
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.thymeleaf.org ">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Your request cannot be processed</title>
<style>
::-moz-selection {
background: #b3d4fc;
text-shadow: none;
$ ./whatweb -v https://yaoota.com
https://yaoota.com/ [301]
https://yaoota.com [301] Apache[2.2.22], Country[GERMANY][DE], HTTPServer[Debian Linux][Apache/2.2.22 (Debian)], IP[148.251.69.208], RedirectLocation[https://yaoota.com/en/], UncommonHeaders[x-content-type-options,strict-transport-security], X-Frame-Options[DENY], X-XSS-Protection[1; mode=block]
URL : https://yaoota.com
Status : 301
Apache ---------------------------------------------------------------------
Description: The Apache HTTP Server Project is an effort to develop and
maintain an open-source HTTP server for modern operating
systems including UNIX and Windows NT. The goal of this
project is to provide a secure, efficient and extensible
[
{
timestamp: 1442146619571,
principal: "anonymousUser",
type: "AUTHORIZATION_FAILURE",
data: {
message: "Access is denied",
type: "org.springframework.security.access.AccessDeniedException"
}
},
$ openssl genrsa 4096 > server.key
$ openssl req -new -key server.key > server.csr
$ openssl x509 -days 3650 -req -signkey server.key < server.csr > server.crt
/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/bin/java -Xmx6000m -Djava.library.path=lib/native/macosx/x86_64 -server -Didea.launcher.port=7542 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 14.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA 14.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA 14.app/Contents/plugins/junit/lib/junit-rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/
# local user config, usernames, etc
[core]
excludesfile=~/.gitignore
[include]
path=~/.gitconfig-local
[color]
diff = auto
status = auto
$ mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building digitalcandy-crawler 1.0.5-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ digitalcandy-crawler ---
[INFO] Deleting /Users/ferdous/projects/digitalcandy/digitalcandy-crawler/target
[INFO]
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ${user.home}/.m2/repository
<localRepository>/path/to/local/repo</localRepository>
-->