Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View kuops's full-sized avatar
😉
I may be slow to respond.

Shiny Hou kuops

😉
I may be slow to respond.
View GitHub Profile
@jmoyers
jmoyers / 1. README.md
Last active June 23, 2023 17:00
Get up and running with a terminal, vim, and c++
  • color scheme
  • terminal
  • z proj, takes you to /some/deep/directory/project
@masihtehrani
masihtehrani / Spacevim.init.toml
Last active July 23, 2023 23:12
spacevim golang ide
#=============================================================================
# dark_powered.toml --- dark powered configuration example for SpaceVim
# Copyright (c) 2016-2017 Wang Shidong & Contributors
# Author: Wang Shidong < wsdjeg at 163.com >
# URL: https://spacevim.org
# License: GPLv3
#=============================================================================
[options]
lint_on_the_fly = true
@hex-ci
hex-ci / logon-py3.py
Last active September 26, 2023 03:35
SecureCRT logon script for google authenticator.
# $language = "python"
# $interface = "1.0"
import base64
import hmac
import struct
import sys
import time
TOTP_KEY = 'YOUR_GOOGLE_AUTH_KEY'
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active April 23, 2024 10:35
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

@amitlt
amitlt / Jenkinsfile
Created April 1, 2019 08:15
Jenkinsfile Parameter Multiple Extended Choice Example shared library step
node {
timeout(time: 5, unit: "MINUTES") {
INPUT_PARAMS = input(
message: 'Please provide the parameter input:',
ok: 'Next',
parameters: [
booleanParam(defaultValue: true, name: 'Create Jira Tickets?', description: ''),
booleanParam(defaultValue: true, name: 'Encrypted?', description: 'Use for secrets/passwords/certificates/etc'),
multipleChoice(name: 'Environments', choices: ["prod", "eu", "test", "mgmt"], description: 'Environments to create parameter in'),
string(name: 'Path', description: 'SSM Parameter Path'),
@maboloshi
maboloshi / README.MD
Last active February 2, 2024 14:51
[小米9 刷入欧洲版MIUI for macOS]

小米9 刷欧洲版 MIUI 固件及适当的本土化修复

本教程不保证它的权威性和正确性,也不对任何实践中的错误、数据丢失等问题负责!
本教程平台为 macOS, 其他系统请酌情参考

更新说明

@ 2020/8/29

  1. 添加"介绍"
  2. 更新 TWRP 信息
@yokawasa
yokawasa / kubernetes-tools.md
Last active October 15, 2019 18:41
Kubernetes Tools
@karthik101
karthik101 / Readonly user for Kubernetes Dashboard.md
Last active June 12, 2023 16:32
Read only user for Kubernetes Dashboard

The view ClusterRole doesn’t actually have permissions for the Cluster level objects like Nodes and Persistent Volume Claims. So we’ll have to create a new RBAC config.

First, we’ll create a new dashboard-viewonly ClusterRole:

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: dashboard-viewonly
@alexanderilyin
alexanderilyin / README.md
Created November 15, 2018 00:58
Auto-increment Minor Semantic Version using Docker Hub API v2

For example your latest image with semantic versioning looks like this:

${DOCKER_HUB_ORG}/${DOCKER_HUB_REPO}:v1.20.0

Example provided above will do the folowing:

  1. Generate token using your github username and password.
  2. Get list of all tags from repository.
@fedme
fedme / Run Visual Studio Code for Linux from WSL.md
Last active November 8, 2023 09:33
Run Visual Studio Code for Linux from WSL on Windows 10

Run Visual Studio Code for Linux from WSL

Thanks a lot to mredbishop and others for their insturctions posted here. This is just a recap of what they figured out.

This process was tested on WSL Ubuntu 18.04.

Install VcXsrv on Windows

  1. Dowload the VcXsrv installer from https://sourceforge.net/projects/vcxsrv/
  2. Install the software on Windows

Add VS Code repositories