Skip to content

Instantly share code, notes, and snippets.

Avatar

Tobias Preuss johnjohndoe

View GitHub Profile
@johnjohndoe
johnjohndoe / vimeo.com.ffpreset
Created Dec 15, 2011
FFmpeg settings for vimeo.com
View vimeo.com.ffpreset
// FFmpeg settings for vimeo.com
// =============================
// Trying to find the best settings for encoding videos as described here: http://vimeo.com/help/compression
//
// Input file: MTS
// Video: H264, 1920x1080, 50fps
// Audio: A52 Audio (aka AC3), Stereo, 48kHz, 256kbps
ffmpeg -i input.mts -vcodec libx264 -acodec aac -strict experimental -vpre hq -s hd720 -b 5000k -ab 320k -r 25 -g 25 -threads 0 output.mp4
@johnjohndoe
johnjohndoe / FindMatchesAction.groovy
Created Jul 6, 2020 — forked from jbarr21/FindMatchesAction.groovy
IntelliJ plugin to perform multiple structural search and replace actions. Can be installed with https://github.com/dkandalov/live-plugin
View FindMatchesAction.groovy
import com.intellij.openapi.actionSystem.*
import com.intellij.openapi.application.*
import com.intellij.openapi.command.*
import com.intellij.openapi.diagnostic.*
import com.intellij.openapi.fileTypes.*
import com.intellij.openapi.progress.*
import com.intellij.openapi.project.*
import com.intellij.openapi.ui.*
import com.intellij.openapi.vfs.*
import com.intellij.psi.*
@johnjohndoe
johnjohndoe / apt-packages
Last active Jun 20, 2020
Ubuntu APT packages
View apt-packages
alacarte
brave-browser
caffeine
charles-proxy
chromium-browser
clamav
clamtk
compiz-plugins-extra
compizconfig-settings-manager
darktable
View rezept-schichtsalat.md

Schichtsalat

Zutaten

  • 1 Glas, 350 ml, Selleriesalat geraspelt
  • 1 Dose Mais
  • 4 Scheiben gekochter Schicken, würfeln
  • 4 hartgekochte Eier
  • 2 mittlere Äpfel würfeln, z.B. Boskopp
  • 1 Glas MiracleWhip, 500 ml
View how-to-irssi.md

Installation location

$ /snap/irssi/current/bin/irssi

Configuration file

$ /home/USERNAME/snap/irssi/common/.irssi/config
@johnjohndoe
johnjohndoe / download-url-to-file.rb
Last active Mar 16, 2020
Ruby script to download a number of files from individual URLs via HTTP/HTTPS/FTP specified in an external file.
View download-url-to-file.rb
#!/usr/bin/env ruby
#
# Ruby script to download a number of files
# from individual URLs via HTTP/HTTPS/FTP
# specified in an external file.
#
# Author: Tobias Preuss
# Revision: 2013-04-18 16:26 +0100 UTC
# License: Creative Commons Attribution-ShareAlike 3.0 Unported
@johnjohndoe
johnjohndoe / README.md
Last active Mar 7, 2020 — forked from Wikinaut/README.md
Vereinfachte Verkehrsordnungswidrigkeitenanzeige bei Halt- und Parkverstößen per E-Mail an die Bußgeldstelle. https://twitter.com/tbsprs/status/1236287577981964289
View README.md
View registrations_controller.rb
class Api::RegistrationsController < Api::BaseController
respond_to :json
def create
user = User.new(params[:user])
if user.save
render json: user.as_json(auth_token: user.authentication_token, email: user.email), status: :created
return
else
@johnjohndoe
johnjohndoe / pre-commit.sh
Created Nov 6, 2012
Git pre-commit hook to add a new line at the end of a file and remove trailing whitespaces
View pre-commit.sh
#!/bin/sh
#
# An example hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
#
# Usage:
# Remove the .sh file extension when you put the script in your hooks folder!
#
View Umweltzone-Neu-Ulm.dxf
0
SECTION
2
HEADER
9
$ACADVER
1
AC1015
9
$DWGCODEPAGE
You can’t perform that action at this time.