References:
From man page: man apt_preferences
References:
From man page: man apt_preferences
| #!/usr/bin/env bash | |
| # NOTE: This will let anyone who belongs to the 'pcap' group | |
| # execute 'tcpdump' | |
| # NOTE2: User running the script MUST be a sudoer. It is | |
| # convenient to be able to sudo without a password. | |
| sudo groupadd pcap | |
| sudo usermod -a -G pcap $USER |
| # My tmux configuration, partly based on https://github.com/wbkang/wbk-stow/blob/master/tmux-config/.tmux.conf | |
| # Scroll History | |
| set -g history-limit 50000 | |
| # show messages for 4 seconds instead | |
| set -g display-time 4000 | |
| # set first window to index 1 (not 0) to map more to the keyboard layout | |
| set-option -g renumber-windows on |
| #!/bin/bash | |
| #This script will compile and install a static ffmpeg build with support for nvenc un ubuntu. | |
| #See the prefix path and compile options if edits are needed to suit your needs. | |
| #for ubuntu 19.04 | |
| #install required things from apt | |
| installLibs(){ | |
| echo "Installing prerequisites" | |
| sudo apt-get update |
| --- | |
| # You may override default target user with -e user=someotheruser | |
| # It is mandatory to choose a strong password! At least consult with https://www.bennish.net/password-strength-checker/ | |
| - name: change linux user password | |
| hosts: [all] | |
| gather_facts: no | |
| vars_prompt: | |
| ## use this when 656K rounds will be OK for your servers' CPU performance, or when rounds number will become configurable in ansible | |
| # You may need 'apt-get install python-passlib' or 'pip install passlib' for vars_prompt encryption |
| /* Useful celery config. | |
| app = Celery('tasks', | |
| broker='redis://localhost:6379', | |
| backend='redis://localhost:6379') | |
| app.conf.update( | |
| CELERY_TASK_RESULT_EXPIRES=3600, | |
| CELERY_QUEUES=( | |
| Queue('default', routing_key='tasks.#'), |
Общие упрощенные понятия. Возможно существуют способы задать другое поведение нежели данное упощенное.