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
@imty42
imty42 / git-develop-workflow.md
Created October 31, 2015 10:44
GIT 开发流程

1. 初始化

git clone some-git-url proj-name
cd proj-name
git config --local user.name your.name
git config --local user.email your.email
git config --global core.editor vim

2. 创建新分支,请参考 [git 分支规范][1] “feature 分支命名规则”部分

git checkout develop

@yanli0303
yanli0303 / static-analysis-test-report2.jelly
Created January 12, 2018 22:25
Jenkins HTML email template for testing result
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define">
<html>
<head>
<title>${project.name}</title>
<style>
body table, td, th, p, h1, h2 {
margin:0;
font:normal normal
100% Georgia, Serif;
@sergebug
sergebug / fitnesse.jelly
Created March 12, 2014 21:04
jelly template to email FitNesse test results using email-ext plugin from Jenkins
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define">
<html>
<head>
<title>${project.name}</title>
<style>
body table, td, th, p, h1, h2 {
margin:0;
font:normal normal
100% Georgia, Serif;
background-color: #ffffff;
@x-cray
x-cray / sonar-report.groovy
Last active July 3, 2019 09:23
Jenkins email-ext plugin groovy template. Generates daily Sonar violations report grouped by culprits.
<!DOCTYPE html>
<head>
<title>Sonar violations report</title>
<style type="text/css">
body
{
margin: 0px;
padding: 15px;
}
@yokawasa
yokawasa / kubernetes-tools.md
Last active October 15, 2019 18:41
Kubernetes Tools
@mayorova
mayorova / Dockerfile
Last active July 31, 2021 02:50
Run APIcast native on Centos 7
FROM centos:7
# Install dependencies
RUN yum install -y yum-utils gcc git
# Enable OpenResty repo (see RHEL section at https://openresty.org/en/linux-packages.html)
RUN yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo
# Enable EPEL packages (needed for LuaRocks)
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
@hgomez
hgomez / oracledownload
Last active October 6, 2021 09:58
Oracle JVM download using curl/wget
# Downloading Oracle JVM without browser
Oracle requires you to accept its licence agreement before downloading its JVM.
It's a pain for those of us who do automation, native packages, Jenkins JVM deployment on slave...
I used Firefox and Firebug to sniff network exchanges.
## HTTP Request :
GET /otn-pub/java/jdk/6u39-b04/jdk-6u39-linux-i586.bin?AuthParam=1359814101_9685f919f8b3113a89574ec4570d47b2 HTTP/1.1
pipeline {
agent any
stages {
stage('Prepare') {
steps {
sh 'composer install'
sh 'rm -rf build/api'
sh 'rm -rf build/coverage'
sh 'rm -rf build/logs'
@tkuther
tkuther / kubernetes-filebeat.yaml
Created July 12, 2018 12:33
Filebeat kubernetes config with nginx module for ingress-nginx
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: filebeat
namespace: kube-system
labels:
k8s-app: filebeat
spec:
template:
metadata:
@kmjones1979
kmjones1979 / nginx.conf
Last active November 15, 2021 11:05
This is an example NGINX configuration for the blog: Performing A/B Testing with NGINX - This demonstrates split_clients based routing on an argument named token
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log info;
pid /var/run/nginx.pid;
events { worker_connections 1024; }
http {
default_type text/html;
log_format main '$remote_addr -> $request $status $body_bytes_sent bytes -> $upstream_addr';
access_log /var/log/nginx/access.log main;