Skip to content

Instantly share code, notes, and snippets.

View eru's full-sized avatar
🍺
🍻

Kazuki Hashimoto eru

🍺
🍻
View GitHub Profile
#!/bin/sh
# check root and set MY_YUM
MY_YUM="sudo yum"
if [ ${EUID:-${UID}} = 0 ]; then
MY_YUM="yum"
fi
# remove exists git package
eval ${MY_YUM} erase -y git
#!/bin/sh
## VMware Workstation 12.1.0.3272444
## kernel: 4.3.5-300.fc23.x86_64
cd /usr/lib/vmware/modules/source
find . -type f -name \*.tar -exec cp {}{,.orig} \;
find . -type f -name \*.tar -exec tar xf {} \;
curl -O https://communities.vmware.com/servlet/JiveServlet/download/2576100-151611/b-c.patch.zip && \
unzip b-c.patch.zip && rm -f b-c.patch.zip
##
## メンテナンスモード用コンフィグ
##
## How to use:
## maintenance mode on
## $ rename .conf .conf.maintenance *.conf && rename .conf.tmp .conf *.conf.tmp && service nginx restart
## maintenance mode off
## $ rename .conf .conf.tmp *.conf && rename .conf.maintenance .conf *.conf.maintenance && service nginx restart
##
## Tips:
##
## メンテナンスモード用コンフィグ
##
## How to use:
## maintenance mode on
## $ rename .conf .conf.maintenance *.conf && rename .conf.tmp .conf *.conf.tmp && service httpd restart
## maintenance mode off
## $ rename .conf .conf.tmp *.conf && rename .conf.maintenance .conf *.conf.maintenance && service httpd restart
##
## Tips:
@eru
eru / file0.txt
Created July 31, 2013 06:01
パンくずの区切りを css だけで作る ref: http://qiita.com/eru_tndl/items/954de1f48fc6826cb472
<style type="text/css">
<!--
ul li {
display: inline;
}
ul li+li:before {
content: '\00a0->\00a0';
}
-->
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
# create our directories
// ==UserScript==
// @name Crowsnest Tweak - Open item in background by pressing 'v'
// @namespace http://blog.tndl.net/
// @description Crowsnest Tweak - Open item in background by pressing 'v'
// @include http://www.crowsnest.tv/*
// ==/UserScript==
function openNewBackgroundTab(url) {
var a = document.createElement("a");
a.href = url;
// ==UserScript==
// @name Crowsnest Tweak - Open item in background by pressing 'v'
// @namespace http://blog.tndl.net/
// @description Crowsnest Tweak - Open item in background by pressing 'v'
// @include http://www.crowsnest.tv/*
// ==/UserScript==
function openNewBackgroundTab(url) {
var a = document.createElement("a");
a.href = url;
// ==UserScript==
// @name Crowsnest Tweak - Open item in background by pressing 'v'
// @namespace http://blog.tndl.net/
// @description Crowsnest Tweak - Open item in background by pressing 'v'
// @include http://www.crowsnest.tv/*
// ==/UserScript==
var x;
var link;
// ==UserScript==
// @name Google Reader Tweak - Open feed item in background by pressing 'v'
// @namespace http://sunnywu.net/2007/08/02/google-reader-tweak-open-links-in-background/
// @description Google Reader Tweak - Open feed item in background by pressing 'v'
// @include http://www.google.tld/reader/view/*
// @include https://www.google.tld/reader/view/*
// ==/UserScript==
var x;
var link;