| Flag | What | Example |
|---|---|---|
| -s | size | |
| -c | code | |
| -f | format | |
| -v | verbosity | |
| -r | framerate |
This file contains hidden or 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/liquidsoap | |
| set("server.telnet", true) | |
| files = playlist( | |
| mode = "normal", | |
| id = "files", | |
| "PATH_TO_PLAYLIST.m3u" | |
| ) |
This file contains hidden or 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 | |
| # This way you can customize which branches should be skipped when | |
| # prepending commit message. | |
| if [ -z "$BRANCHES_TO_SKIP" ]; then | |
| BRANCHES_TO_SKIP=(master develop test) | |
| fi | |
| BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
| BRANCH_NAME="${BRANCH_NAME##*/}" |
This file contains hidden or 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
| # | |
| # Repaus Media Server | |
| # AzuraCast Docker Compose Configuration File | |
| # Settings override | |
| version: '2.2' | |
| networks: | |
| proxy: | |
| external: |
This file contains hidden or 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 ruby:2.6.3-alpine3.9 | |
| RUN apk update && apk add libpq nodejs | |
| ENV RAILS_ROOT /app | |
| RUN mkdir -p $RAILS_ROOT | |
| ENV BUNDLER_VERSION 2.0.2 | |
| WORKDIR $RAILS_ROOT | |
| RUN echo 'gem: --no-ri --no-rdoc' > ~/.gemrc | |
| COPY Gemfile Gemfile | |
| COPY Gemfile.lock Gemfile.lock | |
| RUN apk add --virtual build-dependencies build-base gcc wget git postgresql-dev \ |
This file contains hidden or 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
| import os | |
| from django.http import HttpResponse | |
| from django.shortcuts import render | |
| from django.utils.functional import wraps | |
| from django.utils import simplejson | |
| def render_to(view=None, template_name=None): | |
| """ |
This file contains hidden or 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 django import forms | |
| from crispy_forms.helper import FormHelper | |
| from crispy_forms.layout import Layout, Fieldset | |
| from crispy_forms.bootstrap import AppendedText | |
| class GenericSearchForm(forms.Form): | |
| def __init__(self, *args, **kwargs): | |
| super().__init__(*args, **kwargs) |
This file contains hidden or 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 django import forms | |
| from django.utils.translation import gettext_lazy as _ | |
| from crispy_forms.helper import FormHelper | |
| from crispy_forms.layout import Layout, Fieldset, Row | |
| from crispy_forms.bootstrap import AppendedText | |
| from haystack.forms import ModelSearchForm, model_choices | |
| from haystack.inputs import AutoQuery, Raw | |
| class SiteSearchForm(ModelSearchForm): |
This file contains hidden or 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
| #+TITLE: Customize Save In Django Admin Inline Form | |
| * Background | |
| This is a common case in django ORM. | |
| #+begin_src python | |
| from django.db import models | |
| class Author(models.Model): |
This file contains hidden or 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
| MYSQL_ROOT_PASSWORD= | |
| MYSQL_DATABASE= | |
| MYSQL_USER= | |
| MYSQL_PASSWORD= |