Skip to content

Instantly share code, notes, and snippets.

@caarmen
caarmen / acore.txt
Last active December 28, 2016 14:55
How to stop the acore infinite loop crash
If you get this error in a loop: *Unfortunately, the process android.process.acore has stopped*
The following commands will make it go away.
(Not sure if all of them are necessary).
adb -d shell pm clear com.android.calendar
adb -d shell pm clear com.google.android.gm
adb -d shell pm clear data com.android.contacts
adb -d shell pm clear android.process.acore
@caarmen
caarmen / ramdisk.md
Last active June 10, 2022 14:49
Create a 1G case-sensitive ram disk on Mac OS
@caarmen
caarmen / gist:9ab3461d747600249ab7
Last active August 29, 2015 14:13
Backing up a small program here for converting a proprietary Excel file to HTML for one specific website. Very useful for everybody...
package ca.rmen.poemsfah;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.InputStream;
import java.text.Normalizer;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
@caarmen
caarmen / gpg.txt
Last active April 23, 2023 07:28
use gpg to encrypt a file with a password
gpg -c --cipher-algo AES256 --symmetric mysecretlife.doc
@caarmen
caarmen / docker.md
Last active January 20, 2016 15:41
Docker info

Start/stop: systemctl restart docker

systemctl stop docker

systemctl start docker

systemctl daemon-reload (do this after changing docker config)

Config: /lib/systemd/system/docker.service

@caarmen
caarmen / loopback.md
Created January 20, 2016 15:57
Creating a loopback filesystem
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
@caarmen
caarmen / genymotion_rotate.sh
Created June 3, 2016 09:17
Rotate genymotion in a loop
x=0
while [ 1 ]
do
x=`expr \( $x + 90 \) % 360 `
/Applications/Genymotion\ Shell.app/Contents/MacOS/genyshell -c "rotation setangle $x"
sleep 1
done
@caarmen
caarmen / adball.bash
Last active July 23, 2016 22:50
adb-all bash function
#test
adb-all()
{
adb devices | while read line
do
if [ ! "$line" = "" ] && [ `echo $line | awk '{print $2}'` = "device" ]
then
device=`echo $line | awk '{print $1}'`
echo "$device:"
adb -s $device $@
val hello="foo"