Skip to content

Instantly share code, notes, and snippets.

@sebnapi
sebnapi / TikaParquetParser.scala
Created July 11, 2019 13:34 — forked from OElesin/TikaParquetParser.scala
Apache Tika Parquet Parser in Scala. You can add this to your project to read parquet files with Apache Tika
import java.io.{File, FileOutputStream, IOException, InputStream}
import java.util
import scala.collection.JavaConverters._
import org.xml.sax.{ContentHandler, SAXException}
import org.apache.tika.metadata.Metadata
import org.apache.tika.metadata.HttpHeaders.CONTENT_TYPE
import org.apache.tika.mime.MediaType
import org.apache.tika.parser.{AbstractParser, ParseContext}
import org.apache.commons.io.IOUtils
@sebnapi
sebnapi / generate_download_urls.py
Last active October 11, 2017 02:04
Elegant Time-Series Raw Data Download
# Python 3
# from urllib.parse import urljoin
# Python 2.7
from urlparse import urljoin
from datetime import *
url = "http://xxx.com/data/"
today = datetime.now().date()
yesterday = today - timedelta(days=1)
import android.animation.ValueAnimator;
import android.graphics.ColorMatrix;
import android.graphics.ColorMatrixColorFilter;
import android.view.animation.AccelerateDecelerateInterpolator;
import android.view.animation.Interpolator;
import android.widget.ImageView;
import java.lang.ref.SoftReference;
public class PhotographicPrintAnimator {
/*
* Copyright (C) 2014 sebnapi
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
/*
* Copyright (C) 2014 sebnapi
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@sebnapi
sebnapi / gist:040a5225c24c25f12455
Created May 30, 2014 21:32
Penetration Test Laboratories [Vulnerable VM's, Web App's]
Axis2 Web service and Tomcat Manager
CVE-2012-6081: Moinmoin Code Execution
CVE-2008-1930: Wordpress 2.5 Cookie Integrity Protection Vulnerability
CVE-2012-2661: ActiveRecord SQL injection
CVE-2012-1823: PHP CGI
From SQL injection to Shell I
From SQL injection to Shell II
From SQL injection to Shell PostGreSQL Edition
Introduction to Linux Host Review
Rack Cookies and Commands Injection