Skip to content

Instantly share code, notes, and snippets.

//povray sprocket.pov -w960 -h540 +a0.9
//povray sprocket.pov -w2732 -h1536 +a0.9
camera {
right 16/9*x
location <1,1,-1>*150
look_at <-4,23,0>
angle 10
//location <1,1,-1>*650
//look_at <0,0,0>
@kogcyc
kogcyc / sqlite_cheatsheet
Created October 16, 2013 16:42
sqlite cheatsheet (OK, it's just the output from .help, but I think it has value...)
sqlite> .help
.backup ?DB? FILE Backup DB (default "main") to FILE
.bail ON|OFF Stop after hitting an error. Default OFF
.databases List names and files of attached databases
.dump ?TABLE? ... Dump the database in an SQL text format
If TABLE specified, only dump tables matching
LIKE pattern TABLE.
.echo ON|OFF Turn command echo on or off
.exit Exit this program
@kogcyc
kogcyc / gist:6910945
Created October 10, 2013 00:22
How the CSS display: none/block attribute works
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type='text/javascript' src='//code.jquery.com/jquery-1.9.1.js'></script>
<style type='text/css'>
body {
margin: auto;
@kogcyc
kogcyc / curlPOSTdigest.sh
Created October 4, 2013 19:10
how to POST to a DIGEST authenticated url
curl --digest -u admin:pass http://localhost/~matt/exampleDIGEST.php --data "stff=hello"