This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Install-JapaneseUI | |
| { | |
| param | |
| ( | |
| [parameter( | |
| mandatory = 1, | |
| position = 0)] | |
| [ValidateSet("Windows2012","Windows2012R2")] | |
| [string] | |
| $targetOSVersion, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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]" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #======================================================================= | |
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #======================================================================= | |
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'json' | |
| require 'yaml' | |
| require 'nokogiri' | |
| require 'uri' | |
| require 'faraday' | |
| require 'ostruct' | |
| require 'pry' | |
| require 'time' | |
| def y data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # 温度計の温度をLCDに表示する | |
| import smbus | |
| import time | |
| from datetime import datetime | |
| class BME280: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| import requests | |
| from datetime import datetime as dt | |
| def getAllList(token): | |
| q = { | |
| 'token': token, | |
| 'seq_no': 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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') |