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
| update-deps: | |
| [echo] Composer update | |
| [exec] Warning: This development build of composer is over 30 days old. It is recommended to update it by running "/usr/local/bin/composer self-update" to get the latest version. | |
| [exec] Loading composer repositories with package information | |
| [exec] Updating dependencies (including require-dev) | |
| [exec] e) | |
| [exec] { | |
| [exec] $this->addReason($rule->getId(), array( | |
| [exec] 'rule' => $rule, | |
| [exec] 'job' => $rule->getJob(), |
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
| @media (min-width: 1100px) { | |
| .site-header { | |
| min-width: 230px; | |
| min-width: 23rem; | |
| width: 30%; | |
| padding-left: 5%; | |
| padding-top: 3rem; | |
| position: fixed; | |
| float: left; | |
| max-width: 520px; /* <--- this should do the job :) */ |
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 | |
| $flockHandle = fopen('/tmp/blah.lock', 'w'); | |
| if (!flock($flockHandle, LOCK_EX | LOCK_NB)) | |
| { | |
| echo "Cannot get lock."; | |
| die(); | |
| } | |
| // do 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
| { | |
| "EnableDeprecatedWebPlatformFeatures": ["ShowModalDialog_EffectiveUntil20150430"] | |
| } |
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
| SELECT | |
| /* user */ users.id AS user_id, first_name, last_name, email, company, twitter, airport, url, transportation, hotel, info, bio, | |
| /* talk */ talks.id AS talk_id, title, description, other, type, level, category, slides, desired, sponsor | |
| FROM `talks`, `users` | |
| WHERE talks.user_id = users.id |
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
| vendor |
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
| function foo($value) | |
| { | |
| return ['hello', $value]; | |
| } |
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
| #include <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| int v; | |
| int *ptr = &v; | |
| *ptr = 15; |
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 | |
| if [ "$(id -u)" != "0" ]; then | |
| echo "You must be root..." | |
| exit 1 | |
| fi | |
| sed -i -e "s/search homerouter\.cpe/nameserver 192.168.2.2\nsearch homerouter.cpe/" /etc/resolv.conf | |
| openvpn --config #path-to-ovpn-config# | |
| sed -i '/nameserver 192.168.2.2/d' /etc/resolv.conf |
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 | |
| /** | |
| * Zend Framework (http://framework.zend.com/) | |
| * | |
| * @link http://github.com/zendframework/zf2 for the canonical source repository | |
| * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) | |
| * @license http://framework.zend.com/license/new-bsd New BSD License | |
| */ | |
| namespace ZendTest\EventManager; |