Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

sebnapi

🎯
Focusing
Block or report user

Report or block sebnapi

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
@sebnapi
sebnapi / TikaParquetParser.scala
Created Jul 11, 2019 — 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
View TikaParquetParser.scala
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 Oct 11, 2017
Elegant Time-Series Raw Data Download
View generate_download_urls.py
# 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)
View gist:4d7edf130e82c6c520c9
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 {
View HeaderRecyclerViewAdapterV2.java
/*
* 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
View HeaderRecyclerViewAdapterV1.java
/*
* 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
Penetration Test Laboratories [Vulnerable VM's, Web App's]
View gist:040a5225c24c25f12455
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
You can’t perform that action at this time.