I hereby claim:
- I am cfg on github.
- I am cfg (https://keybase.io/cfg) on keybase.
- I have a public key whose fingerprint is 3208 1C5B 3FB2 1376 E3AD FFE5 F0C4 6E9F BC74 2B01
To claim this, I am signing this object:
jQuery('#adv3 tr.notranslate').each( function( i, el ) { | |
el = jQuery( el ); | |
dom = el.find('td').eq(0).text(); | |
ttl = el.find('td').eq(1).find('input').val(); | |
type = el.find('td').eq(2).text().trim(); | |
val = el.find('td').eq(3).find('input').val(); | |
console.log( "%s\t\t%s\tIN %s\t%s", dom, ttl, type, val ); | |
}); |
#!/usr/local/bin/php | |
<?php | |
$plists = array( | |
'Manifest.plist' => array( | |
// ":Version", | |
":WasPasscodeSet", | |
":IsEncrypted", | |
":Date", | |
":Lockdown:ProductType", |
/** | |
* Paste this into the console on your /wp-admin/admin.php?page=domains page | |
* Make sure the 'Edit DNS' tab is selected | |
* Add entries using add_record( 'example.com', 'A', '127.0.0.1' ); | |
* or add_record( 'example.com', 'MX', '10 mail.example.com' ); | |
* MX records values should be the Priority<space>mailserver | |
* | |
*/ | |
add_record = function( record, type, value ) { | |
var valid_types = { |
// add jquery to collection-app-spotify frame | |
jQuery('.tracklist-playlist tbody tr').each( function(ix, el) { var r = jQuery(el); r.find('.tl-cell.tl-save').html( r.index() + 1 ); } ); |
I hereby claim:
To claim this, I am signing this object:
<!--- | |
See: http://coreygilmore.com/blog/2008/05/01/mimic-phps-empty-function-in-coldfusion/ | |
---> | |
<cfscript> | |
function empty(val) { | |
/** | |
* Return TRUE if one of the following conditions | |
* for a defined variable is met: | |
* - A *trimmed* string is empty | |
* - An array or struct is empty |
/* | |
See: http://coreygilmore.com/blog/2011/07/20/bookmarklet-scroll-to-the-first-new-tweet/ | |
*/ | |
javascript:(function(){ | |
if( document.getElementsByClassName ) { | |
var t=document.getElementsByClassName("last-new-tweet")[0]; | |
if(t) { | |
window.scrollTo(0, t.offsetTop + t.offsetParent.offsetTop ); | |
} | |
} else { |
/** | |
* Out a MySQL-style table of data | |
* See: http://coreygilmore.com/blog/2009/02/02/print-a-mysql-style-table-with-php/ | |
* | |
* @param array $data Associative array of data to output. | |
* @param array $header_keys Optional; Assoc array of display names to use for headers. Keys must match those of $data. Defaults to keys of $data. | |
* @param string $glue String to join lines with, defaults to newline. | |
* @return string | |
* | |
*/ |
<!--- | |
See: http://coreygilmore.com/blog/2008/05/08/merge-structs-in-coldfusion/ | |
---> | |
<cfscript> | |
function struct_merge() { | |
var base = {}; | |
var i = 1; | |
for( i = 1; i LTE ArrayLen(arguments); i=i+1 ) { | |
if( IsStruct(arguments[i]) ) { |
-- See: http://coreygilmore.com/blog/2010/02/04/applescript-to-generate-a-securid-token-and-automatically-connect-to-a-cisco-vpn/ | |
----------------------------------------------- | |
-- Automated token generation and VPN logins | |
-- Copyright 2010, Corey Gilmore | |
-- http://coreygilmore.com/ | |
-- Last Modified: 2010-02-04 | |
------------------------------------------------ | |
set theConnection to "My VPN" -- the name of your VPN connection | |
set thePin to "" -- set to "" to prompt every time (recommended) |