Skip to content

Instantly share code, notes, and snippets.

Chris Aniszczyk caniszczyk

Block or report user

Report or block caniszczyk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@caniszczyk
caniszczyk / p2director.sh
Created Jan 25, 2011
A convenience script to launch the org.eclipse.equinox.p2.director application
View p2director.sh
#!/bin/bash
if [ $# -lt "5" ]
then
echo
echo "This script needs 5 arguments!"
echo " 1) installable unit (IU)";
echo " 2) metadata repository";
echo " 3) artifact repository";
echo " 4) eclipse directory (destination)";
echo " 5) bundle pool directory";
@caniszczyk
caniszczyk / eclipse-egit.spec
Created Jan 26, 2011
A hcaked up eclipse-egit.spec file to play with the p2 director
View eclipse-egit.spec
%global eclipse_base %{_libdir}/eclipse
%global install_loc %{_datadir}/eclipse/
Summary: Eclipse Git plug-in
Name: eclipse-egit
Version: 0.11.1
Release: 1%{?dist}
License: EPL
URL: http://www.eclipse.org/egit/
Group: Development/Tools
@caniszczyk
caniszczyk / TagContainsTest.java
Created Feb 22, 2011
Tries to use JGit to perform git tag --contains
View TagContainsTest.java
/*
* Copyright (C) 2011, Chris Aniszczyk <caniszczyk@gmail.com>
* and other copyright owners as documented in the project's IP log.
*
* This program and the accompanying materials are made available
* under the terms of the Eclipse Distribution License v1.0 which
* accompanies this distribution, is reproduced below, and is
* available at http://www.eclipse.org/org/documents/edl-v10.php
*
* All rights reserved.
View ColorManager.java
package abc.editors;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.widgets.Display;
View DeepLinkBundleList.java
* Copyright (c) David Orme and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* David Orme - initial API and implementation
******************************************************************************/
package org.eclipse.e4.core.deeplink;
View CheckoutCommand.java
* Copyright (C) 2010, Chris Aniszczyk <caniszczyk@gmail.com>
* Copyright (C) 2011, Matthias Sohn <matthias.sohn@sap.com>
* and other copyright owners as documented in the project's IP log.
*
* This program and the accompanying materials are made available
* under the terms of the Eclipse Distribution License v1.0 which
* accompanies this distribution, is reproduced below, and is
* available at http://www.eclipse.org/org/documents/edl-v10.php
*
* All rights reserved.
@caniszczyk
caniszczyk / git-pre-receive-hook.sh
Created Oct 31, 2011
A reasonable git pre-receive-hook
View git-pre-receive-hook.sh
#!/bin/sh
#
# For each ref, validate the commit.
#
# - It disallows deleting branches without a /.
# - It disallows non fast-forward on branches without a /.
# - It disallows deleting tags without a /.
# - It disallows unannotated tags to be pushed.
View stats.coffee
stats =
time: (metric, f) ->
f()
get_time_ms: (metric) ->
0
@caniszczyk
caniszczyk / clone-all-twitter-github-repos.sh
Created Oct 9, 2012
Clone all repos from a GitHub organization
View clone-all-twitter-github-repos.sh
curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'
@caniszczyk
caniszczyk / gist:3863336
Created Oct 10, 2012
GitHub Pull Requests via CLI
View gist:3863336
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
You can’t perform that action at this time.