Skip to content

Instantly share code, notes, and snippets.

View mpolr's full-sized avatar
🚴‍♂️
Hi!

Pavel Monahov mpolr

🚴‍♂️
Hi!
View GitHub Profile
@cmillr
cmillr / parser.php
Created May 1, 2012 01:56
Use Composer-Installed twig with FuelPHP
<?php
// Assuming composer's configured 'vendor' directory is APPPATH/vendor/, this configuration
// file will tell fuel's parser library where to find the twig resource files.
// Place this file inside your APPPATH/config directory.
return array(
'View_Twig' => array(
'include' => APPPATH.'vendor'.DS.'twig'.DS.'twig'.DS.'lib'.DS.'Twig'.DS.'Autoloader.php',
@liamcurry
liamcurry / gist:2597326
Created May 4, 2012 19:56
Vanilla JS vs jQuery

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@barryvdh
barryvdh / _ide_helper.php
Last active October 24, 2024 17:13
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using https://github.com/barryvdh/laravel-ide-helper
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.5.13 on 2017-09-28.
*
* @author Barry vd. Heuvel <[email protected]>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
exit("This file should not be included, only analyzed by your IDE");
@Mikulas
Mikulas / Dockerfile
Last active March 11, 2022 12:34
Docker image PHP 7.1 alpine with extensions
FROM php:7.1-fpm-alpine
RUN apk add --update \
autoconf \
g++ \
libtool \
make \
&& docker-php-ext-install mbstring \
&& docker-php-ext-install mysqli \
@noah
noah / vcr.sh
Last active January 25, 2020 06:52
VCR transcoding - usbtv007
# ツ sudo lsusb|grep -i easy
# Bus 001 Device 007: ID 1b71:3002 Fushicai USBTV007 Video Grabber [EasyCAP]
# usbtv module on archlinux
# fushicai usbtv007
# ultimately, mencoder works. also tried mplayer and ffmpeg but on-the-fly transcoding doesn't work. mplayer can't save tv "streams", so mencoder is necessary.
# audio transcode o-t-f is fast enough but just copy video and transcode it later
# tradeoff: 1GB/1minute of video, roughly