Skip to content

Instantly share code, notes, and snippets.

@aurelijusb
aurelijusb / 50193349326_hooper-air-transaprent.png
Last active April 18, 2021 13:03
SpaceX theme for AWS workshop
50193349326_hooper-air-transaprent.png
@aurelijusb
aurelijusb / .gitignore
Last active June 5, 2019 17:38
VilniusPHP 0x4F: Coroutines in PHP: HTTP example
.idea
@aurelijusb
aurelijusb / .gitignore
Last active June 5, 2019 17:22
VilniusPHP 0x4F: Coroutines in PHP: Simple examples
.idea
@aurelijusb
aurelijusb / Dockerfile
Last active February 18, 2019 18:22
KaunasPHP v.52: Simple dockerized PHP application
FROM php:7.2-apache
COPY . /var/www/html/
@aurelijusb
aurelijusb / Makefile
Last active September 26, 2017 19:12
Go+JSON: examples for presentation
default:
golint *.go
go vet *.go
go fmt *.go
run:
go run naming.go
go run naming2.go
go run naming-unmarshal.go
go run naming-polymorphism.go
@aurelijusb
aurelijusb / Dockerfile
Last active January 23, 2020 18:20
Code snippets for Minsk PHP Night presentation: Headless browsers and friends
FROM ubuntu:latest
RUN apt-get update && \
apt-get install -y xvfb firefox python-pip xdotool x11vnc
RUN apt-get install -y wget
RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.16.1/geckodriver-v0.16.1-linux64.tar.gz
RUN tar zxvf geckodriver-v0.16.1-linux64.tar.gz && mv geckodriver /usr/bin/geckodriver
ENV DISPLAY=:1.0
@aurelijusb
aurelijusb / chrome-headless-via-web-sockets.php
Last active July 3, 2017 18:58
Code snippets for Minsk PHP Night presentation: Headless browsers and friends
<?php
// Adapted from: https://github.com/ratchetphp/Pawl
require __DIR__ . '/vendor/autoload.php';
$loop = React\EventLoop\Factory::create();
$connector = new Ratchet\Client\Connector($loop);
// For example: ws://127.0.0.1:9222/devtools/page/6c98af2a-8944-4742-91d3-154cbd873ce2
@aurelijusb
aurelijusb / README.md
Created October 1, 2016 12:10
Servent-Sent events (2/2)

Code examples for presentation server-sent events

Run via nginx

@aurelijusb
aurelijusb / README.md
Last active October 1, 2016 12:07
Servent-Sent events (1/2)

Code examples for presentation server-sent events

Run with

php -S 127.0.0.1:9001

Then open with browser: http://127.0.0.1:9001

@aurelijusb
aurelijusb / README.md
Created August 30, 2016 18:09
Notes for presentation: Docekr on VDS v3

Notes for presentation: Docker on VDS