This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Parses DHCP options from openvpn to update resolv.conf | |
# To use set as 'up' and 'down' script in your openvpn *.conf: | |
# up /etc/openvpn/update-resolv-conf | |
# down /etc/openvpn/update-resolv-conf | |
# | |
# Used snippets of resolvconf script by Thomas Hood <[email protected]> | |
# and Chris Hanson | |
# Licensed under the GNU GPL. See /usr/share/common-licenses/GPL. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class BusinessLogic | |
{ | |
private $repo; | |
public function __construct(User_Repository $repo) | |
{ | |
$this->repo = $repol |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Log time | |
In order to keep my time | |
As a developer | |
I need to be able to add log entries | |
Scenario: Add a single time entry | |
Given I am a developer | |
When I enter the following into my time log: | |
""" | |
08:00 - 09:00 - Doing something |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| key | value | | |
| start | 08:00 | | |
| end | 09:00 | | |
| description | Doing something | | |
| date | 2012-10-29 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature List entries | |
In order to see what time I have logged | |
I want to get a list of entries for a particular day | |
Scenario: List all entries for a single day | |
Given The date is 2012-11-01 | |
And The log contains the following entries: | |
| start_time | stop_time | description | date | | |
| 08:00 | 09:00 | A | 2012-10-31 | | |
| 08:00 | 09:00 | B | 2012-11-01 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Trait MethodDelegator | |
{ | |
private $roles = array(); | |
private $method_map = array(); | |
public function delegate($class) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A | |
| | |
c---d---e | |
/ \ | |
a---b-------f | |
| | |
B | |
lowercase: Commits | |
uppercase: Refs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void test_dll_dll_insert_before_insterts_item_before() { | |
t_dll *dll = dll_init(); | |
dll_append(dll, "test1"); | |
dll_append(dll, "test3"); | |
t_dll_element *element = DLL_TAIL(dll); | |
dll_insert_before(dll, element, "test2"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- {{{ Rules | |
awful.rules.rules = { | |
-- All clients will match this rule. | |
{ rule = { }, | |
properties = { border_width = beautiful.border_width, | |
border_color = beautiful.border_normal, | |
focus = true, | |
keys = clientkeys, | |
buttons = clientbuttons } }, | |
{ rule = { class = "MPlayer" }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
crc_itu_t 1364 1 firewire_core | |
firewire_core 53270 1 firewire_ohci | |
firewire_ohci 32102 0 | |
jmb38x_ms 11234 0 | |
memstick 7529 1 jmb38x_ms | |
mmc_block 19427 0 | |
mmc_core 90305 3 mmc_block,sdhci,sdhci_pci | |
sdhci 28207 1 sdhci_pci | |
sdhci_pci 10997 0 |