Skip to content

Instantly share code, notes, and snippets.

Roger Pack rdp

Block or report user

Report or block rdp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:789e5c4cb6fda1841e86e722a2d152d4
How to get the build version by having maven create a file with the "build.timestamp" etc. in it:
You can set it yourself by filtering a "resource" properties file that declares it, then read it as a resource, a la:
String retrieveVersionFromResource() throws IOException {
try (InputStream br = getClass().getResourceAsStream("/auto-version.txt")) { // maven pom.xml specifies to setup auto-version.txt with some values for us
Properties props = new Properties();
props.load(br);
return "build_version=" + props.get("project_version") + " " + props.get("build_date");
}
@rdp
rdp / gist:b3b63890f2d85e91999ac7a995b4443b
Created Feb 14, 2019
poor man's profiler of hung crystal app
View gist:b3b63890f2d85e91999ac7a995b4443b
26 ??,??,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
12 ??,__GI___dl_iterate_phdr,_Unwind_Find_FDE,??,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
10 ??,??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
10 __kernel_vsyscall,recv,unbuffered_read,fill_buffer,read,->,BIO_read,??,??,??,SSL_shutdown,unbuffered_close,close,process,process,handle_client,->,run,->,??
7 ??,??,??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
5 includes?,->,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
5 ??,__GI___dl_iterate_phdr,_Unwind_Find_FDE,??,??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
4 ??,_Un
View libdc.freaky.diff
diff --git a/cross_compile_ffmpeg.sh b/cross_compile_ffmpeg.sh
index dda8ccd..29736f1 100755
--- a/cross_compile_ffmpeg.sh
+++ b/cross_compile_ffmpeg.sh
@@ -380,11 +380,18 @@ do_configure() {
if [ -f bootstrap ]; then
./bootstrap # some need this to create ./configure :|
fi
- if [[ ! -f $configure_name && -f bootstrap.sh ]]; then # fftw wants to only run this if no configure :|
- ./bootstrap.sh
@rdp
rdp / test.c
Created Jan 30, 2019
test if libvmaf works ffmpeg from config.log
View test.c
#include <libvmaf.h>
#include <stdint.h>
long check_compute_vmaf(void) { return (long) compute_vmaf; }
int main(void) { int ret = 0;
ret |= ((intptr_t)check_compute_vmaf) & 0xFFFF;
return ret; }
@rdp
rdp / gist:0c1f1dd8cc8e416a9f73cd21c9d32730
Created Dec 20, 2018
output of ffmpeg fdk aac enabled
View gist:0c1f1dd8cc8e416a9f73cd21c9d32730
ffmpeg.fdk32.exe -codecs | grep aac
ffmpeg version N-92742-ga07470b-ffmpeg-windows-build-helpers Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 8.2.0 (GCC)
configuration: --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=ffmpeg-windows-build-helpers --enable-version3 --disable-debug --disable-w32threads --arch=x86 --target-os=mingw32 --cross-prefix=/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --enable-libcaca --enable-gray --enable-libtesseract --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libbs2b --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-lib
View gist:0286d91624930bd11d0169d6a6337c33
$ cat ~/example.html
not it
<title>
yess 1
2
</title>
$ grep -P '(?s)<title>.*</title>' ~/example.html
$
View gist:43bbfd8a4d057b03b62d240ef21355fb
ffmpeg -re -f lavfi -i testsrc -c:v libx264 -x264opts nal-hrd=cbr -b:v 2200k -minrate 2200k -maxrate 2200k -bufsize 220k -muxrate 2600k -pcr_period 30 -c:a mp2 -b:a 192k -ac 2 -f mpegts "udp://239.1.1.1:10000?pkt_size=1316"
ffmpeg version N-89340-g5a366f9-Reino Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7.1.0 (GCC)
configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/rogerdpack/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=Reino --enable-gray --enable-version3 --disable-debug --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-w32threads --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libmysof
View fuse.md

NTFS-3G

NTFS-3G is an open source cross-platform implementation of the Microsoft Windows NTFS file system with read-write support.

Please note that NTFS-3G and FUSE for macOS are independent projects. Should you run into NTFS-3G related issues please post the issues on the NTFS-3G support forum at http://tuxera.com/forum/viewforum.php?f=7.

Installation

The following instructions assume that you know how to use Terminal. Doing this the wrong way could damage your operating system.

View profiles
Local file fastest…hmm…
Can read it “cat” at 3GB/s
if=/dev/zero 5.5 GB/s to 7 GB/s
Theoretically I am “dual” 10Gbe
1 GB/s
@rdp
rdp / # mysql - 2018-07-12_00-02-22.txt
Created Jul 12, 2018
mysql on macOS 10.13.6 - Homebrew build logs
View # mysql - 2018-07-12_00-02-22.txt
Homebrew build logs for mysql on macOS 10.13.6
Build date: 2018-07-12 00:02:22
You can’t perform that action at this time.