Skip to content

Instantly share code, notes, and snippets.

View InfoSec812's full-sized avatar

Deven Phillips InfoSec812

View GitHub Profile
@InfoSec812
InfoSec812 / Jenkinsfile
Created January 21, 2019 15:48
Example Jenkinsfile showing how to use Zed Attack Proxy in conjunction with Selenium
import groovy.json.JsonSlurper
pipeline {
options {
buildDiscarder(logRotator(numToKeepStr: '50'))
timeout(time: 20, unit: 'MINUTES') // If the build takes longer than 20 minutes, fail automatically
}
agent {
kubernetes {
label "zaproxy-maven-sidecars-${env.BUILD_ID}"
@richlander
richlander / Dockerfile
Created June 14, 2018 00:57
ASP.NET Web Forms Multi-stage build Dockerfile
FROM microsoft/dotnet-framework:4.7.2-sdk AS build
WORKDIR /app
# copy csproj and restore as distinct layers
COPY *.sln .
COPY aspnetapp/*.csproj ./aspnetapp/
COPY aspnetapp/*.config ./aspnetapp/
RUN nuget restore
# copy everything else and build app
@InfoSec812
InfoSec812 / 1. MyWeatherApp
Last active December 18, 2015 21:59
Several snippets which can be used to build a basic Android application.
public class MainActivity extends Activity {
protected static final String TAG = "MainActivity" ;
// Define protected instances of the needed UI elements
protected ProgressBar busyIndicator = null ;
protected TextView weatherData = null ;
@Override
protected void onCreate(Bundle savedInstanceState) {