Skip to content

Instantly share code, notes, and snippets.

View bearmini's full-sized avatar
🏠
Working from home

Takashi Oguma bearmini

🏠
Working from home
View GitHub Profile
@bearmini
bearmini / main.go
Created December 3, 2019 03:53
AWS Lambda code for SORACOM LTE-M Button powered by AWS - Start/stop instances
package main
import (
"encoding/json"
"strings"
"fmt"
"os"
"github.com/aws/aws-lambda-go/lambda"
"github.com/aws/aws-sdk-go/aws"
@bearmini
bearmini / iam-cert-check.sh
Last active February 28, 2019 07:42
Detects if any IAM cert is used in the specified AWS accounts
#!/usr/bin/env bash
RED="\\033[1;31m"
GREEN="\\033[1;32m"
RESET="\\033[0m"
if [ "$1" == "" ]; then
echo "usage: $0 <profile> ..."
exit 1
fi
TIZEN_SDK = "#{ENV['HOME']}/tizen-sdk"
TIZEN_GCC_I386_TOOLCHAIN_BASE = "#{TIZEN_SDK}/tools/i386-linux-gnueabi-gcc-4.5"
TIZEN_GCC_I386_BIN = "#{TIZEN_GCC_I386_TOOLCHAIN_BASE}/bin"
TIZEN_GCC_I386_EMULATOR_BASE = "#{TIZEN_SDK}/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.native"
MRuby::CrossBuild.new('tizen-x86') do |conf|
toolchain :gcc
# Use standard print/puts/p
conf.gem "#{root}/mrbgems/mruby-print"
TIZEN_SDK = "#{ENV['HOME']}/tizen-sdk"
TIZEN_GCC_I386_TOOLCHAIN_BASE = "#{TIZEN_SDK}/tools/i386-linux-gnueabi-gcc-4.5"
TIZEN_GCC_I386_BIN = "#{TIZEN_GCC_I386_TOOLCHAIN_BASE}/bin"
TIZEN_GCC_I386_EMULATOR_BASE = "#{TIZEN_SDK}/platforms/tizen2.1/rootstraps/tizen-emulator-2.1.native"
MRuby::CrossBuild.new('tizen-x86') do |conf|
toolchain :gcc
# Use standard print/puts/p
conf.gem "#{root}/mrbgems/mruby-print"
@bearmini
bearmini / FABridge.js
Created June 13, 2011 09:14
FABridge.js for IE6, 7 & 8 (passed jslint)
/*
Copyright 2006 Adobe Systems Incorporated
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.