Moved, see VIM Cheatsheet
- Get a GitHub account: https://github.com/
- Github > Dashboard > New Repository ... https://github.com/repositories/new
- Enter a Project Name and Description; click "Create Repository"
- On the project page ignore the suggested setup instructions... instead click on the "Admin" button
- Check the "GitHub Pages" checkbox... You'll get a popup.
- Click the "Automatic GitHub page Generator" button.
- Choose a funky colour... or go safe with just white... then click "Create Page" button
#!/bin/sh | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
from http://tips.naivist.net/2006/02/02/word_to_markdown_converter/ Word to Markdown converter
Some smart people who didn’t want to teach users how to code in HTML invented Textile markup language
Someone more lazy invented MarkDown syntax which is much easier to learn. MarkDown is really nice for small content management systems, blogging engines etc.
For instance, to mark text as bold, you write the “bold text” like “bold text”. Other rules can be found in the syntax page.
However, when you have a MS Word document with several pages of bolds, italics and lists, you don’t really want to re-code all the markup.
echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' |
#!/usr/bin/perl | |
# Usage: gist_backup.pl <user> | |
# Clone all the gists of a GitHub user | |
use strict; | |
use warnings; | |
use Git::Raw; | |
use Pithub::Gists; |
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
$| = 1; | |
if ($ENV{'QUERY_STRING'} ne '') { | |
print "Content-type:text/plain\n\n"; |
package Math::Parser; | |
use strict; | |
use warnings; | |
use Method::Signatures::Simple; | |
use Marpa::R2 2.026; | |
use MarpaX::Lex::Easy; | |
my $grammar = Marpa::R2::Grammar->new({ | |
actions => 'Math::Parser::Actions', | |
start => 'Expression', |
#!/usr/bin/perl -w | |
# | |
# Uses ipmitool(1) to display a string of text on | |
# the front chassis display of Dell PowerEdge | |
# servers. | |
# | |
# Jesper Nyerup <[email protected]> | |
my $ipmitool = '/usr/bin/ipmitool'; |
This is a guide to implementing Getting Things Done (GTD) using [Simpletask][] by [Mark Janssen][].
Simpletask uses the [todo.txt][] syntax, but has sufficient differences and quirks of its own to be worth describing in detail---at least, that's the story I'm going with. I actually began this guide as an exploration of my own trusted system. Personal workflows are by definition eccentric; I have included only what seems to me to be broadly useful.
This implementation of GTD covers the "standard" classifications: next actions by context, projects, somedays, agendas by person and meeting, etc. In a departure from strict GTD, each entry in these lists is also tagged with an area of focus, interest or responsibility. I find that the ability to slice the system by this extra dimension is worth the additional complexity at the processing and organizing stages. Limitations, issues and workarounds are discussed at the end.
Before we begin, some words of wisdom