Skip to content

Instantly share code, notes, and snippets.

View kadrim's full-sized avatar

David kadrim

  • Balingen (Germany)
View GitHub Profile
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@kadrim
kadrim / vzdump-hook-script.pl.sh
Created March 13, 2021 07:22
Proxmox modified vzdump-hook script, disable l2arc before backup and reenable it afterwards so not to trash the cache
#!/usr/bin/perl -w
# modified hook script, disable l2arc before backup and reenable it afterwards so not to trash the cache
use strict;
print "HOOK: " . join (' ', @ARGV) . "\n";
my $phase = shift;
@kadrim
kadrim / install_amdgpu__vce_mesa_opencl.sh
Created December 1, 2019 10:18
Install amdgpu-pro packages on Debian (openCL, mesa, VCE) only.
#!/bin/bash
# -------------------------------------------------------------------------------------------------------------------------#
# 1st: Download the amdgpu-drivers from here: https://www.amd.com/de/support/kb/release-notes/rn-amdgpu-unified-navi-linux #
# -------------------------------------------------------------------------------------------------------------------------#
#=============================#
### CONFIG ###
# ADJUST VERSIONS ACCORDINGLY!
PACKAGE="amdgpu-pro"