Skip to content

Instantly share code, notes, and snippets.

@i3v
i3v / cdm_fio.sh
Last active Jun 30, 2020
Reproducing CrystalDiskMark tests with fio - fixes for https://unix.stackexchange.com/revisions/480191/9
View cdm_fio.sh
#!/bin/bash
# This script is based on https://unix.stackexchange.com/revisions/480191/9 .
# The following changes proved to be necessary to make it work on CentOS 7:
# * removed disk info (model, size) - not very useful, might not work in many cases.
# * using "bw" instead of "bw_bytes" to support fio version 3.1 (those availible through yum @base)
# * escaping exclamation mark in sed command
# * the ".fiomark.txt" is not auto-removed
LOOPS=5 #How many times to run each test
View etc-default-kubelet (master)
IP=127.0.0.1 # Or your public/private IP
KUBELET_OPTIONS="--api_servers=http://$IP:8080 --v=2 --address=0.0.0.0 --enable_server --hostname_override=$IP --config=/etc/kubernetes/manifests"
View _README.md

Chef 11.4.0 doesn't work with Ruby 2.0.0-p0.

It's been fixed but not released yet.

View 程序邪典.md

关于'抄袭'这个事情,事实上我们(lispers)有三个观点: 1,很多语言抄袭了最初来自LISP的特性; 2,没有一种语言在抄袭时抄到了该LISP特性的精髓; 3,即使没抄到精髓却也已经够用了; ——————田春冰河

首先要看着顺眼,再来考虑语言特性什么的。 ——————E.T

@dseg
dseg / PKGBUILD for librabbitmq-c
Created Nov 23, 2012
librabbitmq-c 20121123-1
View PKGBUILD for librabbitmq-c
# Contributor: aleiphoenix <aleiphoenix@gmail.com>
pkgname=librabbitmq-c
pkgver=20121123
pkgrel=1
pkgdesc="A RabbitMQ(amqp) library written in C-language"
arch=('i686' 'x86_64')
license=('BSD')
makedepends=('git' 'autoconf' 'python' 'xmlto')
url=https://github.com/alanxz/rabbitmq-c
anonymous
anonymous / stdin.txt
Created Jun 7, 2012
stdin
View stdin.txt
commit ba8c7a7a629b736fdc1abceaa3ec49f8820aec08
Author: Richard Yao <ryao@cs.stonybrook.edu>
Date: Thu Jun 7 01:44:31 2012 -0400
scsi: lpfc_scsi: Remove unused variables
Kernels built with CONFIG_SCSI_LPFC fail to compile due to the use of
-Werror=unused-variable. We solve that by removing some unused
variables.
@jrochkind
jrochkind / gist:2161449
Created Mar 22, 2012
A Capistrano Rails Guide
View gist:2161449

A Capistrano Rails Guide

by Jonathan Rochkind, http://bibwild.wordpress.com

why cap?

Capistrano automates pushing out a new version of your application to a deployment location.

I've been writing and deploying Rails apps for a while, but I avoided using Capistrano until recently. I've got a pretty simple one-host deployment, and even though everyone said Capistrano was great, every time I tried to get started I just got snowed under not being able to figure out exactly what I wanted to do, and figured I wasn't having that much trouble doing it "manually".

@mdjhny
mdjhny / bash-invocation.md
Created Jan 6, 2012 — forked from yegle/bash-invocation.md
Bash Shell启动方式与RC脚本
View bash-invocation.md

Bash Shell启动方式与rc脚本

Shell的不同分类

根据启动Bash Shell的方式不同,对Shell有两种分类方式

登录Shell与非登录Shell

根据Shell的启动方式不同,可以将Shell分为

@yegle
yegle / bash-invocation.md
Created Jan 5, 2012
Bash Shell启动方式与RC脚本
View bash-invocation.md

Bash Shell启动方式与rc脚本

Shell的不同分类

根据启动Bash Shell的方式不同,对Shell有两种分类方式

登录Shell与非登录Shell

根据Shell的启动方式不同,可以将Shell分为

@abahgat
abahgat / gae-memcache-decorator.py
Last active Feb 22, 2020
A Python decorator to cache method results using memcache on Google AppEngine
View gae-memcache-decorator.py
import functools
import logging
from google.appengine.api import memcache
def cached(time=1200):
"""
Decorator that caches the result of a method for the specified time in seconds.
Use it as:
You can’t perform that action at this time.