This file contains 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
WEBHOOK_URL="https://hooks.slack.com/services/XXXXXX/XXXXXX/XXXXXXX" | |
IP=$1 | |
MSG=$2 | |
DATE=$3 | |
TIME=$4 | |
SEVERITY=$5 | |
SERVICETAG=$6 | |
RESOLUTION=$7 | |
CATEGORY=$8 | |
ASSETTAG=$9 |
This file contains 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
FROM bitnami/mongodb:3.6.14-debian-9-r62 | |
COPY libmongodb.sh / |
This file contains 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
#! /bin/bash | |
curl -LO https://mackerel.io/file/agent/deb/mackerel-agent_latest.all.deb | |
sudo dpkg -i mackerel-agent_latest.all.deb | |
curl -LO https://github.com/mackerelio/mackerel-agent/releases/download/v0.58.0/mackerel-agent_linux_arm.tar.gz | |
tar xf mackerel-agent_linux_arm.tar.gz | |
sudo mv mackerel-agent_linux_arm/mackerel-agent /usr/local/bin/mackerel-agent | |
sudo chown root:root /usr/local/bin/mackerel-agent | |
sudo cp /usr/local/bin/mackerel-agent /usr/bin/ | |
sudo mackerel-agent init -apikey="${MACKEREL_AGENT_API_KEY}" |
This file contains 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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: nginx-svc | |
labels: | |
app: nginx | |
spec: | |
type: NodePort | |
ports: | |
- port: 10080 |
This file contains 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
<?php | |
$cluster = new RedisCluster(NULL, [ | |
'cluster-1:7000', 'cluster-2:7000', | |
'cluster-3:7000', 'cluster-4:7000', | |
'cluster-5:7000', | |
]); | |
for ($i = 0; $i < 1000000; $i++) { | |
$cluster->get($i); |
This file contains 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
for i in `git branch|sed -e 's/^[* ]*//'` | |
do | |
git checkout $i | |
git stash | |
git rebase origin/$i | |
done | |
git checkout master | |
for i in `git branch -r|grep -v HEAD|grep -v master|sed 's:origin/::g'` | |
do |
This file contains 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
#include <SakuraIO.h> | |
//SakuraIO_SPI sakuraio(10); | |
SakuraIO_I2C sakuraio; | |
void setup() { | |
Serial.begin(9600); | |
Serial.print("Waiting to come online"); | |
} |
This file contains 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
# include <Siv3D.hpp> | |
# include <HamFramework.hpp> | |
struct CommonData | |
{ | |
int counter = 0; | |
int score = 0; | |
// 大きさ 30 のフォントを用意 | |
Font font{30}; | |
}; |
NewerOlder