Skip to content

Instantly share code, notes, and snippets.

swdream

Block or report user

Report or block swdream

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View redis.md

redis-cli --scan --pattern otp:0903441084:* | xargs redis-cli del

View ssh_tunnel.md

Edit ssh config :

Edit /etc/ssh/sshd_config

AllowTcpForwarding yes
PermitTunnel yes

Restart ssh service

View install_go.md
#!/bin/bash
set -ex

cd /tmp
curl -O https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz
tar xvf go1.10.3.linux-amd64.tar.gz

mkdir ~/go
View jenkins
1c7be5bb5b4e779c2d252bf276cb06e3da0bfa5c75a3d48caa3de99af110b558
View k8s.md

Master machine components

Etcd

  • Lưu trữ configuration files được sử dụng bởi các node trong cluster
  • là high availability key value store có thể được đặt trong nhiều node
  • nó chưá một số sensitive info và được access bởi kubenetes API server

API server

View cache_sbt.md
# some parts originally from https://github.com/randm-ch/units-of-information/blob/master/.gitlab-ci.yml

image: "hseeberger/scala-sbt:8u141-jdk_2.12.3_1.0.2"

variables:
  SBT_OPTS: "-Dsbt.global.base=sbt-cache/sbtboot -Dsbt.boot.directory=sbt-cache/boot -Dsbt.ivy.home=sbt-cache/ivy"
  COURSIER_CACHE: sbt-cache/coursier #only needed if you use coursier

View html.md

Images

<td align="center">

button:

        <div class="row">
You can’t perform that action at this time.