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
ruby-1.9.3-p194 in current/ | |
› gem install RedCloth | |
Building native extensions. This could take a while... | |
Successfully installed RedCloth-4.2.9 | |
1 gem installed | |
Installing ri documentation for RedCloth-4.2.9... | |
Installing RDoc documentation for RedCloth-4.2.9... | |
ruby-1.9.3-p194 in current/ | |
› gem which rails |
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 use Custom Vibrations, open the Settings app, tap “General” then “Accessibility” then turn Custom Vibrations on. Now in Settings tap “Sounds,” then “Vibration” under the heading “Vibration Patterns.” At the bottom, tap “Create New Vibration.” Start tapping on the screen, and your pattern of tapping will be recorded for use with any alert. You can make several of these. The most common use for Custom Vibrations is to be able to tell who’s calling when your iPhone is in silent mode. | |
Source: Cult of Mac http://www.cultofmac.com/169875/what-apples-vibrating-pen-tells-us-about-the-future-of-everything/ |
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
def gradiate(color1, color2, steps) | |
[color1].tap do |colors| | |
red, green, blue = (color1 >> 16), ((color1 >> 8) & 0xFF), (color1 & 0xFF) | |
red_diff, green_diff, blue_diff = ((color2 >> 16) - red), (((color2 >> 8) & 0xFF) - green), ((color2 & 0xFF) - blue) | |
(steps += 1).times do |i| | |
ratio = i.to_f / steps | |
colors << (((red_diff * ratio) + red).to_i << 16 | ((green_diff * ratio) + green).to_i << 8 | ((blue_diff * ratio) + blue).to_i) | |
end | |
colors << color2 |
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
while x=1; do /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | grep CtlRSSI; sleep 0.3; 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
e.g. | |
pkgtrans git-1.7.1-sol10-x86-local . | |
cd SMCgit | |
joe pkginfo | |
# Update Basedir | |
BASEDIR=/opt/csw |
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
pkgtrans ruby-1.9.1p376-sol10-x86-local . | |
cd SMCruby | |
joe pkginfo | |
% Set install path | |
% Get file size | |
wc -c pkginfo | |
% Calc new checksum |
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
== Add Firebug 'Lite' functionality to Chrome et co. | |
javascript:var firebug=document.createElement('script');firebug.setAttribute('src','http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js');document.body.appendChild(firebug);(function(){if(window.firebug.version){firebug.init();}else{setTimeout(arguments.callee);}})();void(firebug); |
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
== Quick & Dirty Instructions for Reverse SSH tunnel | |
ssh -gNR 3000:localhost:3000 [email protected] | |
ssh -gNR <remote_port>:localhost:<local_port> user@remoteserver |
NewerOlder