cat /etc/apache2/extra/httpd-vhosts.conf | grep -v \# | egrep -v '^$'
This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one
#IPython Remote Notebook
##Installation and setup
-
Download or clone this gist:
git clone https://gist.github.com/6600757.git remote_ipython
-
Add or edit your default notebook configuration file (
.ipython/profile_default/ipython_notebook_config.py
) on Janus so that it looks like the following:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
searchTerm=$1 | |
## Salesforce Search Query | |
sf="https://na3.salesforce.com/_ui/search/ui/UnifiedSearchResults?searchType=2&sen=068&sen=005&sen=006&sen=501&sen=001&sen=00T&sen=500&sen=003&sen=00U&sen=a0V&sen=00O&sen=a0R&sen=00a&str=$searchTerm" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dig +short which.opendns.com txt @208.67.220.220 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yt-chanrip() { for i in $(curl -s http://gdata.youtube.com/feeds/api/users/"$1"/uploads | grep -Eo "watch\?v=[^[:space:]\"\'\\]{11}" | uniq); do youtube-dl --title --no-overwrites http://youtube.com/"$i"; done } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given the following example html: | |
<div class="announcementInfoText"> | |
<p class="copyToClipboard"> | |
<a id="selectAll">Select All Text</a> | |
</p> | |
<textarea ID="description" class="announcementTextArea">This is some sample text that I want to be select to copy to the clipboard</textarea> | |
</div> | |
you can select the text within the textarea with the following jQuery: | |
$("#selectAll").click(function () { | |
$(this).parents(".announcementInfoText").children("textarea").select(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Shell script to install your public key on a remote machine | |
# Takes the remote machine name as an argument. | |
# Obviously, the remote machine must accept password authentication, | |
# or one of the other keys in your ssh-agent, for this to work. | |
# | |
# http://www.devthought.com/2009/09/19/get-ssh-copy-id-in-mac-os-x/ | |
# |