Skip to content

Instantly share code, notes, and snippets.

[blocked] The page at 'https://schema.org/address' was loaded over HTTPS, but ran insecure content from 'http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js': this content should also be loaded over HTTPS.
address:1
[blocked] The page at 'https://schema.org/address' was loaded over HTTPS, but ran insecure content from 'http://www.google.com/jsapi': this content should also be loaded over HTTPS.
address:1
[blocked] The page at 'https://schema.org/address' was loaded over HTTPS, but ran insecure content from 'http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js': this content should also be loaded over HTTPS.
address:1
Uncaught ReferenceError: $ is not defined address:18
[blocked] The page at 'https://schema.org/address' was loaded over HTTPS, but ran insecure content from 'http://www.google.com/jsapi': this content should also be loaded over HTTPS.
address:1
Uncaught ReferenceError: google is not defined address:67
@connormckelvey
connormckelvey / o
Created April 4, 2014 17:51
open directory name as website in default browser
function o() {
result=${PWD##*/}
open 'http://'$result
}
@connormckelvey
connormckelvey / gist:9791993
Created March 26, 2014 20:05
Copy IP of hostname to Clipboard
function tip(){
host -t a $1 | awk '{print $4}' | egrep ^[1-9] | pbcopy
}
@connormckelvey
connormckelvey / hostname.bookmarklet
Created March 20, 2014 19:30
Copy Hostname from Chrome
Simple JS Bookmarket to let you quicly copy just the hostname of a url. Chrome hides http:// in the url which makes it hard to easily copy and paste a hostname. If you use a shell or ftp client a lot you know what I am talking about. Here is the script:
javascript:void(
function(){var u = window.location.hostname.replace(/^www\./,'');
window.prompt('Copy URL to Clipboard CMD/CTRL + C',u);
}()
);
@connormckelvey
connormckelvey / .functions
Last active August 29, 2015 13:56
Bash Function for adding new aliases
#add alias
function newalias() {
echo alias $1=\"$2\" >> ~/.aliases
source ~/.bash_profile
}
@connormckelvey
connormckelvey / 0_reuse_code.js
Created February 12, 2014 15:40
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console