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
# Block Adobe Activation | |
127.0.0.1 activate.adobe.com | |
127.0.0.1 practivate.adobe.com | |
127.0.0.1 ereg.adobe.com | |
127.0.0.1 activate.wip3.adobe.com | |
127.0.0.1 wip3.adobe.com | |
127.0.0.1 3dns-3.adobe.com | |
127.0.0.1 3dns-2.adobe.com | |
127.0.0.1 adobe-dns.adobe.com | |
127.0.0.1 adobe-dns-2.adobe.com |
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
Another tip here is editing the ssh config file. | |
On your machine (not the iphone), create ~/.ssh/config | |
In there, add the following lines | |
Host iphone | |
HostName 10.0.1.1 | |
User root |
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
find.-name*.DS_Store-typef-execrm{} \; |
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
#To stop, enter the following command: | |
sudo launchctl unload /Library/LaunchDaemons/com.crashplan.engine.plist | |
#To start (load): | |
sudo launchctl load /Library/LaunchDaemons/com.crashplan.engine.plist |
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
för att skapa en tunnel från port 2222 till port 22 på en annan maskin: | |
Kod: | |
ssh -fNT -L 2222:localhost:22 [email protected] | |
För att förtydliga, om du då ansluter till localhost port 2222 så kommer du hamna på 192.0.2.1 port 22 och få en inloggningspromt från ssh daemonen på den maskinen.. |
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/bash | |
oldrev="$1" | |
newrev="$2" | |
if [[ $3 == "1" ]]; then | |
diffresult=$(git diff "$oldrev" "$newrev" -- .rvmrc) | |
if [[ $diffresult != "" ]]; then | |
msg=" \n Don't forget to reload your .rvmrc! \n " | |
echo -e "\033[41;37m$msg\033[0m" | |
fi |
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
jQuery("body").find('img').each(function(i,img) { | |
var w = img.width; | |
var h = img.height; | |
if (w && h) { | |
var src = 'http://placekitten.com/'+w+'/'+h; | |
img.src = src; | |
} | |
}); | |
// code from https://github.com/lsemel/jquery-placekitten |
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
# Response body from curl | |
{"hit":{"author_id":40,"date":"2011-05-31T15:06:47Z","extract":"<a href=\"http://twitter.com/DanWarp\">@DanWarp</a> I'm so excited!!!!! It's going to be <b>awesome</b>(;","profile_id":1,"source_name":null,"starred":false,"title":"@DanWarp I'm so excited!!!!! It's going to be awesome(;","url":"http://twitter.com/SparksFlyyXx/statuses/75578980698304512","uri":"/accounts/1/profiles/1/hits/32825","hit_type":"tweet"}} | |
# Response body in HTTP Client | |
<"hit":{"author_id":40,"date":"2011-05-31T15:06:47Z","extract":"<a href=\"http://twitter.com/DanWarp\">@DanWarp</a> I'm so excited!!!!! It's going to be <b>awesome</b> |
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
javascript:(function(){var%20jqLoader={go:function(){if(!(window.jQuery&&window.jQuery.fn.jquery=='1.3.2')){var%20s=document.createElement('script');s.setAttribute('src','http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js');s.setAttribute('type','text/javascript');document.getElementsByTagName('head')[0].appendChild(s)}this.ok()},ok:function(){if(typeof(window.jQuery)!=='undefined'&&window.jQuery.fn.jquery=='1.3.2'){this.init()}else{setTimeout((function(){jqLoader.ok()}),100)}},init:function(){$.getScript('http://www.badlydrawntoy.com/static/960grid/js/jquery.960grid.bk-1.0.min.js',function(){$('body').addGrid(12)})}};jqLoader.go()})(); |
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
source :rubygems | |
gem 'RedCloth' | |
gem 'jekyll' | |
gem 'fleakr' |
OlderNewer