Skip to content

Instantly share code, notes, and snippets.

@jpgreth
jpgreth / index.html
Created June 16, 2023 11:52
Static Gradient
<script async src="https://ga.jspm.io/npm:es-module-shims@1.6.3/dist/es-module-shims.js" crossorigin="anonymous"></script>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.153.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.153.0/examples/jsm/"
}
}
</script>
<canvas id="grd" width="512" height="10"></canvas>
@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 / keybase.md
Created November 5, 2018 11:03
keybase.md

Keybase proof

I hereby claim:

  • I am jgreth on github.
  • I am jafix (https://keybase.io/jafix) on keybase.
  • I have a public key whose fingerprint is ABDE FB95 A9EF 341C 52A5 022F FA75 65F4 5287 176A

To claim this, I am signing this object:

@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 / Testfile.enex
Created June 4, 2018 07:27
An Example of an exported Evernote Note
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export2.dtd">
<en-export export-date="20180529T132629Z" application="Evernote/Windows" version="6.x">
<note><title>The Button</title><content><![CDATA[<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd"><en-note>
<div>
<div style="font-size: 16px; display: inline-block; min-width: 100%;position: relative;"><div><div style="color:rgb(0, 0, 0);background-color:rgb(238, 238, 238);font-family:&quot;Lucida Grande&quot;, Verdana, Geneva, Lucida, sans-serif;"><div><div><div style="background-color:rgb(221, 221, 221);"><div style="padding:2px;"><h2 style="padding:0px;line-height:100%;font-family:&quot;Lucida Grande&quot;, Verdana, Geneva, Lucida, sans-serif;font-size:14px;font-weight:bold;margin:0px 0px 5px;">2011.05.09</h2></div>
<div style="margin:3px;padding:3px;background-color:rgb(221, 221, 221);border-color:rgb(170, 170, 170);border-width:1px;border-st