Skip to content

Instantly share code, notes, and snippets.

{
"spellright.language": ["en_US"],
"spellright.documentTypes": ["markdown", "latex", "plaintext"],
"latex-workshop.latex.outDir": "%DIR%/build",
"latex-workshop.view.pdf.viewer": "tab",
"workbench.colorTheme": "GitHub Light",
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 90,
"editor.wrappingIndent": "indent",
"editor.defaultFormatter": "esbenp.prettier-vscode",
@maxammann
maxammann / .env
Last active January 29, 2021 00:06
README.md
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 January 8, 2021 16:30
Run Parabol self hosted
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'
# Maintainer: Ammann Max <[email protected]>
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 09:32
Unified Remote Server Systemd service
[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
@maxammann
maxammann / gist:b98366bffe625d88bdd10da307b1c270
Created August 7, 2017 06:20
OpenCL 1.2 AMD-APP not supported
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
@maxammann
maxammann / gist:7608245fc7c8c96e2016
Created December 16, 2015 15:12
GoldenCheetah Arch Build
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 01:51
Example how to visualize libav output in a spectrum
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 March 22, 2015 15:48
libao and libsndfile: PCM playback (.wav, .aiff, .ogg)
#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) {