Skip to content

Instantly share code, notes, and snippets.

!function(){function updateFlag(){this.nextSibling.style.color=this.value?"#898E79":"#A03333"}var base2={name:"base2",version:"1.0.1(pre)",exports:"Base, Package, Abstract, Module, Enumerable, Map, Collection, RegGrp, assert, assertArity, assertType, assignID, copy, counter, detect, extend, forEach, format, instanceOf, match, rescape, slice, trim, I, K, Undefined, Null, True, False, bind, delegate, flip, not, partial, unbind",global:this,namespace:"var global=base2.global;function base(o,a){return o.base.apply(o,a)};",detect:new function(_){var global=_,jscript;if(_.navigator){var element=document.createElement("span"),userAgent=navigator.platform+" "+navigator.userAgent;jscript||(userAgent=userAgent.replace(/MSIE\s[\d.]+/,"")),userAgent=userAgent.replace(/([a-z])[\s\/](\d)/gi,"$1$2")}return function(a){var r=!1,b="!"==a.charAt(0);if(b&&(a=a.slice(1)),"("==a.charAt(0))try{eval("r=!!"+a)}catch(error){}else r=RegExp("("+a+")","i").test(userAgent);return!!(b^r)}}(this)};!new function(_){function _12(e,t){for(var
This file has been truncated, but you can view the full file.
// The Module object: Our interface to the outside world. We import
// and export values on it, and do the work to get that through
// closure compiler if necessary. There are various ways Module can be used:
// 1. Not defined. We create it here
// 2. A function parameter, function(Module) { ..generated code.. }
// 3. pre-run appended it, var Module = {}; ..generated code..
// 4. External script tag defines var Module.
// We need to do an eval in order to handle the closure compiler
// case, where this code here is minified but Module was defined
// elsewhere (e.g. case 4 above). We also need to check if Module
@as-com
as-com / wp-config.php
Created March 10, 2015 23:55
Salty wp-config
<?php
/**#@+
* Authentication Unique Keys and Salts.
*
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
*
* @since 2.6.0
*/
@as-com
as-com / pier18.js
Created July 14, 2014 13:18
Possible distances for pier 18 in jl2579's Journey to the Minecraft World Edge Livestream
function sumDigits(number) {
var str = number.toString();
var sum = 0;
for (var i = 0; i < str.length; i++) {
sum += parseInt(str.charAt(i), 10);
}
return sum;
}
@as-com
as-com / calcPier16.js
Last active August 29, 2015 14:03
Possible distances for pier 16 in jl2579's Journey to the Minecraft World Edge Livestream
// Script to calculate distances for pier 16
// Best run with `nodejs calcPier16.js > pier16.txt`
// Also possible to paste into JS console of browser
function sumDigits(number) {
var str = number.toString();
var sum = 0;
for (var i = 0; i < str.length; i++) {
sum += parseInt(str.charAt(i), 10);
#!/usr/bin/env python
"""
This script allows one to submit resources (URLs and files) for analysis.
The submission consists of 2 steps: URL submission and result retrieval.
1. To request the processing of a resource, use the -s option with the URL
or filename to be checked:
$ python submit_to_wepawet.py -s 'http://www.cs.ucsb.edu/'
<?xml version="1.0" encoding="utf-8" ?>
<?php
/*
Plugin Name: Memcached Redux
Description: The real Memcached (not Memcache) backend for the WP Object Cache.
Version: 0.1.3
Plugin URI: http://wordpress.org/extend/plugins/memcached/
Author: Scott Taylor - uses code from Ryan Boren, Denis de Bernardy, Matt Martz, Mike Schroder
Install this file to wp-content/object-cache.php
*/
@as-com
as-com / jsdelivr-repo-files.txt
Created May 31, 2014 18:42
List of files in jsDelivr repo, sorted by size
This file has been truncated, but you can view the full file.
2.9M ./openlayers/2.13.1/OpenLayers.debug.js
2.3M ./phaser/2.0.4/phaser.js
2.2M ./phaser/2.0.3/phaser.js
2.2M ./darfonts/0.1/fdk-fpa-irn-isp/irannastaliq-webfont.svg
2.1M ./phaser/2.0.0/phaser.js
2.0M ./uniformjs/2.0.0/themes/jeans/images/sprite-retina-jeans.png
2.0M ./sass.js/0.3.0/worker.min.js
2.0M ./sass.js/0.3.0/sass.min.js
1.8M ./typescript/1.0.0/typescript.min.js
1.6M ./cufon-fonts-library/0.1/FFF_Tusj-webfont.font.js
@as-com
as-com / grep.log
Created March 5, 2014 19:50
Wordfence failing to recognize a WordPress brute force attack from an IPv6 address
2a03:7380:2c0:2:a432:704f:c225:4a62 - - [04/Mar/2014:21:01:33 -0500] "POST /wp-login.php/ HTTP/1.1" 200 4981 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.2) Gecko/2008091620 Firefox/3.0.2"
2a03:7380:2c0:2:a432:704f:c225:4a62 - - [04/Mar/2014:21:01:36 -0500] "POST /wp-login.php/ HTTP/1.1" 200 4982 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.2) Gecko/2008091620 Firefox/3.0.2"
2a03:7380:2c0:2:a432:704f:c225:4a62 - - [04/Mar/2014:21:01:38 -0500] "POST /wp-login.php/ HTTP/1.1" 200 4982 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.2) Gecko/2008091620 Firefox/3.0.2"
2a03:7380:2c0:2:a432:704f:c225:4a62 - - [04/Mar/2014:21:01:39 -0500] "POST /wp-login.php/ HTTP/1.1" 200 4981 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.2) Gecko/2008091620 Firefox/3.0.2"
2a03:7380:2c0:2:a432:704f:c225:4a62 - - [04/Mar/2014:21:01:41 -0500] "POST /wp-login.php/ HTTP/1.1" 200 4982 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.2) Gecko/2008091620 Firefox/3.0.2"
2a03:7380
@as-com
as-com / GDN_Badge.sql
Created January 5, 2014 19:22
SQL dump of the badges table, from Vanilla Forums w/ the Yet Another Gamification Application.
-- phpMyAdmin SQL Dump
-- version 4.0.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jan 05, 2014 at 02:21 PM
-- Server version: 5.5.33a-MariaDB-1~squeeze-log
-- PHP Version: 5.4.9-4ubuntu2.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";