Install with Node.js:
npm install
alias k='kubectl' | |
alias kd='kubectl describe' | |
alias kdd='kubectl describe deployment' | |
alias kddn='kubectl describe deployment --namespace' | |
alias kdp='kubectl describe pod' | |
alias kdpn='kubectl describe pod --namespace' | |
alias kds='kubectl describe secret' | |
alias kdsn='kubectl describe secret --namespace' | |
alias kdsv='kubectl describe service' | |
alias kdsva='kubectl describe service --all-namespaces' |
#!/bin/bash | |
trap 'rm -rf terraform.tfplan' EXIT | |
trap '' INT | |
function filter_manifest_short() { | |
grep --line-buffered -v -P '\(known after apply\)|\(\d+ unchanged \w+ hidden\)' | |
} | |
function filter_manifest_compact() { |
# Docker services for development environment | |
# | |
# Usage: docker-compose up -d --remove-orphans | |
version: "3" | |
services: | |
influxdb: | |
container_name: influxdb | |
image: influxdb:1.7 | |
ports: |
#!/usr/bin/env ts-node | |
/// <reference types="node" /> | |
import glob from 'fast-glob' | |
import fs from 'fs' | |
import path from 'path' | |
import yargs from 'yargs' | |
const defaultPatterns = ['**/*.graphql', '**/*.gql', '!node_modules'] |
from graphene_django.views import GraphQLView | |
from django.conf import settings | |
from django.utils.decorators import classonlymethod | |
from django.views.decorators.csrf import csrf_protect, csrf_exempt | |
class NoCsrfForJSONGraphQLView(GraphQLView): | |
@classonlymethod | |
def as_view(cls, **kwargs): |
class Teacher { | |
} | |
class Director { | |
} | |
class Student { | |
constructor(name) { | |
this.name = name; | |
} | |
} | |
function greeting(stranger) { |
ab -n 10000 -c 100 -T text/json -p ping.json http://127.0.0.1:5000/ping/ |
require! { | |
'promise-once-events' | |
'smtp-server' | |
} | |
const SERVER_PORT = 25 | |
module.exports = class smtp-server-as-promised extends promise-once-events | |
(@options = {}) -> |