Skip to content

Instantly share code, notes, and snippets.

View vogon101's full-sized avatar

Freddie Poser vogon101

View GitHub Profile
@Jbithell
Jbithell / iframe.html
Created September 11, 2016 19:24
Full page iframe
<!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
<meta content='width=device-width, initial-scale=1.0' name='viewport'>
<title></title>
<style>
html {
overflow: auto;
}
@cosimo
cosimo / parse-options.sh
Created September 21, 2012 09:31
Example of how to parse options with bash/getopt
#!/bin/bash
#
# Example of how to parse short/long options with 'getopt'
#
OPTS=`getopt -o vhns: --long verbose,dry-run,help,stack-size: -n 'parse-options' -- "$@"`
if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi
echo "$OPTS"