Skip to content

Instantly share code, notes, and snippets.

# from https://github.com/azure/iotedge/blob/aiotg3_stretch/edge-modules/ble/ble_edge_module.sh
ARCH=$(uname -m)
BLE_CONFIG_FILE=
DOCKER_REGISTRY=
check_arch()
{
if [ "$ARCH" == "x86_64" ]; then
ARCH="x64"
@ngi644
ngi644 / vscode-latex.md
Last active April 1, 2018 04:56 — forked from Ikuyadeu/vscode-latex.md
VSCode でLatexの日本語環境を作る

https://marketplace.visualstudio.com/items?itemName=James-Yu.latex-workshop に書いてあったbibのコンパイルを日本語に対応.

  1. VSCodeやLatexをインストールしてなければインストール(https://code.visualstudio.com/)
  2. Latex-Workshopをインストール(https://marketplace.visualstudio.com/items?itemName=James-Yu.latex-workshop)
  3. settings.json(Windows: ファイル > 基本設定 > 設定, Mac: Code > 基本設定 > 設定)のユーザー設定(右側)タブ内, { } の間に以下を追加
    "latex-workshop.latex.tools": [
        {
            "command": "ptex2pdf",
            "args": [
@ngi644
ngi644 / sample_flow.json
Created October 23, 2017 17:26
BME280 + Guage Node Sample Flow
[
{
"id": "86673556.1c2e78",
"type": "bme280rpi",
"z": "3afa292d.a1e0c6",
"name": "",
"bus": "1",
"address": "0x76",
"interval": "3000",
"x": 99,
@ngi644
ngi644 / gist:df25959f0a92208bce4506224eaef3df
Created August 10, 2017 06:59
iOS, Android Filter関数
# フィルタ関数
## iOS
- core image [CIFilter]
- https://developer.apple.com/documentation/coreimage/cifilter
- Core Image Filter Reference
- https://developer.apple.com/library/content/documentation/GraphicsImaging/Reference/CoreImageFilterReference/
@ngi644
ngi644 / custom_install_ficus.sh
Last active March 23, 2017 10:35
ficus.1 をインストール
sudo rm -r /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/patial
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install -y git build-essential software-properties-common python-software-properties curl git-core libxml2-dev libxslt1-dev libfreetype6-dev python-pip python-apt python-dev libxmlsec1-dev swig libmysqlclient-dev
sudo apt-get install -y python-dev --upgrade
sudo rm -r /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/patial
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install -y build-essential software-properties-common python-software-properties curl git-core libxml2-dev libxslt1-dev libfreetype6-dev python-pip python-apt python-dev libxmlsec1-dev swig libmysqlclient-dev
sudo apt-get install -y python-dev --upgrade
#!/bin/bash
# step 0
echo "Install needed packages"
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install -y build-essential software-properties-common python-software-properties curl git libxml2-dev libxslt1-dev libfreetype6-dev python-pip python-apt python-dev libxmlsec1-dev swig libmysqlclient-dev
sudo apt-get install -y python-dev --upgrade
sudo pip install --upgrade pip
sudo pip install setuptools --upgrade
INFO:ansible.callback_plugins.datadog_tasks_timing:edxapp | gather {{ item }} static assets with paver ---------------------------- 573.75s
INFO:ansible.callback_plugins.datadog_tasks_timing:mongo | Install mongo server and recommends ------------------------------------ 285.11s
INFO:ansible.callback_plugins.datadog_tasks_timing:rbenv | install ruby {{ forum_ruby_version }} ---------------------------------- 201.82s
INFO:ansible.callback_plugins.datadog_tasks_timing:forum | install comments service bundle ---------------------------------------- 145.83s
INFO:ansible.callback_plugins.datadog_tasks_timing:certs | Checkout certificates repo into {{ certs_code_dir }} ------------------- 140.73s
INFO:ansible.callback_plugins.datadog_tasks_timing:elasticsearch | install elasticsearch ------------------------------------------ 117.91s
INFO:ansible.callback_plugins.datadog_tasks_timing:oraclejdk | Download Oracle Java ------------------------------------------------ 94.65s
INFO:ansible.callback_plugins.datadog_tasks_
@ngi644
ngi644 / custom_install_eucalyptus3.sh
Last active March 29, 2017 05:00
カスタムeucalyptus.3 をインストールする
sudo rm -r /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/patial
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install -y git build-essential software-properties-common python-software-properties curl git-core libxml2-dev libxslt1-dev libfreetype6-dev python-pip python-apt python-dev libxmlsec1-dev swig libmysqlclient-dev
sudo apt-get install -y python-dev --upgrade
@ngi644
ngi644 / 0_reuse_code.js
Created March 10, 2016 15:57
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console