Skip to content

Instantly share code, notes, and snippets.

@jpgreth
jpgreth / gist:82e46ea8c9d6d2e6ffb239aec53e4efb
Created September 1, 2022 10:03 — forked from tayvano/gist:6e2d456a9897f55025e25035478a3a50
complete list of ffmpeg flags / commands
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)
@jpgreth
jpgreth / find_apartment_on_facebook.py
Created May 5, 2021 09:01 — forked from barakplasma/find_apartment_on_facebook.py
Scrape Facebook Groups for Apartments using Python
import os
import re
import sqlite3
import argparse
import itertools
import seaborn as sns
import matplotlib.pyplot as plt
import pandas as pd
@jpgreth
jpgreth / README.md
Created April 10, 2019 07:25 — forked from t3easy/README.md
Non composer extension insight composer mode TYPO3
  1. Copy your extension to [web/]typo3conf/ext/ of your composer mode TYPO3 (or kickstart one with extension_builder).
  2. Add autoload entry to your root composer.json (that one which requires "typo3/cms")
"autoload": {
	"psr-4": {
		"T3easy\\MyExt\\": "web/typo3conf/ext/my_ext/Classes/"
	}
}
  1. Run composer dump-autoload -a to update the autoloader.
@jpgreth
jpgreth / git-deployment.md
Created November 9, 2018 09:00 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your lokal GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like my Deepl.io to act upon a Web-Hook that's triggered that service.

@jpgreth
jpgreth / MyController.php
Created July 30, 2018 15:06 — forked from iamandrewluca/MyController.php
Typo3 / Extbase backend / frontend user manual login
<?php
class MyController extends ActionController
{
// ...
/**
* @var \TYPO3\CMS\Extbase\Mvc\View\JsonView
*/
protected $view;
@jpgreth
jpgreth / krpano-to-marzipano.config
Created June 11, 2018 13:13 — forked from martinvirtel/krpano-to-marzipano.config
Generate tile files for marzipano.net panorama viewer with krpanotools from krpano.com
# Generate tile files that can be used with https://www.marzipano.net
# This is a config file for https://krpano.com/tools/kmakemultires/config/ -
flash=false
html=false
xml=false
panotype=autodetect
tilesize=512
@jpgreth
jpgreth / two-part-mold-generator.scad
Created June 11, 2018 08:10
Two-part mold generating script for OpenSCAD
/*************************************************
Parametric two-part mold generator
Author: Jason Webb
Website: http://cs.unk.edu/~webb
Last update: 10/1/2012
A parametric two-part mold generator that constructs two-
part molds with registration marks based on STL files.
USAGE:
@jpgreth
jpgreth / html-comment-via-layout-xml-in-magento2.xml
Created February 6, 2018 12:58 — forked from Quinten/html-comment-via-layout-xml-in-magento2.xml
Sometimes you just need an empty container in Magento 2. But when a container is empty (contains no blocks) it is not rendered. This way you can add a html comment inside the container.
<block class="Magento\Framework\View\Element\Text" name="comment.placeholder">
<arguments>
<argument name="text" xsi:type="string"><![CDATA[<!-- -->]]></argument>
</arguments>
</block>
@jpgreth
jpgreth / darktable-workflow.md
Created July 3, 2017 07:58 — forked from eimajtrebor/darktable-workflow.md
My Darktable Workflow

My Darktable Workflow

Basic workflow

  • Copy a film roll (a directory of RAW images) into a directory on the machine running Darktable.
  • Import the film roll into Darktable.
  • Review the images using lighttable mode and remove any images that are beyond repair.
  • Take a snapshot of the image so we can do a before and after comparison.
  • Adjust the white balance.
  • Exposure compensation and recovery.
@jpgreth
jpgreth / ModelController.php
Created February 21, 2017 12:55 — forked from oliverthiele/ModelController.php
Debugging errors like "An error occurred while trying to call Vendor\ExtKey\Controller\ModelController->showAction() " in extbase extensions
/**
* A special action which is called if the originally intended action could
* not be called, for example if the arguments were not valid.
*
* The default implementation sets a flash message, request errors and forwards back
* to the originating action. This is suitable for most actions dealing with form input.
*
* We clear the page cache by default on an error as well, as we need to make sure the
* data is re-evaluated when the user changes something.
*