Skip to content

Instantly share code, notes, and snippets.

@steinsag
steinsag / build-kbruch.sh
Created February 28, 2014 18:31
Build KDE's KBruch application
git clone git://anongit.kde.org/kbruch
cd kbruch
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DCMAKE_BUILD_TYPE=debugfull
make -j4
sudo make install
@steinsag
steinsag / iamUserLimitS3Policy.json
Last active August 29, 2015 14:02
IAM User Policy to limit access to certain AWS S3 bucket
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt-GENERATED-ID",
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
Verifying that +sebstein is my blockchain ID. https://onename.com/sebstein
@steinsag
steinsag / VIM: create UTF8 file
Last active December 11, 2015 02:48
Short sequence of vim commands to create an UTF8 file.
:set nobomb
:set fileencoding=utf-8
:w index.html
@steinsag
steinsag / index.css
Last active December 11, 2015 02:58
A basic HTML5 page.
nav h1, footer h1 {
display: none;
}
@steinsag
steinsag / reset.html5.css
Created January 15, 2013 20:46
Reset for HTML5 elements
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
display: block;
}
@steinsag
steinsag / base.responsive.html
Created January 15, 2013 21:18
Base structure of a HTML5 page including responsive.gs classes to define rows and columns.
<body>
<div id="page_wrap" class="container row">
<header class="row">...</header>
<section id="content_wrap" class="row">
<section id="article_listing" class="col span_8">
<article class="row">...</article>
<article class="row">...</article>
</section>
@steinsag
steinsag / index.css
Created January 15, 2013 21:22
Define page width, show horizontal navigation, and hide some headlines.
.container {
max-width: 980px;
}
nav h1, footer h1 {
display: none;
}
nav ul li, footer ul li {
display: inline;
@steinsag
steinsag / base.html
Last active December 11, 2015 03:59
Basic site structure incorporating responsive.gs requirements
<body>
<div id="page_wrap" class="container">
<header>...</header>
<section id="content_wrap">
<section id="article_listing">
<article>...</article>
<article>...</article>
</section>
@steinsag
steinsag / media_query.css
Created January 16, 2013 22:41
Simple media query to add a background image only on a certain minimum page width.
@media ( min-width : 768px ) {
#page_wrap hgroup {
background: #fff url('images/skyline.jpg') no-repeat right bottom;
min-height: 118px;
}
}