Skip to content

Instantly share code, notes, and snippets.

View uebayasi's full-sized avatar

Masao Uebayashi uebayasi

  • Tombi Inc.
  • Yokohama, Kanagawa, Japan
View GitHub Profile
@uebayasi
uebayasi / rmd2pdf.sh
Last active May 3, 2019 13:18
rmd2pdf - Convert RMD to PDF reproducibly
#!/bin/sh
#
# rmd2pdf.sh - Convert RMD to PDF reproducibly
#
# Requirements: lualatex (TeXlive)
#
set -e
rmd=$1
  • Apps Scriptプロジェクトのデプロイ手続きを、非対話的に行えない   - "Publish > Deploy as API executable..."に相当する処理  - REST APIとしてcreate deployが提供されており、呼び出しも成功するが、authorizationができない   - claspも同様  - 一度authorizeされたデプロイを再デプロイすることは、非対話的に行える    - clasp redeployに相当
  • Apps ScriptプロジェクトのCloud Platformへの切り替え手続きを、非対話的に行えない
  • Deployment ManagerでApp Engineのアプリを扱えない
  • そもそもApp EngineはCloud Platformのプロジェクトと1:1なので、それがDeployment Managerとしてどう見えるのかが不明
  • Clone Inkscape Git repo
  • Install brew
    • Update to the latest
  • Build Inkscape following the Wiki except:
    • Install into $HOME/.local instead of ../inst
  • If build fails, install the missing thing by brew install something
    • Repeat until build finishes
  • Fix shared-mime-info
    • mkdir -p /usr/local/share/mime/packages
  • cp /usr/local/Cellar/shared-mime-info/1.8_1/share/shared-mime-info/packages/freedesktop.org.xml /usr/local/share/mime/packages
@uebayasi
uebayasi / openwrt-x86_64-nfs-root.md
Last active September 29, 2020 03:46
Mount root as NFS on OpenWrt x86_64

Summary

  • Not much info available but surely possible
  • Basically same as normal Linux NFS root
  • Except kernel configuration adjustment might be tricky

Environment

  • Target: OpenWrt 15.x on KVM
  • Host Ubuntu 16.04
@uebayasi
uebayasi / openwrt-x86_64-kvm.md
Last active September 6, 2016 09:26
Running OpenWrt (x86_64) on KVM

Basics

  • Ubuntu 16.04
  • Ethernet -> e1000
    • make kernel_menuconfig
    • Intel Pro 1000 (CONFIG_E1000=y)
@uebayasi
uebayasi / ubuntu-pxe-nfsroot.md
Last active September 7, 2016 10:37
Ubuntu PXE + NFS root

Summary

  • Not difficult but documentation inaccurate

Overview

  • Build PXE + NFS root environment for development
    • KVM
    • Serial console
  • Basically [1] but tweaks needed
@uebayasi
uebayasi / ubuntu-kvm.md
Last active September 5, 2016 10:44
Ubuntu + KVM

TL;DR - Use diffconfig

Initial build

  • Create .config by running make menuconfig interactively
  • Generate diffconfig by running ./script/diffconfig.sh and save it (e.g. ~/hoge.config)
  • Do build (make)

Incremental build

  • Fix system header internal include (XXX evil XXX)
    • Replace #include <sys/*.h> with #include "sys/*.h" in /usr/include/*.h
    • Replace #include <sys/*.h> with #include "*.h" in /usr/include/sys/*.h
  • Symlink liblto_plugin.so
cd ${TOOLDIR}/libexec/gcc/x86_64--netbsd/5.4.0
ln -sf liblto_plugin.so.0.0 liblto_plugin.so.0
ln -sf liblto_plugin.so.0.0 liblto_plugin.so.0
  • XXX genmatch vs. libiconv
  • Click the interesting packet
  • Select "File" -> "Export Specified Packets"
  • Select "Packet Range" -> "Selected packets only"