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
<?php | |
/** | |
* Determines which Filesystem Method to use. | |
* The priority of the Transports are: Direct, SSH2, FTP PHP Extension, FTP Sockets (Via Sockets class, or fsockopen()) | |
* | |
* Note that the return value of this function can be overridden in 2 ways | |
* - By defining FS_METHOD in your <code>wp-config.php</code> file | |
* - By using the filesystem_method filter | |
* Valid values for these are: 'direct', 'ssh2', 'ftpext' or 'ftpsockets' | |
* Plugins may also define a custom transport handler, See the WP_Filesystem function for more information. |
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
[remote "origin"] | |
+ url = git://github.com/shield-9/opcache-dashboard.git | |
+ pushurl = git@github.com:shield-9/opcache-dashboard.git | |
- url = git@github.com:shield-9/opcache-dashboard.git |
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"); | |
} |
NewerOlder