Skip to content

Instantly share code, notes, and snippets.

View tokida's full-sized avatar

Hideaki Tokida tokida

View GitHub Profile
function Install-JapaneseUI
{
param
(
[parameter(
mandatory = 1,
position = 0)]
[ValidateSet("Windows2012","Windows2012R2")]
[string]
$targetOSVersion,
@tokida
tokida / install_ideraAgent_deb.sh
Created March 10, 2015 05:56
Install Idera Agent for Deb
# Install Idera Agent for Deb
echo deb http://repo.r1soft.com/apt stable main >> /etc/apt/sources.list
wget http://repo.r1soft.com/r1soft.asc
apt-key add r1soft.asc
apt-get update
apt-get install r1soft-cdp-enterprise-agent -y
echo "r1soft-setup --get-key [Server_URL]"
#=======================================================================
# bootstrap4Ubuntu.sh on SoftLayer
# Ceph Server
#=======================================================================
sudo apt-get update
sudo apt-get upgrade
# Install Util
sudo apt-get install git -y
sudo apt-get install curl -y
@tokida
tokida / nodered4softlayer
Last active September 7, 2015 00:55
NODE-RED on Ubuntu for SoftLayer Virtual Machine
#=======================================================================
# node-red for ubuntu@SoftLayer
#
#=======================================================================
sudo apt-get update
sudo apt-get upgrade
# Install Util
sudo apt-get install git -y
sudo apt-get install curl -y
# docker-library/buildpack-deps:curl
apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
curl \
wget \
&& rm -rf /var/lib/apt/lists/*
# docker-library/buildpack-deps:scm
apt-get update && apt-get install -y --no-install-recommends \
@tokida
tokida / Rakefile
Last active February 27, 2016 15:50 — forked from kyanny/Rakefile
Qiita::Team お引越しスクリプト
require 'json'
require 'yaml'
require 'nokogiri'
require 'uri'
require 'faraday'
require 'ostruct'
require 'pry'
require 'time'
def y data
@tokida
tokida / dispToTemp.py
Created May 20, 2016 19:21
i2c接続のBME280センサーで取得した値を LCD(AQM0802A)に描画する
#!/usr/bin/python
# -*- coding: utf-8 -*-
# 温度計の温度をLCDに表示する
import smbus
import time
from datetime import datetime
class BME280:
@tokida
tokida / gist:b9ea87f7994c45107c429d621c2343d2
Created June 30, 2016 06:24
ansible-playbook ubuntu localization(japan)
# Install Modules
- name: apt-get update
apt: update_cache=yes cache_valid_time=3600
- name: standard application install
apt: name={{ item }} state=latest install_recommends=yes
with_items:
- git
# -*- coding: utf-8 -*-
import requests
from datetime import datetime as dt
def getAllList(token):
q = {
'token': token,
'seq_no': 0,
@tokida
tokida / todoist2slack_openwhisk.py
Created January 26, 2017 15:59
openwhisk action : today todo in todoist 2 slack post
import requests
import datetime
import json
def main(dict):
token = dict.get('todoist_token')
project_id = dict.get('todoist_projectId')
url = dict.get('slack_url')