Skip to content

Instantly share code, notes, and snippets.

View dweipert-3138720606's full-sized avatar
💜
philanthropizing

dweipert-3138720606

💜
philanthropizing
View GitHub Profile
@szg251
szg251 / setup-db.sh
Created December 25, 2019 07:48
MySQL setup script for nix-shell
#!/bin/sh
DATADIR="$(pwd)/.mysql"
SOCKET="$DATADIR/mysql.sock"
echo $DATADIR
alias query="mysql --socket=$SOCKET --user=root --password=$MYSQL_ROOT_PASSWORD"
resetDB() {
@attacus
attacus / riot-matrix-workshop.md
Last active March 13, 2024 00:16
Create your own encrypted chat server with Riot and Matrix

This guide is unmaintained and was created for a specific workshop in 2017. It remains as a legacy reference. Use at your own risk.

Running your own encrypted chat service with Matrix and Riot

Workshop Instructor:

This workshop is distributed under a CC BY-SA 4.0 license.

What are we doing here?

@progandy
progandy / PKGBUILD
Last active March 6, 2024 17:51
Minimal MPRIS2 support for mpv
# PKGBUILD for lua52-lgi
# Maintainer: NONE
# lua-lgi Maintainer: speps <speps at aur dot archlinux dot org>
# lua-lgi Maintainer: Sébastien Luttringer
_pkgbase=lgi
pkgname=lua52-lgi
pkgver=0.9.1
pkgrel=1
pkgdesc='Lua 5.2 bindings for gnome/gobject using gobject-introspection library'
@Stanback
Stanback / nginx.conf
Last active May 10, 2024 12:07 — forked from michiel/cors-nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which