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
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
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
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
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
<?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 | |
$img = imagecreatetruecolor(640, 480); | |
$rot = imagerotate($img, -90, 0); | |
var_dump(imagesy($rot)); |
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
If the secondary address isn't specified or is specified as 0 (e.g. LOAD "FILE",8), the file is saved/loaded from the BASIC memory area (which, on the C64, starts by default at $0801). If the secondary address is specified as a non-zero value (e.g. LOAD "FILE",8,1), the program is loaded starting from the address specified by the file itself (the PRG header, which is the first two bytes of the file)—this form of command is more common when loading machine code programs. |
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
function! TigStatus() | |
silent !tig status | |
redraw! | |
endfunction | |
nnoremap <silent> gs :call TigStatus()<CR> |
NewerOlder