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
# Restart API server | |
systemctl restart snap.microk8s.daemon-apiserverd | |
# Apply rules | |
kubectl apply -f rbac-microk8s.yml | |
# Check running | |
kubectl get clusterroles cluster-admin |
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
FROM alpine:3.7 | |
MAINTAINER Narate Ketram <[email protected]> | |
RUN apk update && apk add git build-base lua5.1-dev lzo-dev zlib-dev | |
RUN cd /tmp && \ | |
git clone https://github.com/narate/kyoto.git && \ | |
cd kyoto && \ | |
make && \ | |
make install && \ | |
make clean && \ |
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
git clone [email protected]:cloudflare/kyototycoon.git | |
sudo dnf install openssl-devel kyotocabinet-devel | |
./configure | |
make | |
sudo make install | |
echo /usr/local/lib > /etc/ld.so.conf.d/kyoto-tycoon.conf | |
sudo ldconfig |
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
{ | |
"events": [ | |
{ | |
"type": "message", | |
"replyToken": "e772d6f6b3ce4f198f58a0671889ac55", | |
"source": { | |
"userId": "U55aa364949999f07b2f7b6b9de0ef07", | |
"type": "user" | |
}, | |
"timestamp": 1540374281107, |
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
version: "2" | |
services: | |
verdaccio: | |
image: verdaccio/verdaccio | |
hostname: npm-registry | |
ports: | |
- 4873:4873 | |
# volumes: | |
# - /etc/verdaccio/conf:/verdaccio/conf | |
# - /var/cache/verdaccio/storage:/verdaccio/storage |
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
//Define variable before init ActionHero SpecHelper | |
api.config.upload_config.storage_path = 'c:\\tmp' | |
// Run API | |
let {fileUpLoad} = await api.specHelper.runAction('SuperFileUpload') | |
// Run Async/Awaith Test API | |
await chai.request('http://localhost:' + api.config.servers.web.port) | |
// API end point | |
/* res.body return JSON object from an API | |
* define object or key-value you want to check ( property and value ) |
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
upstream static-server1 { | |
server 127.0.0.1:8888; | |
} | |
# Simple static serv content | |
server { | |
listen 127.0.0.1:8888; | |
root /storage/cdn/cdn1.softsq.com; | |
autoindex on; |
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
[Unit] | |
Description=consul agent | |
Requires=network-online.target | |
After=network-online.target | |
[Service] | |
EnvironmentFile=-/etc/default/consul | |
Environment=GOMAXPROCS=2 | |
Restart=on-failure | |
ExecStartPre=/usr/bin/bash -c "/usr/bin/systemctl set-environment ZEROTIER_IP=$(nmcli connection show zt0 |grep IP4.ADDRESS |awk '{print $ |
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 { | |
client_max_body_size 2000m; | |
client_body_buffer_size 128k; | |
server_name pumuki.example.com _; | |
root /home/www-user/domains/pumukit.example.com/public_html/web; | |