Skip to content

Instantly share code, notes, and snippets.

@squeuei
squeuei / Linux_on_HP_UEFI.md
Last active January 20, 2024 13:52
Installing Debian/GNU Linux on HP Elitebook 820 G1 laptop in UEFI Native (without CSM)
@squeuei
squeuei / wi-fi_dongles_with_atheros_ar9271.md
Last active April 13, 2018 22:57
Wi-Fi Dongles with open source driver which can be used in Japan

I've searched for USB dongles which use Atheros AR9271 because some free GNU/Linux distribution communities recommend them. Open source firmware is available so that we can use them without binary blobs. The list below should be usable for those who respect freedom and privacy. It might be usable for those who want to connect Lego Mindstorm EV3 to wireless networks too.

Standard dongles

Introduction

eduMIP is a robotic platform developed by UCSD COORDINATED ROBOTICS LAB.

There is an article about eduMIP.

The kit includes (almost) everything to build a Mobile Inverted Pendulum. The only thing you'll need is a Beaglebone Black or its variants.

The design is open-source. CAD designs are available under the CC BY 4.0 License and software are available under the 3-Clause BSD License.

@squeuei
squeuei / Nexys4ddr_constraints.xdc
Last active May 12, 2018 20:49
FPGAプログラミング大全 Xilinx編 Basys4 DDR用制約ファイル
## 出典:
## 小林優. FPGAプログラミング大全 Xilinx編, 秀和システム, 2016.
## ISBN: 978-4-7980-4753-9
## http://www.shuwasystem.co.jp/support/7980html/4753.html
## Nexys4 DDR constraints file
## chapter: ?
## project: ?????
@squeuei
squeuei / howto.md
Last active May 12, 2018 20:47
How to enable touchscreen scrolling in Firefox

How to enable touchscreen scrolling in Firefox

Instructions

On Debian (As of 2018-05-11, Firefox 60/52ESR, Debian sid):

Add a line to .xsessionrc:

export MOZ_USE_XINPUT2=1
@squeuei
squeuei / fedora28_opam.md
Created June 2, 2018 22:51
Fedora 28 and opam

If you installed opam on Fedora 28, you might be surprised the fact that you can't do opam switch 4.0x.x.

On Fedora 28, sudo dnf install opam installs opam 2.0 beta (as of 2018-06-02).

Official Blog says that there are some changes to be aware of, including:

opam switch create is now needed to create new switches

Therefore, what you want to do should be like this:

@squeuei
squeuei / graphics_library.md
Last active March 14, 2019 11:39
OCaml `Graphics` library and opam switch

Problem

For example, you installed OCaml 4.x.x compiler/environment via opam switch and tried to install graphics.

opam switch 4.x.x
# `opam switch create 4.x.x` if opam 2.0.0
eval `opam config env`
opam install graphics

You might encounter some errors like this.

@squeuei
squeuei / postscript_core_font_set.md
Last active January 28, 2024 15:37
Open Source/TypeKit/Bitstream Alternative to Postscript Core Font Set
PostScript Core Font URW Core35 TeX Gyre Liberation croscore TypeKit Bitstream
Helvetica Nimbus Sans TeX Gyre Heros Liberation Sans Arimo Nimbus Sans Swiss 721
Helvetica Condensed Liberation Sans Narrow Nimbus Sans Condensed Swiss 721
Times Nimbus Roman TeX Gyre Termes Liberation Serif Tinos Nimbus Roman Dutch 801
Courier Nimbus Mono TeX Gyre Cursor Liberation Mono Cousine Courier

| PostScript2 Core Font | URW Core35 | TeX Gyre | Liberation | croscore | TypeKit | Bitstream | |-------------------------|--------------|-------------------|------------------------|--------

@squeuei
squeuei / texlive-on-win10-2018-october-update.md
Last active April 28, 2019 15:07
TeXLive 2018 on Windows 10 2018 October Update

TeXLive 2018 on Windows 10 2018 October Update

TL;DR

If you can't compile your TeX document because of font not found, you should install your user fonts System Wide by right-clicking the font files and selecting Install for all users.

Explanation

From Windows 10 2018 October Update (1809), font files will be installed to %USERPROFILE%/AppData/Local/Microsoft/Windows/Fonts even if you copied your fonts to C:\Windows\fonts on Explorer.

@squeuei
squeuei / lichee-nano-fel.md
Last active October 14, 2023 20:58
How to enter FEL mode on Lichee nano

How to enter FEL mode on Lichee nano

If SPI flash isn't on the board, just remove the TF(microSD) card from the board and supply the power. It's the same if SPI flash is empty,

If your board have a SPI flash with preloaded image, pull D4(SPI CLK) down to GND. You can use the metal part of USB micro B or TF card slot as GND. Diagram is in the comment below. Thanks: @ernestp for the correction and providing a diagram.

Or you can use the special boot image [link]. Just write it to a TF card and boot.

Don't forget to remove the GND connection after entering FEL mode otherwise you will never be able to write the boot image to the SPI flash.