Skip to content

Instantly share code, notes, and snippets.

View coisme's full-sized avatar
🐝
Worker Bee

Osamu Koizumi coisme

🐝
Worker Bee
View GitHub Profile
@coisme
coisme / aws4-hmac-sha256_example.sh
Created June 6, 2023 08:19
Signed request sample for API Gateway
#!/bin/zsh
#
# Signed request sample script for API Gateway
#
# @Author: Osamu Koizumi
#
# Official Document:
# Create a signed AWS API request
# https://docs.aws.amazon.com/IAM/latest/UserGuide/create-signed-request.html
#

Running aws-azure-login on Raspberry Pi OS

When you run aws-azure-login on Raspberry Pi, you may get an error like this:

 $ aws-azure-login --no-prompt
Logging in with profile 'default'...
Using AWS SAML endpoint https://signin.aws.amazon.com/saml
Error: Failed to launch the browser process!
/usr/local/lib/node_modules/aws-azure-login/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome: 1: /usr/local/lib/node_modules/aws-azure-login/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome: Syntax error: ")" unexpected
@coisme
coisme / Greengrass.md
Last active February 14, 2022 04:01
Set up Greengrass to Raspberry Pi Zero W
@coisme
coisme / readme_edge_2.0.0-rc1.md
Created June 25, 2020 01:45 — forked from ryuatarm/readme_edge_2.0.0-rc1.md
Pelion Edge チュートリアル

1. Pelion Edge チュートリアル

Pelion デバイス管理サービス エッジ

Pelion Edge は、Pelion IoT Platform を構成するサービスの一つである Pelion Device Management のエッジゲートウェイ向けソリューションです。

無償で利用可能な評価用のアカウントも用意されています。このドキュメントでは、Pelion Edge の最新バージョンである 2.0.0-rc1 のご紹介およびそのビルドと立ち上げまでの一連の手順をご説明いたします。

@coisme
coisme / Mac-tips.md
Last active March 27, 2023 22:03
Remove com.apple.quarantine from download file

When you download a file from internet, the file would have the attribute com.apple.quarantine.

For example, when I downloaded gcc-arm-none-eabi-9-2019-q4-major-mac.tar.bz2, the file had it.

% xattr Downloads/gcc-arm-none-eabi-9-2019-q4-major-mac.tar.bz2 
com.apple.lastuseddate#PS
com.apple.macl
com.apple.metadata:kMDItemDownloadedDate
com.apple.metadata:kMDItemWhereFroms
com.apple.quarantine
@coisme
coisme / gist:76c958f5f79e5020e67733c195581e7a
Created February 19, 2020 04:53
Enable CMake on macOS after installation
@coisme
coisme / gist:d4ca9a5efda114658914b14484a038f4
Created December 2, 2019 03:57
How to check ARM C compiler version
$ armclang --version
@coisme
coisme / UbuntuOnVBox.md
Last active December 14, 2018 02:30
Setting up Ubuntu 18.04 LTS on VirtualBox and connect it from the host OS

Setting up Ubuntu 18.04 LTS on VirtualBox and connect it from the host OS.

Install Ubuntu into VirtualBox

Download .iso from https://www.ubuntu.com/#download and install it.

Install SSH server

On Ubuntu terminal, run this command and install SSH serer.

@coisme
coisme / pull-notification.sh
Last active September 3, 2018 02:25
Pelion Service API; Pull Notification Example Script
#!/bin/tcsh
set apiKey="<< YOUR API KEY >>"
set deviceId="<< DEVICE ID >>" # Endpoint Name
set resourcePath="3200/0/5501"
while(1)
# Show current time
date +"%I:%M:%S"