diskutil erasevolume hfsx 'RAM Disk' `hdiutil attach -nomount ram://2097152`
Reference: http://www.tekrevue.com/tip/how-to-create-a-4gbs-ram-disk-in-mac-os-x/
| 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 |
diskutil erasevolume hfsx 'RAM Disk' `hdiutil attach -nomount ram://2097152`
Reference: http://www.tekrevue.com/tip/how-to-create-a-4gbs-ram-disk-in-mac-os-x/
| 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; |
| gpg -c --cipher-algo AES256 --symmetric mysecretlife.doc |
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
Summary of this site: https://samindaw.wordpress.com/2012/03/21/mounting-a-file-as-a-file-system-in-linux/
dd if=/dev/zero of=/path/to/big_file bs=1024 count=10000000
sudo losetup /dev/loop0 /path/to/big_file
sudo mkfs -t ext4 -m 1 -v /dev/loop0
mkdir /mnt/my_mount_point
sudo mount -t ext4 /dev/loop0 /mnt/my_mount_point| gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf |
| x=0 | |
| while [ 1 ] | |
| do | |
| x=`expr \( $x + 90 \) % 360 ` | |
| /Applications/Genymotion\ Shell.app/Contents/MacOS/genyshell -c "rotation setangle $x" | |
| sleep 1 | |
| done |
| #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" |