Skip to content

Instantly share code, notes, and snippets.

View sunnoy's full-sized avatar
🎯
Focusing

sunnoy

🎯
Focusing
View GitHub Profile
@sunnoy
sunnoy / HTML.html
Last active September 23, 2017 14:05
vuejs学习
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>learn vue.js</title>
<script src="https://unpkg.com/vue"></script>
<link rel="stylesheet" type="text/css" href="http://unpkg.com/iview/dist/styles/iview.css">
<script type="text/javascript" src="http://unpkg.com/iview/dist/iview.min.js"></script>
<style type="text/css">
@sunnoy
sunnoy / install
Created September 14, 2017 03:31
前段nodejs集合
sudo apt install nodejs
sudo apt install npm
中国镜像
npm config set registry https://registry.npm.taobao.org
升级node
npm install -g n
n stable
@sunnoy
sunnoy / tet.php
Created September 17, 2017 07:07
medium
case 'text':
$urlcon = $message->Content;
// //发送到图灵机器人接口
//
// $url = "http://www.tuling123.com/openapi/api?key=f7b6e44c70ea46f3972d95e7bd044789&info=" . $content;
// //获取图灵机器人返回的内容
// $content = file_get_contents($url);
// //对内容json解码
// $content = json_decode($content);
// //把内容发给用户
@sunnoy
sunnoy / Installing a Go development environment on Mac OS for beginners.md How to install a functional Go development environment on MacOS with Atom and all the bells and whistles.
@sunnoy
sunnoy / generate_iterm2_dynamic_profiles.pl
Created June 7, 2019 13:20 — forked from rsperl/generate_iterm2_dynamic_profiles.pl
Reads in ~/.ssh/config and generates iterm2 dynamic profiles #tags: lang-perl
#!/usr/bin/env perl
#
# licensed under GPL v2, same as iTerm2 https://www.iterm2.com/license.txt
#
use strict;
use JSON;
my $output = $ENV{HOME} . "/Library/Application\ Support/iTerm2/DynamicProfiles/profiles.json";
@sunnoy
sunnoy / one-key-ssl.sh
Last active June 19, 2019 08:57
ssl-create
#/bin/bash
# @author: anyesu
if [ $# != 1 ] ; then
echo "USAGE: $0 [HOST_IP]"
exit 1;
fi
#============================================#
# 下面为证书密钥及相关信息配置,注意修改 #
@sunnoy
sunnoy / aria2.conf
Created July 14, 2019 13:15 — forked from WincerChan/aria2.conf
Aria2 配置文件
## 全局设置 ## ============================================================
# 日志
#log-level=warn
#log=/PATH/.aria2/aria2.log
# 下载位置,改成你自己的 默认: 当前启动位置
dir=/media/wincer/Deep/Videos
disk-cache=32M
# 文件预分配方式, 能有效降低磁盘碎片, 默认:prealloc
@sunnoy
sunnoy / 配置方法.sh
Last active August 9, 2019 02:47
kubectl配置认证
#创建一个专属的namespace
kubectl create ns spinnaker
#创建一个sa
kubectl create serviceaccount spinnaker-service-account -n spinnaker
#进行sa的集群角色绑定
kubectl create clusterrolebinding spinnaker-service-account --clusterrole cluster-admin --serviceaccount=spinnaker:spinnaker-service-account
#获取sa的token-secret
@sunnoy
sunnoy / Jenkinsfile
Created July 16, 2019 10:16 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples
@sunnoy
sunnoy / Jenkinsfile
Created July 17, 2019 04:32 — forked from abayer/Jenkinsfile
An example Declarative Pipeline Jenkinsfile for Feb 15 2017 demo
// A Declarative Pipeline is defined within a 'pipeline' block.
pipeline {
// agent defines where the pipeline will run.
agent {
// This also could have been 'agent any' - that has the same meaning.
label ""
// Other possible built-in agent types are 'agent none', for not running the
// top-level on any agent (which results in you needing to specify agents on
// each stage and do explicit checkouts of scm in those stages), 'docker',