Skip to content

Instantly share code, notes, and snippets.

@Moriarty16
Moriarty16 / gist:da531997e0a1c22ab832db78800f0a4b
Created Sep 7, 2018 — forked from leoapost/gist:4318441
Delete all remote branches, except master
View gist:da531997e0a1c22ab832db78800f0a4b
# Replace REMOTE_NAME with your remote name (e.g. origin)
git branch -r | grep REMOTE_NAME/ | grep -v 'master$' | grep -v HEAD| cut -d/ -f2 | while read line; do git push REMOTE_NAME :$line; done;
@Moriarty16
Moriarty16 / video conversion
Created Aug 30, 2018 — forked from tranthamp/video conversion
Some video / image conversion commands
View video conversion
// List available formats for ffmpeg
ffmpeg -pix_fmts
// Convert a 720x480 nv12 (yuv 420 semi-planar) image to png
ffmpeg -s 720x480 -pix_fmt nv12 -i captdump-nv12.yuv -f image2 -pix_fmt rgb24 captdump.png
// Convert a 640x480 uyvy422 image to png
ffmpeg -s 640x480 -pix_fmt uyvy422 -i frame-000003.yuv -f image2 -pix_fmt rgb24 captdump.png
// Display a 640x480 grayscale raw rgb file
View ConditionalIgnoreRule.java
package com.[my package].rule;
import org.junit.Assume;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runners.model.Statement;
import timber.log.Timber;
import java.lang.annotation.*;
import java.lang.reflect.Modifier;
You can’t perform that action at this time.