[BASH][bash] script to create a single file [Takahashi][takahashi] web presentation from a [Markdown][markdown] document.
You'll need a [Markdown][markdown] converter named markdown in your
#!/usr/bin/env bash | |
# Create timelapse. Stop recording with any key. | |
# Requires ImageMagick (Linux only) and MPlayer's MEncoder. | |
# | |
# @param 1 - interval in seconds (optional, default is 1) | |
timelapse() | |
{ | |
local CAPTURE= |
A quick and dirty SQL web console for PHP5+.
Please don't use this in production!
Use this as a quick drop-in to access your web site's database when you can't use SSH (e.g. when you're in a corporate network that blocks SSH. Yes, I know, that's totally braindead and every IT staff doing so should
size 320 | |
fitts 1 | |
title 1 | |
font Sans 8.0 | |
compositing 1 | |
ignore-mask Num_Lock |
#!/usr/bin/env bash | |
# Switch to next viewport | |
next_viewport() | |
{ | |
if (( X+VIEWPORT_WIDTH >= TOTAL_WIDTH )) | |
then | |
X=0 | |
if (( Y+VIEWPORT_HEIGHT >= TOTAL_HEIGHT )) |
#!/usr/bin/env bash | |
# Process literal key | |
process_literal_key() | |
{ | |
case "$REPLY" in | |
$'\E') | |
ESCAPE=1 | |
;; | |
'') |
" Use Tabs | |
function! UseTabs() | |
" Highlight tabs within lines, trailing whitespace and | |
" spaces at the beginning of lines | |
match errorMsg /[^\t]\zs\t\+\|\s\+$\|^[\t]*[ ]\+[\t]*[^\*]/ | |
set noexpandtab | |
endfunc | |
nnoremap <F5> :call UseTabs()<CR> | |
" Use Spaces |