Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
echo magic: \"$0\" and \"$1\" and \"$2\"
@kmanna
kmanna / -
Created November 21, 2014 20:20
diff --git a/Dockerfile b/Dockerfile
index 8a9aa36..71b5e48 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -27,12 +27,12 @@ RUN chmod 755 /usr/local/bin/*
# All builds will be done by user aosp
RUN useradd --create-home aosp
ADD gitconfig /home/aosp/.gitconfig
+ADD ssh_config /home/aosp/.ssh/config
RUN chown aosp:aosp /home/aosp/.gitconfig
The following packages will be REMOVED:
bash* dash*
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
bash dash (due to bash)
0 upgraded, 0 newly installed, 2 to remove and 44 not upgraded.
After this operation, 1749 kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
?] Abort.
@kmanna
kmanna / repo.sync.txt
Created December 16, 2014 19:28
Fail.
$ repo sync
...
File "/aosp/.repo/repo/project.py", line 1853, in _RemoteFetch
initial=False, quiet=quiet, alt_dir=alt_dir)
File "/aosp/.repo/repo/project.py", line 1853, in _RemoteFetch
initial=False, quiet=quiet, alt_dir=alt_dir)
File "/aosp/.repo/repo/project.py", line 1853, in _RemoteFetch
initial=False, quiet=quiet, alt_dir=alt_dir)
File "/aosp/.repo/repo/project.py", line 1853, in _RemoteFetch
initial=False, quiet=quiet, alt_dir=alt_dir)
$ time (for i in seq $((86400 * 365 * 10)) ; do echo $i | gmd5sum; done > /dev/null)
( for i in seq $((86400 * 365 * 10)); do; echo $i | gmd5sum; done > /dev/null)
0.00s user 0.00s system 76% cpu 0.007 total