Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/env ruby | |
instances = `aws ec2 describe-instances | \ | |
jq -r -c '.Reservations[].Instances[] | [.InstanceId, (.Tags[]? | select(.Key == "Name")).Value, .PrivateIpAddress , .State.Name ] | @csv'` | |
instances.split().each do |instance| | |
id, name, ip, state = instance.gsub('"', '').split(',') | |
name = "NONAME" if name.empty? | |
puts "#{name}\t#{id}\t#{ip}\t#{state}" |
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
<source> | |
type dstat | |
tag foo | |
option -cdnm --tcp --udp --load -gs | |
delay 5 | |
</source> | |
<source> | |
type df | |
option -k |
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
#!/opt/td-agent/embedded/bin/ruby | |
require 'growthforecast' | |
COLOR_CPU = { | |
'hiq' => '#77cc11', | |
'idl' => '#77cccc', | |
'siq' => '#77cc11', | |
'sys' => '#cc7711', | |
'usr' => '#cc77cc', |
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
server { | |
# allow access from localhost | |
# listen 80 reuseport backlog=1024; | |
listen 443 ssl http2 backlog=1024; | |
server_name test.kazu634.com; | |
ssl_certificate /etc/letsencrypt/live/test.kazu634.com/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/test.kazu634.com/privkey.pem; | |
ssl_dhparam /etc/letsencrypt/live/test.kazu634.com/dhparams_4096.pem; |
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
{ | |
"manifest_version": 2, | |
"name": "My 4th extension", | |
"version": "0.1", | |
"description": "testing purpose", | |
"permissions": [ | |
"activeTab" | |
], |
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
<?xml version="1.0" encoding="utf-8"?> | |
<unattend xmlns="urn:schemas-microsoft-com:unattend"> | |
<settings pass="windowsPE"> | |
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<SetupUILanguage> | |
<UILanguage>en-US</UILanguage> | |
</SetupUILanguage> | |
<InputLocale>en-US</InputLocale> | |
<SystemLocale>en-US</SystemLocale> | |
<UILanguage>en-US</UILanguage> |
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
#!/opt/sensu/embedded/bin/ruby | |
require 'open-uri' | |
require 'json' | |
END_POINT = 'http://localhost:4567/clients' | |
BASIC_AUTH = {:http_basic_authentication => ['admin', 'supersecret']} | |
response = open(END_POINT, BASIC_AUTH) |