Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Takashi Oguma bearmini

🏠
Working from home
View GitHub Profile
@bearmini
bearmini / main.go
Created Dec 3, 2019
AWS Lambda code for SORACOM LTE-M Button powered by AWS - Start/stop instances
View main.go
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 Feb 28, 2019
Detects if any IAM cert is used in the specified AWS accounts
View iam-cert-check.sh
#!/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
View build_config.rb (partial) for Tizen SDK 2.2 beta.rb
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"
View build_config.rb (partial) for Tizen SDK 2.1 beta.rb
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 Jun 13, 2011
FABridge.js for IE6, 7 & 8 (passed jslint)
View FABridge.js
/*
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.