This file contains 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
# Set cache dir | |
proxy_cache_path /var/cache/nginx levels=1:2 | |
keys_zone=microcache:5m max_size=1000m; | |
# Virtualhost/server configuration | |
server { | |
listen 80; | |
server_name yourhost.domain.com; | |
# Define cached location (may not be whole site) |
This file contains 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
*** /Developer/Platforms/iPhoneSimulator.platform/Developer/Tools/RunPlatformUnitTests 2011-08-30 06:49:13.000000000 +0300 | |
--- /Developer/Platforms/iPhoneSimulator.platform/Developer/Tools/RunPlatformUnitTests.new 2011-11-15 02:21:59.000000000 +0200 | |
*************** | |
*** 90,101 **** | |
Configure_TEST_ARCHS | |
if [ "${TEST_HOST}" != "" ]; then | |
! Warning ${LINENO} "Skipping tests; the iPhoneSimulator platform does not currently support application-hosted tests (TEST_HOST set)." |
This file contains 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
// | |
// Copyright 2011 Jeff Verkoeyen | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software |
This file contains 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/sh | |
if [ $# -ne 1 ] ; then | |
echo "Usage: $0 <processname>" | |
exit | |
fi | |
ps axc|awk "{if (\$5==\"$1\") print \$1}"|tr '\n' ' ' | |
echo |
This file contains 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
[alias] | |
stage = !sh -c '[[ -z "$@" ]] && git add -u || git add "$@" && git add -u "$@" ' - | |
unstage = reset HEAD -- | |
rewind = ![[ -z "$@" ]] && git reset --hard HEAD || git checkout HEAD |
This file contains 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
function hg_prompt_info { | |
hg prompt --angle-brackets "\ | |
<on %{$fg[magenta]%}<branch>%{$reset_color%}>\ | |
< at %{$fg[yellow]%}<tags|%{$reset_color%}, %{$fg[yellow]%}>%{$reset_color%}>\ | |
%{$fg[green]%}<status|modified|unknown><update>%{$reset_color%}< | |
patches: <patches|join( → )|pre_applied(%{$fg[yellow]%})|post_applied(%{$reset_color%})|pre_unapplied(%{$fg_bold[black]%})|post_unapplied(%{$reset_color%})>>" 2>/dev/null | |
} | |
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)$(hg_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%} ' |
This file contains 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
echo on | |
sc \\%SERVER_NAME% stop Tomcat7 | |
rmdir /q /s %WEBAPPS_DIR%\%TARGET_PATH% | |
copy %WAR_FILE% %WEBAPPS_DIR%\%TARGET_PATH%.war | |
if errorlevel 1 goto Error | |
sc \\%SERVER_NAME% start Tomcat7 | |
if errorlevel 1 goto Error |
This file contains 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
// | |
// CXBinder.h | |
// TheList | |
// | |
// Created by Vladimir Grichina on 28.01.13. | |
// Copyright (c) 2013 TheList, LLC. All rights reserved. | |
// | |
#import <THObserversAndBinders/THBinder.h> |
This file contains 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
class Edge | |
attr_accessor :src, :dest, :length | |
def initialize(src, dest, length = 1) | |
@src = src | |
@dest = dest | |
@length = length | |
end | |
end |