create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
- (UIImage *)scaleImage:(UIImage *)image toSize:(CGSize)newSize { | |
UIGraphicsBeginImageContextWithOptions(newSize, YES, 0.0); | |
CGRect imageRect = {{0.0, 0.0}, newSize}; | |
[image drawInRect:imageRect]; | |
UIImage *scaledImage = UIGraphicsGetImageFromCurrentImageContext(); | |
UIGraphicsEndImageContext(); | |
return scaledImage; | |
} | |
#!/usr/bin/perl | |
# extract two git commit hashes out of the pasteboard and do a git diff on them. | |
# | |
# no need to clean up any extra stuff in the paste -- this will do a diff of the | |
# top-most and bottom-most hashes found in the paste. | |
# | |
# requires pbpaste command line utility | |
use strict; |
#!/usr/local/bin/perl | |
# cat a file, removing leading and trailing space, removing | |
# empty lines, and ensuring every line is followed by a newline. | |
use strict; | |
use warnings; | |
my $line; | |
while (defined($line=<>)) { |
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my $in = shift || die "usage: $0 <ref-file>\n\n"; | |
my %unwanted = %{&load_words($in)}; | |
my $line; |
#!/bin/bash | |
# change these to your own | |
export userid=<user_id_string_from_bitly_account> | |
export key=<key string_from_bitly_account> | |
export link=$1 | |
if [[ "$link" == '' ]] | |
then |
#!/bin/bash | |
export url="$1" | |
export referer="$2" | |
export uagent='Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11'; | |
if [[ "$referer" == '' ]]; then | |
wget --user-agent="$uagent" "$url" | |
else |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>iOS6 Safari Photo Capture Demo</title> | |
<script type="text/javascript"> | |
window.onload = function() { | |
var input = document.getElementById("input"); | |
input.addEventListener("change", handleFile); | |
} |
xattr -d com.apple.quarantine /path/to/Eclipse.app | |
#!/bin/bash | |
dscacheutil -flushcache | |