Skip to content

Instantly share code, notes, and snippets.

adb shell pm block com.kddi.cs.app001
adb shell pm block com.kddi.android.imp
adb shell pm block com.kddi.android.easysettingwizard
adb shell pm block com.kddi.android.auoneidsetting
adb shell pm block com.kddi.ohanashiassistant
adb shell pm block com.kddi.auoneshopping
adb shell pm block com.kddi.android.UtaPass
adb shell pm block com.kddi.android.btdun
adb shell pm block com.kddi.android.packageinstaller
adb shell pm block com.kddi.ux.station
adb shell pm hide jp.co.nttdocomo.carriermail
adb shell pm hide com.nttdocomo.android.sdcardbackup
adb shell pm hide com.nttdocomo.android.lac
adb shell pm hide com.nttdocomo.android.remotelock
adb shell pm hide com.nttdocomo.android.cloudset
adb shell pm hide com.nttdocomo.android.mediaplayer
adb shell pm hide com.nttdocomo.android.applicationmanager
adb shell pm hide com.nttdocomo.android.atf
adb shell pm hide jp.co.omronsoft.android.decoemojimanager_docomo
adb shell pm hide jp.co.nttdocomo.anshinmode
@shtaxxx
shtaxxx / rename.sh
Created November 15, 2015 19:37
rename.sh
for file in `find . -type f | grep lib`
do
git mv $file `echo $file | sed 's/pipeline/dataflow/'`
done
@shtaxxx
shtaxxx / emacs-indent.el
Created November 15, 2015 10:52
emacs-indent.el
:;exec emacs -batch -l "$0" -f : "$@" --no-site-file -q # -*- Emacs-Lisp -*-
; @emacs -batch -l "%~f0" -f : %* --no-site-file -q & goto :EOF
;
; indent specified file(s) with emacs indent-region
; http://www.emacswiki.org/emacs/EmacsScripts
; http://www.cslab.pepperdine.edu/warford/BatchIndentationEmacs.html
; http://d.hatena.ne.jp/Nos/20131121/1385027070
(defun : ()
(dolist (f (nthcdr 5 command-line-args))
(find-file f)
@shtaxxx
shtaxxx / LedRTL_0x791afe0d4d8c.v
Last active August 29, 2015 14:23
Blinking LED on PyMTL
//-----------------------------------------------------------------------------
// LedRTL_0x791afe0d4d8c
//-----------------------------------------------------------------------------
// dump-vcd: False
`default_nettype none
module LedRTL_0x791afe0d4d8c
(
input wire [ 0:0] clk,
output reg [ 7:0] led,
input wire [ 0:0] reset
@shtaxxx
shtaxxx / led.py
Last active August 29, 2015 14:23
Blinking LED on Veriloggen
import sys
import os
from veriloggen import *
def mkLed():
m = Module('blinkled')
width = m.Parameter('WIDTH', 8)
clk = m.Input('CLK')
rst = m.Input('RST')
led = m.OutputReg('LED', width)
@shtaxxx
shtaxxx / bram_vivado.v
Created March 20, 2015 13:41
Block RAM for Vivado 2014.4 (OK case and NG case)
// OK
module OnchipRam_OK #
(
parameter W_D = 32,
parameter W_A = 10
)
(
input CLK,
input [W_A-1:0] addr0,
input we0,
@shtaxxx
shtaxxx / getargspec.py
Created March 3, 2015 02:56
getargspec.py: reading argument list of a method in Python
import inspect
def func(a):
return a * a
r = inspect.getargspec(func)
print(r)
@shtaxxx
shtaxxx / fib_pycoram.py
Last active August 29, 2015 14:16
Fibonacci in Python for PyCoRAM High-level Synthesis
iochannel = CoramIoChannel(idx=0, datawidth=32)
def fib(v):
if v <= 0: return 0
if v == 1: return 1
## Recursive call is not supported
# return fib(v-1) + fib(v-2)
r0 = 0
r1 = 1
for i in range(v-1):
@shtaxxx
shtaxxx / .cshrc
Created February 5, 2015 13:21
.cshrc for executing bash
if ( ! $?prompt ) then
exit 0
endif
setenv OLDSHELL $SHELL
setenv SHELL /bin/bash
exec /bin/bash --login