Skip to content

Instantly share code, notes, and snippets.

View adumont's full-sized avatar
😃

Alexandre Dumont adumont

😃
View GitHub Profile
@adumont
adumont / gapps-config.txt
Created February 24, 2015 17:35
gapps-config.txt for PA Full Google Apps
Books
Chrome
CloudPrint
Docs
Ears
Earth
NewsStand
NewsWidget
PlayGames
Sheets
@adumont
adumont / Online Security Measures.md
Last active August 29, 2015 14:18
Online Security Measures

Some measures to help you keep your precious accounts (and your data privacy) safe online

Suggestions are welcome to @adumont on Twitter, or via pull request here ;).

KeePass

Password Safe to keep all your online passwords

Store your KeePass db file it in your Dropbox. Also choose one file (from your Dropbox or better another cloud storage drive, like GDrive, or OneDrive, as your KeePass DB Key File.

@adumont
adumont / p2d.sh
Last active September 11, 2015 11:40 — forked from tobert/p2d.sh
Physical-to-Docker conversion script ... as in, these are the steps I went through, but this script is not something you want to run on any machine you care about. I've removed employer-specific stuff from this copy.
#!/bin/bash
#
# This is really just notes, but I put them in a shell script so I get
# free highlighting and easy cut/paste (in and out).
#
echo "Don't run this script! It's meant to be read. It will destroy your system!"
exit 1
RAW="lucid-amd64-cdh3u4-raw"
@adumont
adumont / gist:1600222
Created January 12, 2012 12:28
SuperOSR HTC Chacha - Camera.apk - Fix for 90º issue (temporal)
Here is my fix for the Camera.apk. For the moment it's getting the job done, but it's ugly, Later I'll put in place a system property for example and read from it.
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java
index d308d33..5399c7c 100644
--- a/src/com/android/camera/Camera.java
+++ b/src/com/android/camera/Camera.java
@@ -825,7 +825,7 @@ public class Camera extends BaseCamera implements View.OnClickListener,
info.orientation != 90) {
rotation = (info.orientation - mOrientation + 360) % 360;
} else { // back-facing camera (or acting like it)
@adumont
adumont / local_manifest.xml
Created January 18, 2012 12:18
local_manifest.xml (cm7)
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="github-https" fetch="https://github.com/" review="review.cyanogenmod.com" />
<remove-project path="prebuilt" name="CyanogenMod/android_prebuilt" />
<project path="prebuilt" name="dhacker29/android_prebuilt" />
<project path="device/htc/chacha" name="adumont/android_device_htc_chacha" />
<project path="vendor/htc/chacha" name="adumont/android_vendor_htc_chacha" />
@adumont
adumont / gsync.sh
Created March 26, 2012 22:49
gsync
#!/bin/bash
# Copyright (C) 2011 SuperTeam.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@adumont
adumont / unpack.nvsbl.v3.sh
Created July 24, 2012 19:54
Unpack NVSBL v3 boot.img
#!/bin/bash
BOOTIMG=$1
dd if=$BOOTIMG ibs=1 skip=64 > Image.lzma
lzma -cd Image.lzma > Image
INICIO=$( grep -P -a -b -m 1 --only-matching $'\x42\x5a\x68\x39' Image | cut -d: -f1 )
@adumont
adumont / repack.nvsbl.v3.sh
Created July 24, 2012 20:51
Repack NVSBL v3 boot.img
#!/bin/bash
# we need out/host/linux-x86/bin/mkbootfs in the path
mkbootfs initramfs > initramfs.new.cpio
bzip2 -1 < initramfs.new.cpio > initramfs.new.cpio.bz2
OLDSIZE=$( wc -c < initramfs.cpio.bz2 )
NEWSIZE=$( wc -c < initramfs.new.cpio.bz2 )
@adumont
adumont / gnex.xml
Created December 11, 2013 00:27
local_manifest for Galaxy Nexus including blobs. for cm-11.0
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="cm-11.0" />
<project name="TheMuppets/proprietary_vendor_imgtec" path="vendor/imgtec" remote="github" revision="cm-11.0" />
<project name="TheMuppets/proprietary_vendor_broadcom" path="vendor/broadcom" remote="github" revision="cm-11.0" />
<project name="TheMuppets/proprietary_vendor_invensense" path="vendor/invensense" remote="github" revision="cm-11.0" />
<project name="TheMuppets/proprietary_vendor_widevine" path="vendor/widevine" remote="github" revision="cm-11.0" />
<project name="TheMuppets/proprietary_vendor_nxp" path="vendor/nxp" remote="github" revision="cm-11.0" />
<project name="CyanogenMod/android_device_samsung_maguro" path="device/samsung/maguro" remote="github" />
<project name="CyanogenMod/android_kernel_samsung_tuna" path="kernel/samsung/tuna" remote="github" />
@adumont
adumont / .tmux.conf
Created March 2, 2016 00:08
.tmux.conf
set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
unbind %
bind | split-window -h
bind – split-window -v