Skip to content

Instantly share code, notes, and snippets.

@maxammann
maxammann / .env
Last active Jan 29, 2021
README.md
View .env
DEBUG_MODE=false
JITSI_URL=<fill_me>
# If your Jitsi environment has authentication set up, you MUST set JITSI_PRIVATE_MODE to "true" and you MUST pass a SECRET_JITSI_KEY to generate the JWT secret
JITSI_PRIVATE_MODE=false
JITSI_ISS=
SECRET_JITSI_KEY=
ADMIN_API_TOKEN=<secret>
@maxammann
maxammann / .env
Created Jan 8, 2021
Run Parabol self hosted
View .env
GOOGLE_OAUTH_CLIENT_ID='...'
GOOGLE_OAUTH_CLIENT_SECRET='...'
CDN_BASE_URL='https://retro:9443/'
SERVER_SECRET='...'
GRAPHQL_HOST='localhost:3000'
GRAPHQL_PROTOCOL='http'
HOST='retro'
INVITATION_SHORTLINK='retro/invitation-link'
# MAIL GLOBALS. PROVIDER: mailgun | google
MAIL_PROVIDER='google'
View tplink_archer_c7_router_reset.py
View PKGBUILD without kqoauth
# Maintainer: Ammann Max <maximilian.ammann@googlemail.com>
pkgname=golden-cheetah-git
pkgver=v3.5.DEV1705X.r70.ac18d98a
pkgrel=1
pkgdesc="Cycling Power Analysis Software. We believe that cyclists and triathletes should be able to download their power data to the
computer of their choice, analyze it in whatever way they see fit, and share their methods of
analysis with others."
arch=('i686' 'x86_64')
url="http://www.goldencheetah.org/"
license=('GPL')
@maxammann
maxammann / gist:a4665ff3138c87851ee23a1e9153bcff
Last active May 12, 2018
Unified Remote Server Systemd service
View gist:a4665ff3138c87851ee23a1e9153bcff
[Unit]
Description=Unified Remote Server
After=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/bash /opt/urserver/urserver-start --no-manager --no-copy
ExecStop=/bin/bash /opt/urserver/urserver-stop
Environment=DISPLAY=:0
View gist:b98366bffe625d88bdd10da307b1c270
clinfo: /opt/cuda/lib64/libOpenCL.so.1: no version information available (required by clinfo)
Number of platforms 1
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.0 AMD-APP (2442.7)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
Platform Extensions function suffix AMD
Platform Name AMD Accelerated Parallel Processing
View gist:7608245fc7c8c96e2016
cd qwt/ && make -f Makefile
make[1]: Verzeichnis „/root/GoldenCheetah/qwt“ wird betreten
cd src/ && make -f Makefile
make[2]: Verzeichnis „/root/GoldenCheetah/qwt/src“ wird betreten
g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -Wall -W -D_REENTRANT -DQWT_NO_SVG -DQWT_NO_OPENGL -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Imoc -o obj/qwt_abstract_scale_draw.o qwt_abstract_scale_draw.cpp
g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -Wall -W -D_REENTRANT -DQWT_NO_SVG -DQWT_NO_OPENGL -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Imoc -o obj/qwt_clipper.o qwt_clipper.cpp
g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -Wall -W -D_REENTRANT
@maxammann
maxammann / main.c
Last active May 21, 2018
Example how to visualize libav output in a spectrum
View main.c
int open_file(char *file_path, AVFormatContext **fmt_ctx, AVCodecContext **dec_ctx) {
int audio_stream_index;
AVCodec *codec;
// Find codec and stream
if (avformat_open_input(fmt_ctx, file_path, NULL, NULL) < 0) {
av_log(NULL, AV_LOG_ERROR, "Cannot open input file\n");
return -1;
}
@maxammann
maxammann / audio.c
Created Mar 22, 2015
libao and libsndfile: PCM playback (.wav, .aiff, .ogg)
View audio.c
#include <ao/ao.h>
#include <sndfile.h>
#include <signal.h>
#define BUFFER_SIZE 8192
int cancel_playback;
void on_cancel_playback(int sig) {
if (sig != SIGINT) {
View gist:4fdb8f7473039eff00bb
find . -type f -name "*.doc" -exec sh -c "catdoc {} | head -1" \;