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 | |
export MESSAGE=$1 | |
export BRANCH=$2 | |
if [ "$MESSAGE" == "" ] | |
then | |
echo "Usage $0 commit-message" | |
exit 1 | |
fi | |
export MESSAGE="${MESSAGE}" |
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 | |
f=$(pwd) # 'pwd' is "present working directory" | |
FOLDERS=`ls -d $f/*` | |
for f in $FOLDERS | |
do | |
if [ -d "$f/.git" ]; then | |
pushd $f | |
git pull |
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
#if 0 | |
# | |
# This is Solaris x86 specific GCC run-time environment patch, which | |
# makes it possible to reliably deploy .init snippets. Trouble is that | |
# Solaris linker erroneously pads .init segment with zeros [instead of | |
# nops], which is bound to SEGV early upon program start-up. This bug | |
# was recognized by GCC team [it is mentioned in source code], but | |
# workaround apparently and obviously erroneously slipped away in some | |
# newer GCC release. This patch compensates for this mishap by dropping | |
# modified values-X*.o into GCC installation tree. Object modules in |
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 com.google.protobuf.DescriptorProtos; | |
import com.google.protobuf.Descriptors; | |
import com.google.protobuf.DynamicMessage; | |
import com.google.protobuf.Message; | |
import java.util.HashMap; | |
/** | |
* ProtobufEnvelope - allows creating a protobuf message without the .proto file dynamically. | |
* |
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 | |
#Got this solution from http://fossplanet.com/f10/%5Bbug-775104%5D-%5Bnew%5D-kernel-2-6-38-8-ath5k-driver-wireless-signalstrength-critically-weak-148704/ by salemboot | |
apt-get install subversion | |
cd /usr/src | |
svn checkout http://madwifi-project.org/svn/madwifi/trunk madwifi | |
tar cfvz madwifi.tgz | |
cd madwifi | |
make && make install |
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
cd <PROJECT> | |
git remote add upstream git@github.com:<GITHUB_ACCOUNT_NAME>/<PROJECT>.git | |
git fetch upstream | |
#Stash/commit all your work | |
git checkout develop | |
git merge upstream/develop | |
git checkout <FEATURE_BRANCH> | |
git merge develop | |
#Fix errors, merge conflicts, etc. | |
#Run tests |
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
diff --git a/Makefile.in b/Makefile.in | |
index 3772058..74a2d79 100644 | |
--- a/Makefile.in | |
+++ b/Makefile.in | |
@@ -348,7 +348,7 @@ KCONFIG_FILES := conf mconf nconf kconfig.mk | |
install-lib-kconfig: $(DESTDIR)$(libdir) install-lib-main | |
@echo " INST 'kconfig/'" | |
@for f in $(KCONFIG_FILES); do \ | |
- install -D "kconfig/$${f}" "$(DESTDIR)$(libdir)/kconfig/$${f}"; \ | |
+ $(install) -D "kconfig/$${f}" "$(DESTDIR)$(libdir)/kconfig/$${f}"; \ |
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
/* ANSI-C code produced by gperf version 3.0.3 */ | |
/* Command-line: gperf ../crosstool-ng-1.14.1/kconfig/zconf.gperf */ | |
/* Computed positions: -k'1,3' */ | |
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ | |
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ | |
&& (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \ | |
&& ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \ | |
&& ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \ | |
&& ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \ |
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
/* ANSI-C code produced by gperf version 3.0.4 */ | |
/* Command-line: src/gperf ../crosstool-ng-1.14.1/kconfig/zconf.gperf */ | |
/* Computed positions: -k'1,3' */ | |
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ | |
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ | |
&& (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \ | |
&& ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \ | |
&& ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \ | |
&& ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \ |
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
$ brew install -v io --HEAD | |
==> Installing io | |
==> Cloning https://github.com/stevedekorte/io.git | |
git clone --depth 1 https://github.com/stevedekorte/io.git /Library/Caches/Homebrew/io--git | |
Cloning into '/Library/Caches/Homebrew/io--git'... | |
remote: Counting objects: 6135, done. | |
remote: Compressing objects: 100% (4184/4184), done. | |
remote: Total 6135 (delta 2045), reused 4540 (delta 1297) | |
Receiving objects: 100% (6135/6135), 15.02 MiB | 184 KiB/s, done. | |
Resolving deltas: 100% (2045/2045), done. |