This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
set -u | |
set -x | |
tempfile=$(mktemp -u) | |
hdiutil create -size 8g -fs HFS+J -layout SPUD ${tempfile} | |
hdiutil attach ${tempfile}.dmg -noverify -nobrowse -mountpoint /Volumes/Install\ macOS\ Mojave | |
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --nointeraction --downloadassets --volume /Volumes/Install\ macOS\ Mojave | |
hdiutil detach /Volumes/Install\ macOS\ Mojave |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
set -u | |
set -x | |
name=Catalina | |
tempfile=$(mktemp -u) | |
hdiutil create -size 9g -fs HFS+J -layout SPUD ${tempfile} | |
hdiutil attach ${tempfile}.dmg -noverify -nobrowse -mountpoint /Volumes/Install\ macOS\ ${name} | |
sudo /Applications/Install\ macOS\ ${name}.app/Contents/Resources/createinstallmedia --nointeraction --downloadassets --volume /Volumes/Install\ macOS\ ${name} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:bionic | |
MAINTAINER [email protected] | |
RUN apt-get -y update | |
RUN apt-get -y install mosquitto mosquitto-clients | |
EXPOSE 1883 | |
CMD ["/usr/sbin/mosquitto", "-v"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:bionic | |
MAINTAINER [email protected] | |
RUN apt-get -y update | |
RUN apt-get -y install wget xz-utils | |
RUN cd /root \ | |
&& wget https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-x64.tar.xz \ | |
&& tar xf node-v10.16.0-linux-x64.tar.xz \ | |
&& PATH=/root/node-v10.16.0-linux-x64/bin:$PATH \ | |
&& npm install node-red |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iconv -f UTF-8 -t CP932 <<! | LANG=ja_JP.UTF-8 wine regedit - | |
REGEDIT4 | |
[HKEY_CURRENT_USER\\Control Panel\\Desktop] | |
"FontSmoothingType"=dword:00000002 | |
[HKEY_CURRENT_USER\\Software\\Wine\\Fonts\\Replacements] | |
"MS UI Gothic"="ヒラギノ丸ゴ ProN W4" | |
"MS ゴシック"="ヒラギノ丸ゴ ProN W4" | |
"MS Pゴシック"="ヒラギノ丸ゴ ProN W4" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ds:1": [ | |
[ | |
3, | |
8, | |
5, | |
6, | |
7 | |
], | |
null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
set -u | |
set -x | |
ESXI_TARGET_IMAGE=esxi.img | |
ESXI_SOURCE_IMAGE=VMware-VMvisor-Installer-6.7.0-8169922.x86_64.iso | |
truncate -s 512MB "${ESXI_TARGET_IMAGE}" | |
echo ',,c,*' | sfdisk "${ESXI_TARGET_IMAGE}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:trusty | |
LABEL maintainer "Makoto Yoshida <[email protected]>" | |
RUN sed -E -i -e 's!(archive|security)\.ubuntu\.com!ftp.jaist.ac.jp/pub/Linux!' /etc/apt/sources.list \ | |
&& apt-get update \ | |
&& apt-get -y install \ | |
ca-certificates \ | |
libicu52 \ | |
libxslt1.1 \ | |
libglib2.0-0 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import time | |
import RPi.GPIO as GPIO | |
import spidev | |
import psutil | |
SEG = [ | |
0b00111111 # 0 | |
, 0b00000110 # 1 |