Skip to content

Instantly share code, notes, and snippets.

@K4zuki
K4zuki / hex2bin_armelf.md
Last active August 29, 2015 14:20
automatic hex2bin run on KEIL for ARM Cortex-M processor

THIS MIGHT NOT WORK ON SOME MICROCONTROLLERS

  • ARMCC has binary converter "fromelf" command like "objcopy" command in GCC

  • some Cortex-M microcontroller vendor requires binary file, instead of ihex forat, for their binary downloader

  • tested with Keil uVision5 free(32kB) version:

    • open ""Options for Target"" window
      • [User] Tab
        • [Run User Programs After Build/Rebuild] section
  • check [Run #1] marked and input :

@K4zuki
K4zuki / patch atom-language-ini.md
Created July 22, 2016 03:06
modify `language-ini` module for atom editor

modify language-ini module for atom editor

install

apm install language-ini

in ini.cson

L1~

'fileTypes': [
  'inf',
 'desktop',
@K4zuki
K4zuki / TexLivePackageInstall.md
Last active August 10, 2016 22:29
texlive package installation

tlmgr install [Package] where [Package] found in http://www.ctan.org/ or its mirror sites.

recently cannot use the command above but great hint found! http://tex.stackexchange.com/questions/313768/tlmgr-unknown-directive saying get update-tlmgr-latest.sh from https://www.tug.org/texlive/tlmgr.html then run as root

# sh update-tlmgr-latest.sh

kpsewhich style.sty to find out where the package is installed

@K4zuki
K4zuki / tex_rotate_pic+caption.md
Created August 12, 2016 10:08
TeX rotate pic and add caption in same direction
@K4zuki
K4zuki / user.inputrc
Last active August 21, 2016 14:57
$HOME/.inputrc # mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
# http://stackoverflow.com/questions/5029118/bash-ctrl-to-move-cursor-between-words-strings
# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
@K4zuki
K4zuki / note.md
Last active August 23, 2016 06:14
USB4x3HUB enclosure
@K4zuki
K4zuki / note.md
Last active August 29, 2016 04:27
git-svn-clone from local (and windows network drive) repos

hint from HERE

  • windows7 and git for windows
  • tortoisesvn 1.8 and given svn environment

start svn server using svnserve.exe

  • on PowerShell run svnserve.exe -d --root <P:\\path\to\local\svn\repository\dir>
    • it makes No prompt

clone svn repo as git repo

  • on your git workspace (if any) run git svn clone svn://relative/path/to/repo
@K4zuki
K4zuki / note.md
Created September 18, 2016 10:03
link to git-submodule note
@K4zuki
K4zuki / note.md
Last active September 18, 2016 12:11
WaveDrom timing diagram editor