-i - ignore errors
-c - continue
-t - use video title as file name
--extract-audio - extract audio track
| server { | |
| listen 443 ssl http2; | |
| listen [::]:443 ssl http2; | |
| server_name yourdomain | |
| ssl_certificate /etc/ssl/localcerts/yourdomain.crt; | |
| ssl_certificate_key /etc/ssl/localcerts/yourdomain.key; | |
| ssl_ecdh_curve prime256v1; | |
| ssl_session_cache builtin:1000 shared:SSL:10m; |
| git log --all --graph --date="format:%d.%m.%Y %H:%M" --pretty="%C(auto,yellow)%h %C(green)%an <%ae> %Cblue%ad %C(auto)%d %C(reset)%s" |
| -- | |
| -- Read only | |
| -- | |
| -- Create a group | |
| CREATE ROLE postgres_ro_group; | |
| -- Grant access to existing tables | |
| GRANT USAGE ON SCHEMA public TO postgres_ro_group; | |
| GRANT SELECT ON ALL TABLES IN SCHEMA public TO postgres_ro_group; |
sentrySENTRY_SECRET_KEY to random 32 char stringdocker-compose up -ddocker-compose exec sentry sentry upgrade to setup database and create admin userdocker-compose exec sentry pip install sentry-slack if you want slack plugin, it can be done laterdocker-compose restart sentry9000| user www-data; | |
| worker_processes 4; | |
| error_log /var/log/nginx/error.log; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } |
sysctl -w fs.file-max=12000500
sysctl -w fs.nr_open=20000500
# Set the maximum number of open file descriptors
ulimit -n 20000000
# Set the memory size for TCP with minimum, default and maximum thresholds
sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000'| # Redis Cheatsheet | |
| # All the commands you need to know | |
| redis-server /path/redis.conf # start redis with the related configuration file | |
| redis-cli # opens a redis prompt | |
| # Strings. |
| ## This configuration file expects certain environment variables to be available. | |
| ## You can add them to /etc/default/td-agent: | |
| ## AWS_REGION | |
| ## AWS_VPC_ID | |
| ## AWS_INSTANCE_ID | |
| <source> | |
| @type syslog | |
| port 42185 | |
| bind 127.0.0.1 | |
| tag rsyslog |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of