Skip to content

Instantly share code, notes, and snippets.

$ 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
@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)
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 / -
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
#!/bin/bash
echo magic: \"$0\" and \"$1\" and \"$2\"
@kmanna
kmanna / Dockerfile
Created November 11, 2014 05:16
Docker + Ansible + AOSP
#FROM ubuntu:14.04
#RUN apt-get update && \
# apt-get install --no-install-recommends -y software-properties-common && \
# apt-add-repository ppa:ansible/ansible && \
# apt-get update && \
# apt-get install -y ansible
FROM ansible/ubuntu14.04-ansible:stable
MAINTAINER Kyle Manna <kmanna@fan.tv>
/dev/input/event6
bustype : BUS_BLUETOOTH
vendor : 0x1915
product : 0xeeee
version : 1
name : "Smart Remote 2"
phys : "00:02:72:33:xx:xx"
uniq : "D7:58:81:3F:xx:xx"
bits ev : EV_SYN EV_KEY EV_REL EV_MSC EV_LED EV_REP
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=IMM76L
ro.build.display.id=IMM76L
ro.build.version.incremental=1906
ro.build.version.sdk=15
ro.build.version.codename=REL
ro.build.version.release=0.20.0.1906
ro.build.date=Wed Jul 2 00:53:07 UTC 2014
ro.build.date.utc=1404262387
# Global configuration section: lists input and output devices always present on the device
# as well as the output device selected by default.
# Devices are designated by a string that corresponds to the enum in audio.h
global_configuration {
attached_output_devices AUDIO_DEVICE_OUT_SPEAKER
default_output_device AUDIO_DEVICE_OUT_SPEAKER
attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC
}
@kmanna
kmanna / -
Created September 9, 2014 01:28
Thought For The Day (A Beautiful Poem)
by Fattire
Puppies playing puppily
Monkeys swinging from a tree,
Fishes swimming in the sea,
Reminding me
Some best things in life...
are free.