Skip to content

Instantly share code, notes, and snippets.

View takeit's full-sized avatar
🏠
Working from home

Rafał Muszyński takeit

🏠
Working from home
View GitHub Profile
FROM nginx:latest
COPY default.conf /etc/nginx/conf.d/
@takeit
takeit / Dockerfile
Last active February 12, 2018 07:33
FROM php:7.2-fpm
RUN apt-get update
RUN apt-get install -y zlib1g-dev libpq-dev git libicu-dev libxml2-dev \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl \
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
&& docker-php-ext-install pdo pdo_pgsql pgsql \
&& docker-php-ext-install zip xml
version: '2'
services:
postgres:
image: postgres
ports:
- '5433:5432'
php:
build: php-fpm
ports:
- '9002:9000'
# behat.yml.dist
default:
suites:
default:
contexts:
- FeatureContext:
kernel: '@kernel'
extensions:
Behat\Symfony2Extension:
kernel:
# features/books.feature
Feature: Books feature
Scenario: Adding a new book
When I add "Content-Type" header equal to "application/json"
And I add "Accept" header equal to "application/json"
And I send a "POST" request to "/api/books/" with body:
"""
{
"title": "King",
"author": "T. M. Frazier",
# behat.yml
default:
suites:
default:
contexts:
- FeatureContext:
kernel: '@kernel'
- Behat\MinkExtension\Context\MinkContext
- behatch:context:json
- behatch:context:rest
@takeit
takeit / behat.yml
Last active January 16, 2018 09:40
# behat.yml
default:
suites:
default:
contexts:
- FeatureContext:
kernel: '@kernel'
- Behat\MinkExtension\Context\MinkContext
extensions:
Behat\Symfony2Extension:
@takeit
takeit / INSTALL.md
Last active March 23, 2024 19:03
Write to NTFS on macOS Sierra (osxfuse + ntfs-3g)
  1. Install osxfuse:
brew cask install osxfuse
  1. Reboot your Mac.

  2. Install ntfs-3g:

@takeit
takeit / turan.yml
Last active September 10, 2015 07:30
turan.yml
community: "Community"
RSS: "RSS"
premium: "Premium"
more: "More"
search: "search"
login: "Login"
logout: "Logout"
profile: "Profile"
register: "Register"
welcome: "Welcome"

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: