Skip to content

Instantly share code, notes, and snippets.

View tokida's full-sized avatar

Hideaki Tokida tokida

View GitHub Profile
@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
#=======================================================================
# 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 / 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]"
function Install-JapaneseUI
{
param
(
[parameter(
mandatory = 1,
position = 0)]
[ValidateSet("Windows2012","Windows2012R2")]
[string]
$targetOSVersion,
#Requires -Version 3.0
#-- Prerequisite OS Setting Module Functions --#
function New-ValentiaPSRemotingFirewallRule
{
<#
.SYNOPSIS
@tokida
tokida / bootstrap4Ubuntu.sh
Last active December 21, 2022 13:34
Provisioning Script
#=======================================================================
# bootstrap4Ubuntu.sh on SoftLayer
#=======================================================================
sudo apt-get update
sudo apt-get upgrade
# Install Util
sudo apt-get install git curl -y
# Install SoftLayer Command line Interface
@tokida
tokida / Dockerfiles
Created August 1, 2014 04:55
Docker registry with swift driver
# start from a registry release known to work
FROM registry:0.7.3
# get the swift driver for the registry
RUN pip install docker-registry-driver-swift==0.0.1
# SoftLayer uses v1 auth and the sample config doesn't have an option
# for it so inject one
RUN sed -i '91i swift_auth_version: _env:OS_AUTH_VERSION' /docker-registry/config/config_sample.yml
*** tmux-1.9a.orig/utf8.c 2014-02-23 05:48:37.000000000 +0900
--- tmux-1.9a/utf8.c 2014-07-06 00:43:50.000000000 +0900
***************
*** 22,27 ****
--- 22,32 ----
#include "tmux.h"
+
+ #define _XOPEN_SOURCE
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "dummy"
config.vm.box_url = "https://github.com/audiolize/vagrant-softlayer/raw/master/dummy.box"
config.vm.synced_folder ".", "/vagrant", type: "rsync"
#=======================================================================
# bootstrap4Ubuntu.sh on SoftLayer
#=======================================================================
sudo apt-get update
sudo apt-get upgrade
# Install Util
sudo apt-get install git -y
sudo apt-get install curl -y