Skip to content

Instantly share code, notes, and snippets.

protobox:
version: 0.0.1
build: custom
document: 2qM
description: 'A custom build from getprotobox.com/share/2qM'
dashboard:
install: 1
path: /srv/www/web/protobox
applications:
install: 1
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected])
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
@JacobDorman
JacobDorman / jquery.linktracking.js
Last active April 22, 2019 09:55
jQuery plugin to track links using google universal analytics events
// Google Analytics Event Tracking
(function ($) {
$.fn.trackLinkEvent = function (options) {
var settings = $.extend({
category: '',
action: $(this).attr('href'),
label: document.location.pathname + document.location.search
}, options);
# Rename tags named foo-bar-#.#.# to v#.#.# and push the tag changes
git tag -l | while read t; do n="v${t##[^[:digit:]]#}"; git tag $n $t; git tag -d $t; git push origin :refs/tags/$t; done && git push --tags
<?php
/*
Plugin Name: Programmatically add Gravity Forms
Plugin URI: https://daan.kortenba.ch/programmatically-add-gravity-forms/
Description: Programmatically add persistent Gravity Forms forms.
Author: Daan Kortenbach
Version: 0.1
Author URI: https://daan.kortenba.ch/
License: GPLv2 or later
*/
var page = require('webpage').create(),
system = require('system');
page.viewportSize = {width: 1280, height: 1024};
if (system.args.length === 1) {
console.log('Usage: scrollCapture.js <some URL>');
phantom.exit();
}
This file has been truncated, but you can view the full file.
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [],
"entries": [
{
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [],
"entries": [
{
This file has been truncated, but you can view the full file.
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [],
"entries": [
{
This file has been truncated, but you can view the full file.
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [],
"entries": [
{