Skip to content

Instantly share code, notes, and snippets.

View fridolin-koch's full-sized avatar

Frido Koch fridolin-koch

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'><meta name="robots" content="noindex">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel='stylesheet prefetch' href='http://rawgit.com/angular/bower-material/master/angular-material.css'>
<style>
.site-sidenav {
background-color: red;
}
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
golang-go-linux-amd64 golang-src
Recommended packages:
golang-go.tools
The following NEW packages will be installed:
golang-go golang-go-linux-amd64 golang-src
debconf: unable to initialize frontend: Dialog
@fridolin-koch
fridolin-koch / Vagrantfile
Created April 2, 2015 20:35
Webtech - Tutorial
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "phusion/ubuntu-14.04-amd64"
#!/bin/bash
apt-get update
apt-get install -y \
php5 \
php5-fpm \
php5-cli \
php5-curl \
php5-gd \
php5-memcached \
@fridolin-koch
fridolin-koch / 0_reuse_code.js
Created November 2, 2013 21:39
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@fridolin-koch
fridolin-koch / convert-table.php
Last active December 26, 2015 10:09
CSV to Redmine table
#!/usr/bin/env php
<?php
if ($argc < 2) {
printf('Usage: %s <filename>' . PHP_EOL, $argv[0]);
exit(1);
}
if (!file_exists($argv[1])) {
printf('File %s was not found' . PHP_EOL, $argv[1]);
@fridolin-koch
fridolin-koch / app.php
Created October 22, 2013 13:35
PHP AWS SDK - S3 StreamWrapper with ACL and ContentType
<?php
//autoloader
require_once __DIR__ . '/vendor/autoload.php';
use Aws\S3\S3Client;
use Aws\S3\Enum\CannedAcl;
//init client
$s3Client = S3Client::factory(array(
'key' => '<key>',
'secret' => '<secret>',
<tr>
<td>Umsatzsteuer (67)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;19,00&nbsp;&nbsp;&nbsp;%&nbsp;&nbsp;&nbsp;aus&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ advice.sumNetValue|number_format(2, ',', '.') }}</td>
<td style="text-align: right">{{ advice.sumSalesTax|number_format(2, ',', '.') }}</td>
</tr>
<?php
//old
$this->breadcrumbs[] = array(
'name' => $translator->trans('Home'),
'path' => $this->generateUrl('_index', array()),
);
//new
$this->breadcrumbs[] = [
'name' => $translator->trans('Home'),
'path' => $this->generateUrl('_index', []),
/*
* Author: Frido Koch
* Email: frido@vresh.net
* License: CC BY-NC-SA 3.0 DE
* http://creativecommons.org/licenses/by-nc-sa/3.0/de/
*/
package sheet10;
import static org.junit.Assert.*;