This file contains 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
# kubernetes - is an open source system for managing containerized | |
# applications across multiple hosts, providing basic mechanisms for | |
# deployment, maintenance, and scaling of applications. | |
# See: https://kubernetes.io | |
function __kubectl_no_command | |
set -l cmd (commandline -poc) | |
if not set -q cmd[2] | |
return 0 | |
end |
This file contains 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
# -*- coding: utf-8 -*- | |
''' | |
功能: | |
从zonefile文件导入域名到Dnspod | |
requirements: | |
dnspython==1.10.0 | |
requests==1.0.4 | |
''' |
This file contains 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
0xFc571a5fA85fd82393FbD3Ff9d74583a000C174c |
This file contains 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 config --global credential.helper store | |
echo "https://${GITHUB_TOKEN}:x-oauth-basic@github.com" >> ~/.git-credentials |
This file contains 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
#!/bin/bash | |
# Go build script that runs cloc, cpd, lint, vet, test and coverage for Jenkins | |
# | |
# Outside tools include: | |
# gocov: go get github.com/axw/gocov | |
# gocov-xml: go get github.com/t-yuki/gocov-xml | |
# go2xunit: go get bitbucket.org/tebeka/go2xunit | |
# jscpd: npm i jscpd -g | |
# cloc: npm i cloc -g |
This file contains 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
[root@local ~]# dmidecode | grep -A 5 "System Slot" | |
System Slot Information | |
Designation: PCI1 | |
Type: x4 PCI Express Gen 2 x8 | |
Current Usage: Available | |
Length: Long | |
Characteristics: | |
-- | |
System Slot Information | |
Designation: PCI2 |
This file contains 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 remote | xargs -L1 git push --all |
This file contains 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
# basics | |
sudo apt-get update && sudo apt-get install vim-nox fish git zip unzip openjdk-8-jdk -y | |
#oh my fish | |
curl -L github.com/oh-my-fish/oh-my-fish/raw/master/bin/install | sh | |
omf theme | |
#docker | |
curl -sSL https://get.docker.com/ | sh |
This file contains 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
(defun clojure-test-filename () | |
(concat (projectile-project-root) | |
"test/" | |
(mapconcat #'identity | |
(butlast (split-string (cider-current-ns) "\\.")) "/") | |
"/" | |
(file-name-nondirectory (file-name-sans-extension (buffer-file-name))) | |
"_test.clj")) |
This file contains 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
gsutil -o GSUtil:parallel_composite_upload_threshold=150M cp bigfile gs://your-bucket |