Skip to content

Instantly share code, notes, and snippets.

@jaohaohsuan
jaohaohsuan / kubernetes-master.manifest
Created September 7, 2016 09:23
include etcd, kube-apiserver, kube-controller-manager, kube-scheduler and kube-proxy
apiVersion: v1
kind: Pod
metadata:
name: kube-controller
spec:
hostNetwork: true
volumes:
- name: "etc-kubernetes"
hostPath:
path: "/etc/kubernetes"
@BartG95
BartG95 / Makefile
Last active April 15, 2022 15:39
Makefile to compile a typical, simple C++14 project
## Makefile to compile a typical, simple C++14 project.
## Author : Bart Groeneveld
## License : GPLv3
## Latest update: Saturday, May 21st, 2016
## You are probably only interested in the first line of this Makefile.
# Libraries on which TARGET depends
LIBS = \
-lpthread
# Name of the executable
@Arty2
Arty2 / tabs_to_bottom.css
Last active November 5, 2023 19:58
Firefox CSS to move tabs and adress bar to bottom of window. Use with userChrome.css (works with Firefox 71+)
This script has moved to https://github.com/Arty2/userstyles
var application_root = __dirname,
express = require("express"),
path = require("path"),
mongoose = require('mongoose');
var app = express.createServer();
// database
mongoose.connect('mongodb://localhost/ecomm_database');
http_simple (/bytes/1024) over 1-gbit network, with 700 concurrent connections:
------------------------------------------------------------------------------
windows-0.5.4 : 3869 r/s
windows-latest : 4990 r/s
linux-latest-legacy : 5215 r/s
linux-latest-uv : 4970 r/s
@xtian
xtian / html5boilerplate.jade
Last active December 23, 2023 15:05
HTML5 Boilerplate in jade
!!! 5
html(class='no-js')
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge')
title
meta(name='description', content='')
meta(name='viewport', content='width=device-width, initial-scale=1')