1.sh
:
#!/bin/sh
set -eux
rm -rf rubygems bundler
git clone https://github.com/rubygems/rubygems
git clone https://github.com/rubygems/bundler
public static Stream Open(this ZipArchiveEntry entry, bool checkOpenable) | |
{ | |
try | |
{ | |
return entry.GetType().GetMethod("OpenInReadMode", BindingFlags.NonPublic | BindingFlags.Instance) | |
.Invoke(entry, new object[] { checkOpenable }) as Stream; | |
} | |
catch (TargetInvocationException ex1) | |
{ |
#!/bin/bash | |
# Usage: merge-to-subdir source-repo destination-repo subdir | |
# | |
# Merges the history of source-repo into destination-repo as the | |
# history of the subdirectory subdir. | |
# | |
# source-repo can be local or remote. | |
# destination-repo must be local to the machine. | |
# subdir can be a relative path, in which case intermediate |