Skip to content

Instantly share code, notes, and snippets.

View SecureCloud-biz's full-sized avatar

Terry DeSimone SecureCloud-biz

View GitHub Profile
<!DOCTYPE html>
<html>
<!--
Created using jsbin.com
Source can be edited via http://jsbin.com/elafon/1/edit
-->
<head>
<title>YouTube - Like Button - Comments</title>
<link href="socialYoutube.css" rel="stylesheet">
$response = $this->facebook->api( '/' . $user_id . '/notifications', 'POST', array(
'template' => 'You have received a new message.',
'href' => 'path/to/message/?id=' . $id,
'access_token' => $app_access_token
) );
function success(position) {
// variable to store the coordinates
var location = position.coords.latitude + ',' + position.coords.longitude;
// select the span with id status
var s = $('#status');
// update the status message
s.html('found you!');
$(document).ready(function() {
var text = $('#text').text();
var word_array = text.split(' ');
// blank array to store result
var word_count = {};
// lets count the words
for ( var x in word_array ) {
body {
font-family: "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", sans-serif;
}
#text {
display: none;
}
.tag {
display: inline-block;
@SecureCloud-biz
SecureCloud-biz / gen_uuid_function.php
Created August 19, 2014 05:28
Generates Pre-set numbers/letters
<?php
function gen_uuid2($len=8) {
$hex = md5("Madison_DeSimone" . uniqid("", true));
$pack = pack('H*', $hex);
$tmp = base64_encode($pack);
$uid = preg_replace("#(*UTF8)[^A-Za-z0-9]#", "", $tmp);
$len = max(4, min(2000, $len));
while (strlen($uid) < $len)
$uid .= gen_uuid(22);
@SecureCloud-biz
SecureCloud-biz / maxmind_hott.php
Created August 19, 2014 05:32
Random Generator to crack Maxmind Key or site with Single API Key
<?php
// Has Potential, but still no luck... lol
// run as is, change the forLoop # at the bottom for checks.. now its = 200
function gen_uuid($len=8) {
$hex = md5("MaxMind GeoIP" . uniqid("", true));
$pack = pack('H*', $hex);
$tmp = base64_encode($pack);
$uid = preg_replace("#(*UTF8)[^A-Za-z0-9]#", "", $tmp);
$len = max(4, min(128, $len));
while (strlen($uid) < $len)
<?php
$files = array_slice($argv, 1);
foreach ($files as $file) {
$picture = file_get_contents($file);
$size = getimagesize($file);
// base64 encode the binary data, then break it into chunks according to RFC 2045 semantics
$base64 = chunk_split(base64_encode($picture));
setInterval(function(){[].forEach.call($$('*'),function(a){a.style.outline='2px solid #'+(~~(Math.random()*(1<<24))).toString(16)})},100)
var fs = require('fs');
var csv = require('csv');
var _ = require('lodash');
var dir = './projection-coefficients/';
var out = 'coeff.json';
var obj = {};
function done() {
var o = fs.createWriteStream(out, {encoding: 'utf8'});