create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
If: | |
- you add and commit with the wrong email address in git, and | |
- your remote has a hook set up to prevent you from pushing with the bad address | |
Then you need to amend the author of your commit before push can succeed: | |
1. fix your email address in git config: | |
$ git config user.name "Your Name" |
import asyncio | |
import aiofiles | |
import aiohttp | |
import logging | |
import re | |
import sys | |
import os | |
import lxml.html |
# git-co | |
# git checkout whatever branch matches the passed-in substring | |
# | |
# Argument: | |
# substring to match | |
# | |
# Example: | |
# git-co sparkles # checks out the branch whose name contains the substring "sparkles" | |
# | |
# Will abort with an informative message and no action in various error scenarios. |
#!/usr/bin/perl -T # use -T because it makes things secure | |
use strict; | |
use warnings; | |
# El Shirt key preparation algorithm | |
# | |
# El Shirt is an anagram of SLITHER | |
# | |
# **** Background **** |
function randomColor () { | |
# assuming 24-bit color | |
range_max=$((256 * 256 * 256)) | |
printf "%06x\n" $(((((RANDOM*RANDOM)+(RANDOM*RANDOM))+RANDOM)%range_max)) | |
} | |
# test | |
# $ for in in {0..99999}; do randomColor; done | sort | uniq | wc -l | |
# (should output a number roughly near 99700) |
#!/usr/bin/perl | |
# command from: | |
# http://www.linuxquestions.org/questions/linux-newbie-8/how-do-you-split-mpg-files-using-a-ffmpeg-command-542607/ | |
# -vcodec copy copies the raw data | |
# -ss start seconds? | |
# -to ? | |
my $infile = shift; |
#!/bin/bash | |
export log=$1 | |
export dsym=$2 | |
export app=$3 | |
if [[ "$app" == '' ]]; then | |
echo usage: $0 '<logfile> <dSYM folder> <.app folder>' | |
echo | |
exit -1 |
xcodebuild -project Foo.xcodeproj -target Foo -configuration Debug -sdk iphonesimulator5.0 clean build | |