Skip to content

Instantly share code, notes, and snippets.

@hayajo
hayajo / changelog_en.md
Last active April 1, 2025 14:37
ChangeLog を支える英語

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形

@rdmpage
rdmpage / cloudant_replication.txt
Created October 4, 2012 15:36
Replicate local CouchDB database to Cloudant (replace
curl http://admin:password@localhost:5984/_replicate -H 'Content-Type: application/json' -d '{ "source": "afd", "target": "https://admin:[email protected]/afd" , "proxy":"http://wwwcache.gla.ac.uk:8080"}'
replace "admin" and "password" by username and password
@Pistos
Pistos / 00-Riddle.txt
Created September 12, 2012 03:21
Math Riddle
There are each a cup of milk and a cup of coffee (same amounts).
First you transfer one spoon of milk into the coffee.
After achieving an optimal mixture, transfer one spoon of the milky coffee into the milk.
Is there more coffee in the milk or more milk in the coffee?
@jameswyse
jameswyse / app.js
Created August 25, 2012 07:15
Express 3 locals
app.use(function(req, res, next) {
res.locals = {
keywords: config.app.meta_keywords,
description: config.app.meta_description,
url: url.parse(req.url).href
};
next();
};
@dz0ny
dz0ny / 99java
Created July 7, 2012 10:23
Install java,flash,mp3,mp4 to Chromium OS
## Setup java
if [ `uname -m` == 'x86_64' ]; then
PATH="/usr/lib64/jvm/java-7-oracle/jre/bin/"
JAVA_HOME="/usr/lib64/jvm/java-7-oracle/"
else
PATH="/usr/lib/jvm/java-7-oracle/jre/bin/"
JAVA_HOME="/usr/lib/jvm/java-7-oracle/"
fi
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active November 15, 2025 02:35
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@kathangeorg
kathangeorg / typo3.ts
Created April 25, 2012 06:42
Fullscreen Background Galery (Backstretch)
page.includeJSFooter.file23456 = fileadmin/templates/js/backstretch/jquery.backstretch.min.js
page.includeJS.file002 >
page.jsFooterInline {
10 = COA
10.10 = CONTENT
10.10.wrap = var images = [ | ];
10.10 {
table = tt_content
@tmm1
tmm1 / elitedesktop.md
Created April 9, 2012 08:00
How to pimp your linux

THIS ASSUMES YOU RUN DEBIAN (or ubuntu, mint) AND ARE NOT A SUCKA MC

XDM

sudo aptitude install xdm
sudo echo '/usr/bin/xdm' > /etc/X11/default-display-manager

spectrwm, dmenu

sudo aptitude install dmenu libxtst-dev
git clone git://opensource.conformal.com/spectrwm.git
cd spectrwm/linux

@rtomayko
rtomayko / MikeClock.java
Created April 7, 2012 23:57
Digital Clock Java applet from 1996 written by none other than @mperham
/*
* Digital Clock Java applet 06/27/96
* by Mike Perham [email protected]
*
* Blinks the colon every second; refreshes time
* every minute. Futuristic LED display. Generally nifty.
*
* Array digit[] holds a bitmask of which LEDs each number
* lights up: digit[1] = 6 because it lights up the 2nd
* and 3rd LEDs.
@zolrath
zolrath / gist:2305333
Created April 4, 2012 20:27
tmux status line from wemux example.

For a tmux status line as seen in the example image for the wemux project: wemux

The session on the left in the example screen shot uses a patched font from the vim-powerline project. Inconsolata-dz, you beautiful creature.

To duplicate the left status line add the following lines to your ~/tmux.conf

set -g status-left-length 32
set -g status-right-length 150