create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| #!/bin/sh | |
| # 初期設定 | |
| WORK=$HOME/Builds/build-essential | |
| PREFIX=$HOME/local | |
| export PATH="$PREFIX/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" | |
| # ソースコードのダウンロード | |
| if [ ! -d $WORK/src ] ; then | |
| mkdir src |
| /* | |
| * get screenshot PNG from web page | |
| * | |
| * build: | |
| * FLAGS=`pkg-config --cflags --libs gtk+-x11-2.0 glib-2.0 webkit-1.0` | |
| * gcc -Wall $FLAGS getscreenshot.c -o getscreenshot | |
| * | |
| * usage: | |
| * /usr/bin/xvfb-run -s "-screen 0 1024x768x24" ./getscreenshot test.html | |
| * |
| /* | |
| * get screenshot PNG from web page | |
| * | |
| * build: | |
| * FLAGS=`pkg-config --cflags --libs gtk+-x11-2.0 glib-2.0 webkit-1.0` | |
| * gcc -Wall $FLAGS getscreenshot.c -o getscreenshot | |
| * | |
| * usage: | |
| * /usr/bin/xvfb-run -s "-screen 0 1024x768x24" ./getscreenshot test.html | |
| * |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
by Keith Rosenberg (netpoetica)
Note: do this in some sort of project/ directory that makes sense. depot_tools are going to need to be in your path, so you may want to install them somewhere you are comfortable with.
git clone https://github.com/v8/v8.git
| #! /bin/bash | |
| set -e | |
| trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG | |
| trap 'echo FAILED COMMAND: $previous_command' EXIT | |
| #------------------------------------------------------------------------------------------- | |
| # This script will download packages for, configure, build and install a GCC cross-compiler. | |
| # Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running. | |
| # If you get an error and need to resume the script from some point in the middle, | |
| # just delete/comment the preceding lines before running it again. |
| #!/bin/python | |
| import os | |
| from boto.s3.connection import S3Connection | |
| import subprocess | |
| from datetime import datetime, date | |
| import argparse | |
| import tempfile | |
| import json | |
| parser = argparse.ArgumentParser(description="Downloads logs from S3, and parses them with goaccess.") |
| # basic pfctl control | |
| # == | |
| # Related: http://www.OpenBSD.org | |
| # Last update: Tue Dec 28, 2004 | |
| # == | |
| # Note: | |
| # this document is only provided as a basic overview | |
| # for some common pfctl commands and is by no means | |
| # a replacement for the pfctl and pf manual pages. |
| std::wstring StringConverter::StringToWideString(const std::string& s) { | |
| int len = MultiByteToWideChar(CP_UTF8, 0, s.c_str(), s.length(), NULL, 0); | |
| std::wstring ws(L"", len); | |
| wchar_t* pWSBuf = const_cast<wchar_t*>(ws.c_str()); | |
| MultiByteToWideChar(CP_UTF8, 0, s.c_str(), -1, pWSBuf, len); | |
| return ws; | |
| } | |
| std::string StringConverter::WideStringToString(const std::wstring& ws) { | |
| int len = WideCharToMultiByte(CP_UTF8, 0, ws.c_str(), ws.length(), 0, 0, NULL, NULL); |