Skip to content

Instantly share code, notes, and snippets.

@DeadSix27
DeadSix27 / gameslist.json
Created October 10, 2019 22:59 — forked from Cynosphere/gameslist.json
Discord Verified Games List
This file has been truncated, but you can view the full file.
[
{
"id": "259392830932254721",
"name": "SpeedRunners",
"icon": "cb48279ea90e86fb4f71c709d3236395",
"splash": "94e91cac9509fee1eb80a69b9503878a",
"overlay": false,
"overlayWarn": false,
"overlayCompatibilityHook": false,
"aliases": [],
@DeadSix27
DeadSix27 / gist:5d4aec84a46e8fcd58eae377237ba36c
Created March 2, 2018 21:45
namespace example using a noexec up down scrirpt for ovpn
########### netns-script
#!/bin/sh
case $script_type in
up)
echo up
ip netns add vpn
ip netns exec vpn ip link set dev lo up
ip link set dev "$1" up netns vpn mtu "$2"
ip netns exec vpn ip addr add dev "$1" \
"$4/${ifconfig_netmask:-30}" \
# 1_create.sh
# Creates the namespaces and routes for the vpn namespace.
################
#!/usr/bin/env bash
ip netns add vpn
ip netns exec vpn ip addr add 127.0.0.1/8 dev lo
ip netns exec vpn ip link set lo up
ip netns add vpn
ip netns exec vpn ip addr add 127.0.0.1/8 dev lo
ip netns exec vpn ip link set lo up
ip link add vpn0 type veth peer name vpn1
ip link set vpn0 up
ip link set vpn1 netns vpn up
ip addr add 10.200.200.1/24 dev vpn0
ip netns exec vpn ip addr add 10.200.200.2/24 dev vpn1
Example on ffmpeg:
git clone https://github.com/FFmpeg/FFmpeg
cd FFmpeg
git remote add -f mpvBranch https://github.com/mpv-player/ffmpeg-mpv
git remote update
wget https://github.com/FFmpeg/FFmpeg/commit/94e5432e6124192fb81893fc5fd40e26f3e09df4.patch
git am -3 94e5432e6124192fb81893fc5fd40e26f3e09df4.patch
echo Resolve the patch manually
@DeadSix27
DeadSix27 / README.md
Last active December 18, 2023 07:02 — forked from magnetikonline/README.md
Example Nginx & PHP-FPM systemd service configs.

Example Nginx & PHP-FPM systemd service configs

A set of really basic systemd configs for starting Nginx and PHP-FPM on system boot.

  • Ensures Nginx web server has started before starting the PHP-FPM process.
  • PHP-FPM pid file placed at /run/php7/php-fpm.pid, PHP7 PHP-FPM config at /etc/php7.
  • Based on usage with Ubuntu 16.04LTS.

Both scripts placed in /lib/systemd/system and enabled by the following:

$ python2 synapse/python_dependencies.py > requirements.txt
$ cat requirements.txt 13:29:08
matrix-synapse-ldap3>=0.1
msgpack-python>=0.3.0
daemonize
frozendict>=0.4
psutil>=2.0.0
pyopenssl>=0.14
pydenticon
pymacaroons-pynacl