Skip to content

Instantly share code, notes, and snippets.

View geekwho-eth's full-sized avatar

Geek Who geekwho-eth

View GitHub Profile
@geekwho-eth
geekwho-eth / synology_disk_benchmark.sh
Created January 16, 2022 03:37 — forked from gxfxyz/synology_disk_benchmark.sh
A simple script to test Synology NAS disk speed with hdparm, dd and fio
#!/usr/bin/env bash
# =======================================================================================
#
# A simple script to test Synology NAS disk speed with hdparm, dd and fio.
#
# How to use:
#
# 1. Save synology_disk_benchmark.sh and xfio.conf to your Synology NAS
# 2. Make it executable: chmod +x synology_disk_benchmark.sh
@geekwho-eth
geekwho-eth / .git-commit-template.txt
Created June 8, 2019 17:45 — forked from jmaxhu/.git-commit-template.txt
一份建议的git commit模板
# <类型>: (类型的值见下面描述) <主题> (最多50个字)
# 解释为什么要做这些改动
# |<---- 请限制每行最多72个字 ---->|
# 提供相关文章和其它资源的链接和关键字
# 例如: Github issue #23
# --- 提交 结束 ---
# 类型值包含
{"sig":"1804dbb6dc67be28dc2fa55923fe8a2315253bd18dd4c68d0a25a3aa0f8dbc3c88810d3c696dac1707ead2c1869d372d87eb689d4c6c97ea4a1c7734109819bb1","msghash":"81183b28a82dcb842b8efd385bee527fa476c4ee164194e7d123a4ec405098eb"}
@geekwho-eth
geekwho-eth / vbox
Created February 6, 2018 17:02 — forked from gongzhitaao/vbox
usb token
#+STARTUP: noindent
问题:VirtualBox成功安装Win7后无法识别招行网银
系统:Ubuntu12.04 prices,VirtualBox4.1.12
依次设置:
1 增加当前用户对usb的操作权限:
$sudo lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
@geekwho-eth
geekwho-eth / markdownhere.css
Created December 31, 2017 10:53 — forked from xiaolai/markdownhere.css
markdown-here-css
.markdown-here-wrapper {
font-size: 16px;
line-height: 1.8em;
letter-spacing: 0.1em;
}
pre, code {
font-size: 14px;
font-family: Roboto, 'Courier New', Consolas, Inconsolata, Courier, monospace;
@geekwho-eth
geekwho-eth / svn-to-git.md
Created November 26, 2016 04:57 — forked from fengmk2/svn-to-git.md
从 svn 迁移到 gitlab svn to git

从 svn 迁移到 gitlab

找出所有提交者

$ svn log --xml | grep author | sort -u | perl -pe 's/.>(.?)<./$1 = /'

手动设置对应关系 users.txt

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
<?php
require_once 'app/Mage.php';
Mage::app();
$quote = Mage::getModel('sales/quote')
->setStoreId(Mage::app()->getStore('default')->getId());
$product = Mage::getModel('catalog/product')->load(6); /* 6 => Some product ID */
@geekwho-eth
geekwho-eth / mono.rb
Created November 11, 2013 15:27 — forked from shtirlic/mono.rb
# http://www.mono-project.com/Compiling_Mono_on_OSX
require 'formula'
class Mono < Formula
#url 'http://download.mono-project.com/sources/mono/mono-3.0.6.tar.bz2'
#sha1 'e2187f80366fcd65c55a1ab946f8d3b39e81be77'
url 'http://download.mono-project.com/sources/mono/mono-2.10.9.tar.bz2'
sha1 '1a6e8c5a0c3d88d87982259aa04402e028a283de'
@geekwho-eth
geekwho-eth / purge-cache.sh
Created November 12, 2012 03:26 — forked from cosimo/purge-cache.sh
Script to purge varnish cache by URL, by regexp or all of it (for Debian)
#!/bin/sh
# purge-cache: Script to purge varnish cache. Defaults are defined in
# /etc/default/varnish.
#
# Cosimo <[email protected]>
# Based on reload-vcl, by Stig Sandbeck Mathisen <ssm at debian dot org>
# Settings
defaults=/etc/default/varnish