Skip to content

Instantly share code, notes, and snippets.

View SecureCloud-biz's full-sized avatar

Terry DeSimone SecureCloud-biz

View GitHub Profile

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

@SecureCloud-biz
SecureCloud-biz / Change_Code_Completion_Popup_Size
Last active August 29, 2015 14:09
Sublime Text Change Code Completion Popup Size in Binary - (HARD-CODED)
# TOPIC: http://www.sublimetext.com/forum/viewtopic.php?f=2&t=10250#p40640
1. "300 pixels" is the HARDCODED WIDTH of the CODE COMPLETION POPUP.
Look for 00 00 00 00 00 C0 72 40 in the binary
and replace with your wanted value
(for example 00 00 00 00 00 C0 82 40 for 600 pixels).
2. GOTO: http://gregstoll.dyndns.org/~gregstoll/floattohex/
3. In "Double value: (Convert to HEX)" enter size, ex. 400 (Size in Pixels u want)
@SecureCloud-biz
SecureCloud-biz / .htaccess
Last active August 29, 2015 14:13
.htaccess URL ReWriting
# Why rewrite URLs? Read this: http://en.wikipedia.org/wiki/Rewrite_engine
# Apache (.htaccess or httpd.conf)
# Make sure AllowOverride is on for the directory, or put the rewrite rules in httpd.conf
# http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /index.php [L]
# Nginx (nginx.conf)
@SecureCloud-biz
SecureCloud-biz / [Media_Queries].html
Created January 15, 2015 20:27
[Media_Queries] - Images based on Screen Width
<span data-picture data-alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia">
<span data-src="small.jpg"></span>
<span data-src="small_x2.jpg" data-media="(min-device-pixel-ratio: 2.0)"></span>
<span data-src="medium.jpg" data-media="(min-width: 400px)"></span>
<span data-src="medium_x2.jpg" data-media="(min-width: 400px) and (min-device-pixel-ratio: 2.0)"></span>
<span data-src="large.jpg" data-media="(min-width: 800px)"></span>
<span data-src="large_x2.jpg" data-media="(min-width: 800px) and (min-device-pixel-ratio: 2.0)"></span>
<span data-src="extralarge.jpg" data-media="(min-width: 1000px)"></span>
<span data-src="extralarge_x2.jpg" data-media="(min-width: 1000px) and (min-device-pixel-ratio: 2.0)"></span>
@SecureCloud-biz
SecureCloud-biz / functions.php
Last active August 29, 2015 14:13 — forked from glynrob/gist:7059838
ENCRYPT / DECRYPT PHP Functions
<?php
// https://glynrob.com/php/hashing-and-public-key-encryption/
function public_encrypt($plaintext){
$fp=fopen("./mykey.pub","r");
$pub_key=fread($fp,8192);
fclose($fp);
openssl_get_publickey($pub_key);
openssl_public_encrypt($plaintext,$crypttext, $pub_key );
return(base64_encode($crypttext));
@SecureCloud-biz
SecureCloud-biz / hashes.php
Last active August 29, 2015 14:13 — forked from glynrob/gist:7059295
HASHING in PHP
<?php
// https://glynrob.com/php/hashing-and-public-key-encryption/
$md5 = md5($password.$salt);
echo "MD5 = $md5 <br>";
$sha1 = sha1($password.$salt);
echo "SHA1 = $sha1 <br>";
$sha512 = hash('sha512', $password.$salt);
<?php
class SecureSessionHandler extends SessionHandler {
protected $key, $name, $cookie;
public function __construct($key, $name = 'MY_SESSION', $cookie = [])
{
$this->key = $key;
$this->name = $name;
@SecureCloud-biz
SecureCloud-biz / google_CloudMessaging.php
Last active August 29, 2015 14:14 — forked from prime31/gist:5675017
Google Cloud Messaging Engage your users across Android, iOS and Chrome via Google Cloud Messaging
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array

All binary can be downloaded http://pan.baidu.com/s/1hqH2Pko

VERSION PLATFORM OFFSET ORIGINAL CRACKED
3083 Linux x64 0xcbe3 85 39
3083 Linux x86 0xc6f2 85 39
3083 Win x64 0xe21b3 85 3B
3083 Win x86 0x9eb1a 1a 2a
3083 OSX 0x69cf 85 39
--------- ----------- --------- ---------- ---------

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post