Skip to content

Instantly share code, notes, and snippets.

1. No existing ssh key on external machine
Create a new key on the external machine with ssh-keygen -t rsa -C [email protected] in the git bash. The email address doesn’t matter as the next step is to overwrite the id_rsa and id_rsa.pub files in your .ssh folder with those from your Storm machine. This should be all you need to use git over the VPN.
2. Existing ssh key on external machine that can be overwritten
In this case you should only need to carry out the second step from 1 to have access via the VPN.
3. Existing ssh key on external machine to be used side-by-side
I use git gor github under a different email address so I needed 2 keys to be used. Ssh allows you to setup mappings between a key and a domain. Copy the storm ssh key files and rename them or place them in a separate directory from your existing key files. Add a file named config in the .ssh folder with something like:
Host github.com
container.Register(Component.For<SameSaveListener>().AsNHibernateListener(ListenerType.SaveUpdate).For("factory name"))
or
container.Register(NHibernateListener.Of<SameSaveListener>(ListenerType.SaveUpdate).For("factory name"))
.For is optional, if it's supplied, it will be applied to that factory, if not, it is applied to
all. Listeners will be registered as singletons (?)
@carcer
carcer / gist:993437
Created May 26, 2011 16:09 — forked from lynchjames/gist:992875
.bashrc
alias s='git s'
alias d='git d'
alias av='git av'
alias cm='git cm'
alias cod='git cod'
alias com='git com'
alias co='git co'
alias warmup='"/C/Program Files/warmup/warmup.exe"'
function merge { git checkout ${1:-master}; git merge ${2:-dev}; git checkout ${2:-dev}; }
Circular dependency detected 'Castle.Core 2.5.2 => Castle.Windsor 2.5.3 => AutoMapper 1.1.0.118 => log4net 1.2.10 => Castle.Services.Transaction 3.0.201.2201 => Castle.Facilities.AutoTx 3.0.201.2201 => NHibernate 3.1.0.4000 => NHibernate.Castle 3.1.0.4000 => NHibernate 3.1.0.4000'.
[14:47:44]:
Unable to collect changes
java.util.concurrent.ExecutionException: jetbrains.buildServer.vcs.VcsException: Problem collecting changes for 'Storm Sdk :: master - debug' : Error collecting changes for VCS root 'StormSdk'
Collecting changes failed:
org.eclipse.jgit.errors.CorruptObjectException: Object 8f40d4e944a993c93f8f5194de2233e1926acfa4 is corrupt: Commit could not be resolved
org.eclipse.jgit.errors.MissingObjectException: Missing unknown 8f40d4e944a993c93f8f5194de2233e1926acfa4
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at jetbrains.buildServer.serverSide.impl.CancelableTaskHolder.waitForTaskToComplete(CancelableTaskHolder.java:29)
at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.doCollectChanges(TopBuildDependencyGraphImpl.java:99)
zip :zip, :project_name do |zip, args|
zip_name = [args.project_name, (ENV['BUILD_NUMBER'] unless ENV['BUILD_NUMBER']), Time.now.strftime("%Y-%m-%d-%M")].compact.join("-")
zip.directories_to_zip BUILD_PATH
zip.output_file = "#{zip_name}.zip"
zip.output_path = PACKAGE_OUTPUT
end
var examineValue = searchText.Fuzzy();
var searchParameters = searchCriteria
.NodeName(examineValue)
.Or()
.Field("bodyText", examineValue)
.Or()
.Field("productCode", examineValue)
.Compile();
@carcer
carcer / nh.cs
Created January 5, 2012 11:28 — forked from johnnonolan/nh.cs
nh headache
static ICriterion BuildCriteria(params MatchableClientParams[] clientParams)
{
var result = Restrictions.Disjunction();
foreach (var parameters in clientParams)
{
var parameters1 = parameters;
var criteria = parameters1.BuildCriteria();
result.Add(criteria);
[10:54:14]: [Execute albacore:build_deploy] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: The "IsCleanMSDeployPackageNeeded" task failed unexpectedly. [C:\BuildAgent\work\18e5907761dbdf95\Production\src\XX.Web\XX.Web.csproj]
[10:54:14]: [Execute albacore:build_deploy] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object. [C:\BuildAgent\work\18e5907761dbdf95\Production\src\XX.Web\XX.Web.csproj]
[10:54:14]: [Execute albacore:build_deploy] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at Microsoft.Web.Publishing.Tasks.Common.Utility.CheckMSDeploymentVersion() [C:\BuildAgent\work\18e5907761dbdf95\Production\src\XX.Web\XX.Web.csproj]
[10:54:14]: [Execute albacore:build_deploy] C:\Program Files (x86)\MSBuild\Microso
Mapper.CreateMap<INode, NavigationItem>().AfterMap((n, ni) => ni.Children = n.ChildrenAsList.MapTo<IEnumerable<NavigationItem>>())