This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var api = "http://fuas.sonymobile.com/fuas/services/updates?clientName=PCC&clientVersion=3.0&lang=en-US&model=<YOUR_MODEL>&devId=<YOUR_IMEI>&tac_mc=<FIRST_8_D IGITS_OF_IMEI>&swId=1272-6084&swVer=14.1.G.1.534&fsVariant=GLOBAL-HSPA&cdfId=1277-2364&cdfVer=R5A&buildVariant=USER&clientCertType=live&updateFormat=delta,image&channel=cable"; | |
var model = prompt("Enter your device model (C6902 or C6903)"); | |
var imei = prompt("Enter your device's IMEI number"); | |
var url = api.replace("<YOUR_MODEL>", model) | |
.replace("<YOUR_IMEI>", imei) | |
.replace("<FIRST_8_D IGITS_OF_IMEI>", imei.substring(0, 8)); | |
window.location = url; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function generateHelper(keyword, property, max) { | |
for (var i = 5; i <= 50; i+=5) { | |
console.log(keyword + i + " {" + property + ": " + i + "px; }"); | |
console.log(keyword + "-" + i + " {" + property + ": -" + i + "px; }"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Box Shadow</title> | |
<style> | |
.box { | |
height: 150px; | |
width: 300px; | |
margin: 20px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.body.contentEditable = 'true'; | |
document.designMode = 'on'; | |
void 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.body.contentEditable = 'false'; | |
document.designMode = 'off'; | |
var content = document.documentElement.outerHTML; | |
document.body.innerHTML = "<br><br><br><br><center><button style='width: 50%; font-size: 1.7em; background-color: #3f9fe0; color: #fff' onclick='generate()'>Your HTML</button></center>"; | |
function generate() { | |
document.location = "data:text/json," + escape(content); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-webkit-tap-highlight-color: rgba(255, 255, 255, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CONFIG_ARM_PATCH_PHYS_VIRT is not set | |
CONFIG_EXPERIMENTAL=y | |
CONFIG_LOCALVERSION="-perf" | |
CONFIG_KERNEL_LZO=y | |
CONFIG_SYSVIPC=y | |
CONFIG_AUDIT=y | |
CONFIG_RCU_FAST_NO_HZ=y | |
CONFIG_IKCONFIG=y | |
CONFIG_CGROUPS=y | |
CONFIG_CGROUP_DEBUG=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Lenovo | |
SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE="0666", OWNER="androguide" | |
#LG | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666", OWNER="androguide" | |
#Motorola | |
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666", OWNER="androguide" | |
#NEC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CYAN="\\033[1;36m" | |
GREEN="\\033[1;32m" | |
YELLOW="\\E[33;44m" | |
RED="\\033[1;31m" | |
RESET="\\e[0m" | |
MODE='blah' | |
if [ -z "$1" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git --git-dir=../other/repo/path/.git \ | |
format-patch -k -1 --stdout <commit SHA> | \ | |
git am -3 -k |