Skip to content

Instantly share code, notes, and snippets.

<?php
$f = function($a) {
switch(0) {
case $a % 15:
return 'FizzBuzz';
case $a % 3:
return 'Fizz';
case $a % 5:
return 'Buzz';
@L-P
L-P / enc.md
Last active October 9, 2020 08:27
Removing device encryption on a Samsung Galaxy S3 (i9300) running CyanogenMod 10.1

Removing device encryption on a Samsung Galaxy S3 (i9300) running CyanogenMod 10.1

I couldn't disable the full-device encryption on my phone even by doing factory resets both from Android and the recovery mode, the later being unable to mount /data. There was a lot of people complaining about this on the internet but nobody provided a working solution so I had to investigate this myself.

Note: this will erase everything as would a factory reset do.

@L-P
L-P / iph.php
Created May 4, 2012 15:53
Image PlaceHolder for PHP
<?php
/** Image PlaceHolder for PHP.
* Usage : iph.php?<WIDTH>x<HEIGHT>/<COLOR>
* Ex : iph.php?800x600/FF00FF
* Author : Léo Peltier
* LICENSE : WTFPL
* */
return main();