alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"
chrome --headless --disable-gpu --remote-debugging-port=9222
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"net/http" | |
"net/url" | |
"time" | |
) |
package main | |
import ( | |
"fmt" | |
"log" | |
"strings" | |
"github.com/PuerkitoBio/goquery" | |
) |
// 'Hello World' nodejs6.10 runtime AWS Lambda function | |
exports.handler = (event, context, callback) => { | |
console.log('Hello, logs!'); | |
callback(null, 'great success'); | |
} |
kubernetes commands | |
kubectl get pods && kubectl get services --all-namespaces | |
kubectl get nodes - список нодов | |
kubectl taint nodes --all node-role.kubernetes.io/master- - запуска подов на мастере. | |
kubectl get pod redis --watch |
import logging | |
import sys | |
import functools | |
logging.basicConfig(level=logging.DEBUG) | |
LOGGER = logging | |
def log_if_exception(message): | |
def decorator(function): |