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
$ git add -p file1 | |
$ git stash --keep-index | |
$ git commit -m 'only partial adds' file1 | |
$ git stash pop |
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
$ git rebase f034498fbcf4e728d022e1511d630191f2f5ee67^ --interactive | |
# mark each commit that needs updating with "edit" or "e" | |
Then, for each commit: | |
$ git commit --amend --reuse-message=HEAD --author="Edward Bridges <ebridges@squarespace.com>" | |
$ git rebase --continue |
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
mkdir -p ~/src/my-boxen | |
cd ~/src/my-boxen | |
git init | |
git remote add upstream https://github.com/boxen/our-boxen | |
git fetch upstream | |
git checkout -b master upstream/master | |
git remote add origin https://github.com/wfarr/my-boxen | |
git push origin master |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<name>Example APK Lib</name> | |
<groupId>com.example</groupId> | |
<artifactId>example-android-apklib</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>apklib</packaging> |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<name>Example Parent POM</name> | |
<url>http://maven.apache.org</url> | |
<groupId>com.example</groupId> | |
<artifactId>example-parent-pom</artifactId> | |
<version>1.0</version> | |
<packaging>pom</packaging> |
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 | |
jarfile= | |
groupId= | |
artifactId= | |
version= | |
localRepo= | |
packaging=jar | |
createChksum=true | |
generatePom=true |
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
import android.app.Activity; | |
// http://stackoverflow.com/questions/3874775/detect-my-apps-own-androidversioncode-at-run-time | |
public class GetVersion { | |
public static Integer getVersion(Activity activity) { | |
Integer version = 0; | |
try { | |
version = activity.getPackageManager().getPackageInfo(getPackageName(), 0).versionCode; | |
} catch (NameNotFoundException e) { | |
// Todo: handle |
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
# https://github.com/android/platform_external_opencore/blob/master/pvmi/pvmf/include/pvmf_return_codes.h | |
use strict; | |
my $enumName = "VideoErrorCode"; | |
my $first = 1; | |
my %data; | |
for(<DATA>){ | |
chomp; | |
my ($msg,$code) = split /,/; |
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
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-eclipse-plugin</artifactId> | |
<version>2.8</version> | |
<configuration> | |
<excludes> | |
<exclude>com.google.android:android</exclude> | |
</excludes> | |
<buildOutputDirectory>bin</buildOutputDirectory> | |
<classpathContainers> |
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
#!/usr/bin/perl | |
use strict; | |
my $repo="$ENV{HOME}/.m2/repository"; | |
my $cwd = `pwd`; | |
chomp($cwd); | |
my $localRepo=$cwd.'/lib'; | |
for(<DATA>) { |
OlderNewer