Skip to content

Instantly share code, notes, and snippets.

Avatar

Patrick Lee Scott patrickleet

View GitHub Profile
View gist:1785eadfdf31c513541805948a25fc3b
kubectl get pods --all-namespaces | grep Error | awk '{print $2}' | xargs kubectl delete pod -n jx
View gist:319ff4e101f8fd5d04822c191f6d8cee
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#2d89ef">
<meta name="theme-color" content="#ffffff">
View config
➜ ~ k get cm config -o yaml
apiVersion: v1
data:
config.yaml: |
branch-protection:
orgs:
jenkins-x:
repos:
dummy:
required_status_checks:
@patrickleet
patrickleet / index.mjs
Last active Aug 14, 2018
"differential bundling"
View index.mjs
import log from 'llog'
import path from 'path'
import fastifyStatic from 'fastify-static'
import fastifyCompress from 'fastify-compress'
import { service } from './service'
import sdkData from './sdkData'
import UA from 'browserslist-useragent'
const { src, legacySrc } = sdkData
View genesis_public_key
047361e93acf107deafdb46d087b8dd47112ecb638b165e38a7ea310f71664ec274c82f691bf88f2e62a5337c882dc2fefb43dd93bb048d38dced12a783189b8bf
View api-gateway logs
~ $ docker service logs svtifpxlbxye
api-gateway_gateway.1.svtifpxlbxye@ip-172-31-29-227.ec2.internal | debug: [EG:gateway] Initiating Event Bus
api-gateway_gateway.1.svtifpxlbxye@ip-172-31-29-227.ec2.internal | info: [EG:config] Registered schema for users model.
api-gateway_gateway.1.svtifpxlbxye@ip-172-31-29-227.ec2.internal | debug: [EG:config] REDIS_HOST replaced in configuration file
api-gateway_gateway.1.svtifpxlbxye@ip-172-31-29-227.ec2.internal | debug: [EG:config] REDIS_PORT replaced in configuration file
api-gateway_gateway.1.svtifpxlbxye@ip-172-31-29-227.ec2.internal | info: [EG:config] Registered schema for credentials model.
api-gateway_gateway.1.svtifpxlbxye@ip-172-31-29-227.ec2.internal | info: [EG:config] Registered schema for applications model.
api-gateway_gateway.1.svtifpxlbxye@ip-172-31-29-227.ec2.internal | debug: [EG:config] ConfigPath: /usr/src/service/config/system.config.yml
api-gateway_gateway.1.svtifpxlbxye@ip-172-31-29-227.ec2.internal | debug: [EG:config]
@patrickleet
patrickleet / elasticsearch_cluster.yml
Created Dec 14, 2017
docker stack for elasticsearch cluster
View elasticsearch_cluster.yml
version: "3"
networks:
default:
proxy:
external: true
volumes:
View .babelrc
{
"presets": [
["env", {
"targets": {
"node": "current"
}
}]
],
"plugins": [
["module-resolver", {
View .eslintrc
{
"env": {
"node": true,
"es6": true
},
"extends": "standard",
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
View gist:23ca8f72d425eb084baa7b9973ce3872
<meta charset="UTF-8">
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Большинство поисковых серверов отображают содержимое поля description при выводе результатов поиска. Если этого тега нет на странице, то поисковый движок просто перечислит первые встречающиеся слова на странице, которые, как правило, оказываются не очень-то и в тему." />
<meta name="Keywords" content="HTML, META, метатег, тег, поисковая система" />
<meta name="author" content="Pat Scott">
You can’t perform that action at this time.