Skip to content

Instantly share code, notes, and snippets.

View Josef-Friedrich's full-sized avatar
🕶️
i’m fine

Josef Friedrich Josef-Friedrich

🕶️
i’m fine
View GitHub Profile
@chrisvaughn
chrisvaughn / install_ffmpeg_libfdkaac.sh
Last active January 6, 2024 04:35 — forked from rafaelbiriba/install_ffmpeg_libfdkaac.sh
Install FFmpeg with libfdk_aac support (For Ubuntu)
# Criando um script .sh para executar todos os comandos:
#root@servidor:~# vi script.sh
#root@servidor:~# chmod +x script.sh
#root@servidor:~# ./script.sh
apt-get update
apt-get -y install autoconf automake build-essential git-core libass-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libvdpau-dev libvorbis-dev libx11-dev libxext-dev libxfixes-dev pkg-config texi2html zlib1g-dev libmp3lame-dev nasm gcc yasm && true
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git
@svet-b
svet-b / bigdashboard_output.pdf
Last active April 28, 2024 09:30
PDF export of Grafana dashboard using puppeteer
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@emersion
emersion / download-pipermail.sh
Created June 5, 2018 16:05
Download a whole pipermail archive into a single mbox file
wget -r -np -l 1 -n d -A gz https://lists.freedesktop.org/archives/wayland-devel/
gunzip *.gz
cat * > all.mbox
@razorness
razorness / gaugeJS-index.d.ts
Last active January 23, 2022 06:32
gauge.js / gaugeJS Typescript definition
// Type definitions for gauge.js (gaugeJS)
// Project: https://github.com/razorness/gauge.js (forked from https://github.com/bernii/gauge.js)
// Definitions by: Volker Nauruhn <https://github.com/razorness>
// TypeScript Version: 2.1
declare module 'gaugeJS' {
interface BaseOptions {
/**
@wido
wido / mac2eui64.py
Created December 21, 2016 11:56
Python 3 48-bit MAC to EUI-64 IPv6
#!/usr/bin/env python3
import ipaddress
import re
def mac2eui64(mac, prefix=None):
'''
Convert a MAC address to a EUI64 address
or, with prefix provided, a full IPv6 address
'''
@marcinwol
marcinwol / imagemagick7.sh
Created November 5, 2016 06:51
Compile ImageMagick 7 on Ubuntu 16.04
sudo apt install build-essential autoconf automake autopoint chrpath cm-super-minimal debhelper dh-autoreconf dh-strip-nondeterminism doxygen doxygen-latex gir1.2-rsvg-2.0 graphviz libbz2-dev libcairo-script-interpreter2 libcairo2-dev libcdt5 libcgraph6 libclang1-3.6 libdjvulibre-dev libexif-dev libfftw3-bin libfftw3-dev libfftw3-long3 libfftw3-quad3 libfile-stripnondeterminism-perl libfontconfig1-dev libfreetype6-dev libgdk-pixbuf2.0-dev libglib2.0-dev libgvc6 libgvpr2 libharfbuzz-dev libharfbuzz-gobject0 libice-dev libilmbase-dev libjasper-dev libjbig-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libjs-jquery liblcms2-dev libllvm3.6v5 liblqr-1-0-dev liblzma-dev libobjc-5-dev libobjc4 libopenexr-dev libpango1.0-dev libpathplan4 libpcre3-dev libpcre32-3 libpcrecpp0v5 libperl-dev libpixman-1-dev libpng12-dev libpotrace0 libptexenc1 libpthread-stubs0-dev librsvg2-bin librsvg2-dev libsigsegv2 libsm-dev libsynctex1 libtexlua52 libtexluajit2 libtiff5-dev libtiffxx5 libwmf-dev libx11-dev li
@bmarrdev
bmarrdev / AnimateCounter.java
Created July 10, 2015 08:48
AnimateCounter provides ability to animate the counting of numbers using the builtin Android Interpolator animation functionality.
/*
* Copyright (C) 2015 Hooked On Play
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@heckenmann
heckenmann / DijkstraImpl.java
Created February 24, 2015 18:02
Dijkstra-Algorithmus
//
// Implementierung des Dijkstra-Algorithmus.
//
package dijkstraimpl;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
//
@thomasfr
thomasfr / autossh.service
Last active May 9, 2024 16:59
Systemd service for autossh
[Unit]
Description=Keeps a tunnel to 'remote.example.com' open
After=network.target
[Service]
User=autossh
# -p [PORT]
# -l [user]
# -M 0 --> no monitoring
# -N Just open the connection and do nothing (not interactive)
@ebirn
ebirn / check_snapshot_creation
Created February 13, 2014 13:33
Nagios check for zfs snapshot creation date, checks the age of the most recent snapshot
#!/bin/sh
FSNAME=$1
WARNAGE=$2
CRITAGE=$3
NOW=$(/bin/date +%s)
ZFS="sudo /sbin/zfs"