This file contains 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
FROM php:5.6-fpm-alpine | |
RUN apk update && apk add autoconf openssl-dev g++ make && \ | |
pecl install mongo && \ | |
docker-php-ext-enable mongo && \ | |
apk del --purge autoconf openssl-dev g++ make |
This file contains 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
1tv | |
1up.com | |
20min | |
220.ro | |
23video | |
24video | |
3qsdn | |
3sat | |
4tube | |
56.com |
This file contains 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 | |
set -e | |
# Create the virtual machine (VM) | |
docker-machine create -d virtualbox default | |
# VM must be stopped before USB configuration | |
docker-machine stop |
This file contains 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
# Disable any form of screen saver / screen blanking / power management | |
xset s off | |
xset s noblank | |
xset -dpms | |
# Allow quitting the X server with CTRL-ATL-Backspace | |
setxkbmap -option terminate:ctrl_alt_bksp | |
# Start Chromium in kiosk mode | |
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/'Local State' |
This file contains 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
version: '2' | |
services: | |
nginx: | |
image: nginx:alpine | |
ports: | |
- "8000:80" | |
volumes: | |
- ./nginx.conf:/etc/nginx/nginx.conf:ro | |
links: | |
- fpm |
This file contains 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
functions: | |
HelloWorld: | |
handler: dummy.handler # reference to a nonexistent handler | |
events: | |
- http: | |
path: /hello | |
method: get | |
integration: mock | |
request: | |
passThrough: NEVER |
This file contains 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 | |
require __DIR__ . '/vendor/autoload.php'; | |
$credentials_path = __DIR__ . '/credentials.json'; | |
putenv("GOOGLE_APPLICATION_CREDENTIALS=$credentials_path"); | |
$client = new Google_Client; | |
$client->useApplicationDefaultCredentials(); |
This file contains 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 | |
use GeoJson\Geometry\Point; | |
$city = new City; | |
$city->name = 'Budapest'; | |
$city->coordinates = new Coordinates(47.51, 19.03); | |
$city->save(); | |
$city = DB::createQueryBuilder('City') |
This file contains 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 | |
$city = DB::createQueryBuilder('Ni\City') | |
->field('coordinates')->geoNear(46.1643154116, 18.9664363861) | |
->spherical(true) | |
->distanceMultiplier(6378.137) // rad => km | |
->limit(1) | |
->getQuery() | |
->getSingleResult(); |
This file contains 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
alias codecept='() { vagrant ssh -c "cd /vagrant/www && vendor/bin/codecept $*" }' | |
alias composer='() { vagrant ssh -c "cd /vagrant/www && composer $*" }' |
NewerOlder