- Install syntastic vim plugin (as of vim 7.4.x no plugin manager is required anymore!)
mkdir -p ~/.vim/pack/$USER/start/ cd ~/.vim/pack/$USER/start/ git clone https://github.com/vim-syntastic/syntastic.git - Install yamllint:
pip3 install yamllint - Configure yamllint:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "background" : "#282828", | |
| "black" : "#282828", | |
| "blue" : "#458588", | |
| "brightBlack" : "#928374", | |
| "brightBlue" : "#83A598", | |
| "brightCyan" : "#8EC07C", | |
| "brightGreen" : "#B8BB26", | |
| "brightPurple" : "#D3869B", | |
| "brightRed" : "#FB4934", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Python < Formula | |
| desc "Interpreted, interactive, object-oriented programming language" | |
| homepage "https://www.python.org/" | |
| url "https://www.python.org/ftp/python/3.8.6/Python-3.8.6.tar.xz" | |
| sha256 "a9e0b79d27aa056eb9cce8d63a427b5f9bab1465dee3f942dcfdb25a82f4ab8a" | |
| head "https://github.com/python/cpython.git" | |
| license "Python-2.0" | |
| revision 1 | |
| bottle do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [cmdletbinding(SupportsShouldProcess=$True)] | |
| param( | |
| # What .tar.gz file should be extracted? Must exist. | |
| [Parameter(Mandatory=$True)] | |
| [string]$FileToExtract, | |
| # What folder should the files be extracted into? Does not need to exist | |
| [Parameter(Mandatory=$True)] | |
| [string]$TargetFolder, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Change directory with CDPATH support. Culled from the bash-completion package. | |
| _compopt_o_filenames () | |
| { | |
| type compopt &> /dev/null && compopt -o filenames 2> /dev/null || compgen -f /non-existing-dir/ > /dev/null | |
| } | |
| _filedir () | |
| { | |
| local i IFS=' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj | |
| Cloning into 'my-awesome-proj'... | |
| ssh: connect to host github.com port 22: Connection timed out | |
| fatal: Could not read from remote repository. | |
| $ # This should also timeout | |
| $ ssh -T git@github.com | |
| ssh: connect to host github.com port 22: Connection timed out | |
| $ # but this might work |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def length = 24 | |
| def password = new java.util.Random().with { r -> | |
| def pool = ('a'..'z') + ('A'..'Z') + (0..9) | |
| (1..length).collect { pool[r.nextInt(pool.size())] }.join('') | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: monitoring-influxdb | |
| namespace: kube-system | |
| spec: | |
| replicas: 1 | |
| template: | |
| metadata: | |
| labels: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "title": "区块链工程师面试宝典", | |
| "author": "Haoyu LIN", | |
| "output.name": "site", | |
| "gitbook": "3.2.3", | |
| "root": "./", | |
| "styles": { | |
| "website": "styles/website.css" | |
| }, | |
| "plugins": [ |