This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
settings { | |
logfile = "/var/log/lsyncd/lsyncd.log", | |
statusFile = "/var/log/lsyncd/lsyncd.status" | |
} | |
sync { | |
default.rsyncssh, | |
source = "/sites/", | |
host = "x.x.x.x", | |
targetdir = "/sites/", | |
exclude = {"*.bak" , "*.tmp" , "*.log" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def create_app(config_settings=None): | |
app = Flask(__name__) | |
file_handler = RotatingFileHandler('app.log') | |
file_handler.setFormatter(Formatter( | |
'%(asctime)s %(levelname)s: %(message)s ' | |
'[in %(pathname)s:%(lineno)d]' | |
)) | |
file_handler.setLevel(logging.DEBUG) | |
app.logger.addHandler(file_handler) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$wc=new-object net.webclient | |
$wp=[system.net.WebProxy]::GetDefaultProxy() | |
$wp.UseDefaultCredentials=$true | |
$wc.Proxy=$wp | |
iex ($wc.DownloadString('https://chocolatey.org/install.ps1')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mkdir /etc/systemd/system/docker.service.d | |
sudo bash -c 'cat <<EOF > /etc/systemd/system/docker.service.d/overlay.conf | |
[Service] | |
ExecStart= | |
ExecStart=/usr/bin/docker daemon -H fd:// --storage-driver=overlay | |
EOF' | |
sudo systemctl daemon-reload | |
sudo systemctl restart docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; | |
} | |
server { | |
listen 80; | |
# set root and server_name here | |
root /var/www/html; | |
server_name mastodon.herebedragons.io; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[plexmediaserver] | |
title=Plex Media Server | |
description=The Plex Media Server is smart software that makes playing Movies, TV Shows and other media on your computer simple | |
ports=32400/tcp|1900/udp|32469/udp|5353/udp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if status --is-login | |
if [ -n $HOME ] | |
# NIX PROFILE | |
set -l NIX_LINK $HOME/.nix-profile | |
if [ ! -l $NIX_LINK ] | |
set -l _NIX_DEF_LINK /nix/var/nix/profiles/default | |
$_NIX_DEF_LINK/bin/ln -s $_NIX_DEF_LINK $NIX_LINK | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
MAINTAINER Jan Issac <jan.issac@gmail.com> | |
# Use noninteractive debconf frontend | |
ENV DEBIAN_FRONTEND noninteractive | |
# Update | |
Run apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# A script to generate videos for MP3s | |
from moviepy.editor import * | |
import numpy as np | |
from PIL import Image | |
from glob import glob | |
from mutagen.mp3 import MP3 | |
from io import BytesIO | |
#points |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# NOTE: DO NOT BLINDLY RUN THIS!!!!! NOT TESTED!!!!!! | |
MY_PASSWORD="my-secret-pw" | |
# MariaDB | |
docker pull mariadb | |
docker run --restart=always \ |
OlderNewer