Skip to content

Instantly share code, notes, and snippets.

@i3v
i3v / cdm_fio.sh
Last active May 15, 2024 13:10
Reproducing CrystalDiskMark tests with fio - fixes for https://unix.stackexchange.com/revisions/480191/9
#!/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
@sroze
sroze / etc-default-kubelet (master)
Last active September 17, 2019 02:53
Kuberlet upstart
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"
@e0da
e0da / _README.md
Last active December 15, 2015 02:49

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

It's been fixed but not released yet.

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

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

@dseg
dseg / PKGBUILD for librabbitmq-c
Created November 23, 2012 05:07
librabbitmq-c 20121123-1
# 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 June 7, 2012 05:51
stdin
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 March 22, 2012 18:40
A Capistrano Rails Guide

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 January 6, 2012 12:35 — forked from yegle/bash-invocation.md
Bash Shell启动方式与RC脚本

Bash Shell启动方式与rc脚本

Shell的不同分类

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

登录Shell与非登录Shell

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

@yegle
yegle / bash-invocation.md
Created January 5, 2012 11:44
Bash Shell启动方式与RC脚本

Bash Shell启动方式与rc脚本

Shell的不同分类

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

登录Shell与非登录Shell

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

@abahgat
abahgat / gae-memcache-decorator.py
Last active January 22, 2021 00:43
A Python decorator to cache method results using memcache on Google AppEngine
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: