Skip to content

Instantly share code, notes, and snippets.

View georgedrummond's full-sized avatar
:fishsticks:

George Drummond georgedrummond

:fishsticks:
  • GitHub Staff
  • Philadelphia
View GitHub Profile

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@georgedrummond
georgedrummond / gist:cc6b401da1428aa1c701
Created March 9, 2016 04:44 — forked from panuta/gist:1897940
Generate a document thumbnail (doc, xls, ppt and openoffice formats) in Ubuntu Server 10.04
  1. Install OpenOffice headless package

    $ sudo apt-get install openoffice.org-headless openoffice.org-java-common openoffice.org-writer openoffice.org-calc openoffice.org-impress
    
  2. Install UNO python library

$ sudo apt-get install python-uno unoconv

@georgedrummond
georgedrummond / sshd.go
Last active August 29, 2015 14:26 — forked from jpillora/sshd.go
Go 1.3 SSH server complete example
// A small SSH daemon providing bash sessions
//
// Server:
// cd my/new/dir/
// #generate server keypair
// ssh-keygen -t rsa
// go get -v .
// go run sshd.go
//
// Client:
@georgedrummond
georgedrummond / sshd.go
Last active February 26, 2020 05:55 — forked from nictuku/sshd.go
Go SSH server complete example
package main
import (
"fmt"
"io"
"io/ioutil"
"log"
"code.google.com/p/go.crypto/ssh"
"code.google.com/p/go.crypto/ssh/terminal"