Skip to content

Instantly share code, notes, and snippets.

#
# Sample /etc/sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
##
# Override built-in defaults
##
@pantafive
pantafive / .pre-commit-config.yaml
Last active September 13, 2020 21:40
python - pre-commit-config.yaml
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-case-conflict
- id: check-yaml
- id: requirements-txt-fixer
- id: pretty-format-json
@pantafive
pantafive / Dockerfile
Created December 13, 2021 18:35
nginx: docker: serve config.json generated from environment variables
FROM alpine:3.6 as nginx
RUN apk add --no-cache nginx-mod-http-lua
RUN rm -r /etc/nginx/conf.d && rm /etc/nginx/nginx.conf
# Create folder for PID file
RUN mkdir -p /run/nginx
COPY ./nginx.conf /etc/nginx/nginx.conf
@pantafive
pantafive / .golangci.yml
Last active August 12, 2023 01:18
golangci config
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 10m
# exit code when at least one issue was found, default is 1
issues-exit-code: 1
# include test files or not, default is true
tests: true
[tool.ruff]
line-length = 120
select = [
# "D", # pydocstyle
"F", # Pyflakes
"I", # isort
"N", # pep8-naming
"RUF", # Ruff-specific rules
"UP", # pyupgrade