This file contains hidden or 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
| #!/usr/bin/ruby | |
| last_wake_time=0 | |
| while true | |
| IO.popen("adb shell dumpsys power") do |p| | |
| while line = p.gets |
This file contains hidden or 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/sh | |
| xrandr --output LVDS1 --scale 1.3x1.3 --panning 1331x780 --fb 1331x780 |
This file contains hidden or 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
| #!/usr/bin/ruby | |
| # coding: utf-8 | |
| filepath="/var/log/system.log" | |
| fpointer = 0 | |
| f = open(filepath) | |
| f.seek(0, IO::SEEK_END) | |
| fpointer = f.pos | |
| while true |
This file contains hidden or 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 url = new URL(location); | |
| var searchParams = url.searchParams; | |
| var q = searchParams.get("q"); | |
| var promptResult = prompt("regoogle", q); | |
| if(promptResult&&promptResult!=q) { | |
| searchParams.set("q", promptResult); | |
| url.search = searchParams.toString(); | |
| location.href = url.href; | |
| } |
This file contains hidden or 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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import sys | |
| from HTMLParser import HTMLParser, HTMLParseError | |
| preface='''<!DOCTYPE NETSCAPE-Bookmark-file-1> | |
| <!-- This is an automatically generated file. | |
| It will be read and overwritten. | |
| DO NOT EDIT! --> | |
| <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> |
This file contains hidden or 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/sh | |
| kexec -l /mnt/casper/vmlinuz.efi --command-line "noprompt cdrom-detect/try-usb=true file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz --" --initrd=/mnt/casper/initrd.lz |
This file contains hidden or 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
| (setq scruptime 0) | |
| (global-set-key [mouse-4] | |
| '(lambda () | |
| (interactive) | |
| (setq scruptime_new (float-time) ) | |
| (setq scrup_dt (- scruptime_new scruptime)) | |
| (if (> scrup_dt 0.05) | |
| (scroll-down-line 1) | |
| (scroll-down-line (ceiling (/ 0.05 scrup_dt) ) ) | |
| ) |
This file contains hidden or 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
| (global-set-key | |
| "\C-w" | |
| (lambda () | |
| (interactive) | |
| (if (region-active-p) | |
| (kill-region (region-beginning) (region-end) ) | |
| (message "Please set region") | |
| ) | |
| ) |
This file contains hidden or 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
| /* before getopt_long */ | |
| FILE* D_fp = NULL; | |
| int D_value; | |
| int D_ret; | |
| /* add D: to getopt_lonf */ | |
| getopt_long(argc, argv, "f:t:c:C:d:D:rsgh", options, &option_index) | |
| /* add case for 'D' */ | |
| case 'D': |
This file contains hidden or 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
| package name | app name | |
|---|---|---|
| com.sonymobile.entrance | what's new | |
| jp.co.nttdocomo.lcsappsub | docomo位置情報 | |
| jp.co.nttdocomo.lcsapp | docomo位置情報 | |
| com.nttdocomo.android.iconcier | ||
| com.nttdocomo.android.iconcier_contents | ||
| com.android.contacts | ||
| com.android.dialer | ||
| com.nttdocomo.android.applicationmanager | docomo Application Manager | |
| com.nttdocomo.android.socialphonebook |