Skip to content

Instantly share code, notes, and snippets.

View bobdenotter's full-sized avatar
🛠️
"Design is how it works, not how it looks."

Bob den Otter bobdenotter

🛠️
"Design is how it works, not how it looks."
  • Two Kings
  • The Hague, Netherlands
View GitHub Profile
@bobdenotter
bobdenotter / gist:10924751
Last active August 29, 2015 13:59
Git log for changelog format
git log --abbrev-commit --reverse --date=short HEAD...23c04e0ac --pretty=format:' - %d %s - %ad, %an ([%h](http://github.com/bolt/bolt/commit/%h))' > gitlog.md
### Keybase proof
I hereby claim:
* I am bobdenotter on github.
* I am bopp (https://keybase.io/bopp) on keybase.
* I have a public key whose fingerprint is 8A7F 688A FF4A 6389 8B7E 2607 DC3B 4CD3 5D01 4678
To claim this, I am signing this object:
@bobdenotter
bobdenotter / gist:0b66d5ffbaa2eafd90c7
Created August 16, 2014 14:38
patch command line commands
https://gist.githubusercontent.com/bobdenotter/beef4d430dc025816964/raw/e1ef58ed3dee1a96de73dba6a09878590154370b/symfony-form-validator-2.5.3.patch
patch -p1 < symfony-form-validator-2.5.3.patch
cacheMaxAge: 30
itemAmount: 1
feeds:
derekrethans:
name: "Derick Rethans"
title: "Derick Rethans' blog'"
url: "http://derickrethans.nl/"
feed: "http://derickrethans.nl/feed-php.xml"
@bobdenotter
bobdenotter / gist:b256a60de8d3ff71e030
Last active August 29, 2015 14:13
Swiftmailer transport

Edit extensions/vendor/bolt/simpleforms/Extension.php, around line 740.

Replace:

$res = $this->app['mailer']->send($message);

With:

  • 21:08:37 silentworks: Bopp you remember what I was saying last night about the MODX community? this https://medium.com/@donaldatkinson/modx-recognizing-its-relevancy-bfeda208383f
  • 21:11:37 Bopp: "Quite simply, because MODX is the only CMS that allows anyone to make highly advanced dynamic websites with a minimal level of software development experience. "
  • 21:11:48 Bopp: silentworks: right. i see what you mean. 
  • Pinpickle [de9a6103@gateway/web/cgi-irc/kiwiirc.com/ip.222.154.97.3] entered the room. (21:11:54)
  • 21:12:18 silentworks: And this is why the Bolt community is great
  • 21:12:29 silentworks: I just hope the community will remain this way for years to come
  • 21:13:04 Bopp: Anybody that says anything with "Project X is the only [project group] that allows Y" you've instantyl made a fool of yourself
  • 21:14:13 rarila2: Bolt is the only project that allows #beer while coding
  • 21:14:14 [BoltIssueBall]: return $this->app['beer']->serve('everyone')->sendBillTo('rarila2');
  • 21:14:22 Bop
if you have a route like `/events/{year}/{month}/{day}`, use this in your template:
{% set date = app.request.get('year') ~ '-' ~ app.request.get('month') ~ '-' ~ app.request.get('day') %}
{% setcontent events = "events" where { 'date': date } %}
{% for event in events %}
..
{% endfor %}
Process: Marked 2 [2311]
Path: /Applications/Marked 2.app/Contents/MacOS/Marked 2
Identifier: com.brettterpstra.marked2
Version: 2.4.11 (895)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Marked 2 [2311]
User ID: 501
Date/Time: 2015-03-25 08:45:59.038 +0100
@bobdenotter
bobdenotter / gist:3fd04ddc51617da76ad1
Created April 1, 2015 10:00
Method POST in bolt routing?
in routing.yml, add a route with a method:
```
fietsnieuws:
path: /fietsnieuws
method: post
defaults:
_controller: 'Bolt\Controllers\Frontend::listing'
contenttypeslug: 'nieuws'
<?php
namespace Bolt\Extension\Bolt\RSSAggregator;
/**
* RSS Aggregator Extension for Bolt
*
* @author Sebastian Klier <sebastian@sebastianklier.com>
* @author Gawain Lynch <gawain.lynch@gmail.com>
*/