Flag | What | Example |
---|---|---|
-s | size | |
-c | code | |
-f | format | |
-v | verbosity | |
-r | framerate |
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
# | |
# Repaus Media Server | |
# AzuraCast Docker Compose Configuration File | |
# Settings override | |
version: '2.2' | |
networks: | |
proxy: | |
external: |
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 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 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 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 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 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 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= |
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
version: "3.3" | |
services: | |
################################################ | |
#### Traefik Proxy Setup ##### | |
############################################### | |
traefik: | |
image: traefik:v2.0 | |
restart: always |
Go from:
cat ~/.bash_history | grep "git"
To:
gep "git" < ~/.bash_history