Skip to content

Instantly share code, notes, and snippets.

@walterrenner
walterrenner / rest.php
Created June 20, 2013 18:58
php oxid rest
<?php
require_once dirname(__FILE__) . "/bootstrap.php";
//Shop starten
$url_requestPRODUCT = 'http://student.mi.hs-offenburg.de:8080/sqlrest/PRODUCT';
$responsePRODUCT = file_get_contents($url_requestPRODUCT);
$xmldatPRODUCT = simplexml_load_string($responsePRODUCT);
@walterrenner
walterrenner / hack.sh
Created October 25, 2013 10:52 — forked from erikh/hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@walterrenner
walterrenner / hack.sh
Created October 25, 2013 10:52 — forked from DAddYE/hack.sh
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions:

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>

Typography

Headings

Headings from h1 through h6 are constructed with a # for each level:

# h1 Heading
## h2 Heading
### h3 Heading
@walterrenner
walterrenner / sublime2_shortcuts_mac.md
Last active August 29, 2015 14:01 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts (Mac OS X)

h1. Sublime Text 2 - Useful Shortcuts (Mac OS X)

h2. General

| ⌘T | go to file | | ⌘⌃P | go to project | | ⌘R | go to methods | | ⌃G | go to line | | ⌘KB | toggle side bar | | ⌘⇧P | command prompt |

@walterrenner
walterrenner / keybase.md
Last active August 29, 2015 14:01
keybase

Keybase proof

I hereby claim:

  • I am walterrenner on github.
  • I am walterrenner (https://keybase.io/walterrenner) on keybase.
  • I have a public key whose fingerprint is 5D60 A491 A596 DFA6 1F80 FFDE BDFA 6854 DFC1 2741

To claim this, I am signing this object:

@walterrenner
walterrenner / wtf.py
Created May 16, 2014 22:06
Quick and dirty debugging with Python file operations
# wtf stands for write to file ;)
def wtf(text):
f = open("/tmp/out.log",'a')
f.write(text+'\n')
f.flush()
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/atom+xml \
application/javascript \
application/json \
application/rss+xml \
application/vnd.ms-fontobject \
application/x-font-ttf \
application/xhtml+xml \
application/xml \
font/opentype \
#!/usr/bin/env python
#!/usr/bin/env ruby
#!/usr/bin/env perl
#!/usr/bin/env bash
#!/usr/bin/env php
#!/usr/bin/env node
#!/usr/bin/env osascript