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/bash | |
# refs http://tim.theenchanter.com/2008/06/garbage-collect-every-git-repository-on.html | |
# This script hosted at https://gist.github.com/1391205 | |
echo "Searching..." | |
find -L . -maxdepth 3 -type d -name .git | while read dir; | |
do | |
pushd "$dir" > /dev/null | |
cd .. |
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
ls *.jpg | xargs -l -i convert -resize 1024x1024 -quality 50% -verbose {} small/{} |
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
using System; | |
using EPiServer; | |
using EPiServer.Core; | |
using EPiServer.DataAccess; | |
using EPiServer.Security; | |
using EPiServer.Web.Hosting; | |
namespace EpiServerShine | |
{ | |
static internal class PageDataExtensions |
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
using System.Collections.Generic; | |
namespace util | |
{ | |
/// <summary> | |
/// Storage and parsing of flat string based folder hierarchy. | |
/// See http://stackoverflow.com/a/8621711/10245 | |
/// </summary> | |
/// <example><code> | |
/// NodeEntryCollection cItems = new NodeEntryCollection(); |
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
protected string ResourcePath | |
{ | |
get | |
{ | |
return | |
_pageFilesUrl ?? (_pageFilesUrl = ResolveUrl(String.Format("~/PageFiles/{0}/", FolderId))); | |
} | |
} |
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 | |
while true | |
do | |
date # note, windows (msysgit) specific syntax for printing date to console. | |
echo "Polling svn server..." | |
git svn fetch | |
echo "Sleeping." | |
sleep 300 | |
done |
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
<root> | |
<spec-version>2</spec-version> | |
<package name="com.google.code.gitextensions"> | |
<title>Git Extensions</title> | |
<url>https://code.google.com/p/gitextensions/</url> | |
<description>Git Extensions is the only graphical user | |
interface for Git that allows you control Git without | |
using the commandline. It comes with a manual and video | |
tutorials to get you started quickly.</description> | |
<icon>https://code.google.com/p/gitextensions/logo?cct=1311100905</icon> |
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 off | |
REM batch script for loading git-bash and the vs tools in the same window | |
REM inspiration: http://www.drrandom.org/post/2011/11/16/Grappling-with-multiple-remotes-in-git-tfs.aspx | |
RME screenshot: https://twitter.com/#!/tim_abell/status/199474387731226624/photo/1 | |
%HOMEDRIVE% | |
cd %HOMEPATH% | |
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 | |
echo Use full exe names when running under bash, e.g. "msbuild.exe" | |
echo Loading bash, you may now use git and msbuild in the same console \o/. | |
"C:\Program Files (x86)\Git\bin\sh.exe" --login -i |
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 | |
# https://gist.github.com/timabell/2842684 | |
# save to ~/bin/git-poll | |
# run with `git poll` from your git-tfs repo | |
# git version: https://gist.github.com/timabell/6990292 | |
while true | |
do | |
date # note, windows (msysgit) specific syntax for printing date to console. |
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
-- http://richarddingwall.name/2008/12/21/find-missing-foreignprimary-keys-in-sql-server/ | |
-- Find columns on tables with names like FooID or FooCode which should | |
-- be part of primary or foreign keys, but aren't. | |
SELECT | |
t.name AS [Table], | |
c.name AS [Column], | |
i.* | |
FROM | |
sys.tables t |