Skip to content

Instantly share code, notes, and snippets.

@K4zuki
K4zuki / install_psreadline.ps1
Last active September 26, 2016 01:36
PowerShell profile
## from http://www.hanselman.com/blog/TowardsABetterConsolePSReadLineForPowerShellCommandLineEditing.aspx
(new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex
install-module PsReadLine
$ps = ${env:USERPROFILE}+"/Documents/WindowsPowerShell"
if (-Not (Test-Path $ps)) {
mkdir $ps
}
$p = ${env:USERPROFILE}+"\git_profile\profile.ps1"
$file= "if (Test-Path $p)
{
@K4zuki
K4zuki / SSCI_SPI_LCD.brd
Last active October 12, 2016 17:02
SsciSpiLcd
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="7.5.0">
<drawing>
<settings>
<setting alwaysvectorfont="yes"/>
<setting verticaltext="up"/>
</settings>
<grid distance="0.1" unitdist="mm" unit="mm" style="dots" multiple="1" display="yes" altdistance="0.1" altunitdist="mm" altunit="mm"/>
<layers>
@K4zuki
K4zuki / WMF5.0packageList.md
Last active October 25, 2016 07:57
Windows Management Framework 5.0 package List
@K4zuki
K4zuki / README.md
Last active June 3, 2017 01:19
markdown-preview-enhanced front matter sample to use pandoc

for HTML output:

output:
  custom_document:
    path: output.html    
    pandoc_args: [    
    "--self-contained",
    # "--number-sections", # if you like it numbered
    # "--reference-docx=/Full/Path/To/Reference.docx",
 "-M","css=/Full/Path/To/github.css",    
@K4zuki
K4zuki / README.md
Created July 12, 2017 08:39
fix Git for windows shortcut

run Git-Bash from $HOME

  1. run git bash
  2. apply Pin this program to task bar
  3. right ckick icon -> right click Git Bash -> Properties
  4. type following into Start in: %HOMEDRIVE%%HOMEPATH%
@K4zuki
K4zuki / atom-on-right-clock-menu.md
Created July 19, 2017 06:18
"Open with Atom" on Ubuntu

cp /usr/share/applications/atom.desktop ~/.local/share/applications/atom.desktop

@K4zuki
K4zuki / gpp-cross-compile.md
Last active July 21, 2017 04:55
cross compilation for gpp

Environment

  • Ubuntu16.04

Commands

  • get gpp-2.25tar.bz archive from https://github.com/logological/gpp/releases
  • $ tar jxf gpp-2.25.tar.bz2 extracts gpp-2.25 directory
  • $ sudo apt-get install mingw-w64 git-core wget quilt
  • $ cd gpp-2.25
  • $ ./configure --host=x86_64-w64-mingw32
  • $ make
@K4zuki
K4zuki / plantuml.md
Last active July 21, 2017 11:39
PlantUML installation
@K4zuki
K4zuki / mbed-cli-os2.md
Last active July 28, 2017 05:48
mbed cli import from mbed.org

Install

follow instruction in https://github.com/ARMmbed/mbed-cli

  • requires Python 2.7.11+, mercurial(from pip), git
  • pip install mercurial
  • pip install mbed-cli

Import existing project from mbed.org

$ mbed import https://developer.mbed.org/users/k4zuki/code/DA7212hello_dev/