For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| # force HTTP to HTTPS - /etc/nginx/conf.d/nonssl.conf | |
| server { | |
| listen 80; | |
| server_name jira.example.com; | |
| access_log off; | |
| return 301 https://$server_name$request_uri; | |
| } | |
| # /etc/nginx/conf.d/jira.conf | |
| server { |
| defmodule PrimeFactors do | |
| @moduledoc """ | |
| Inspired by Uncle Bob's algorithm: | |
| http://butunclebob.com/ArticleS.UncleBob.ThePrimeFactorsKata | |
| """ | |
| @doc """ | |
| Функция generate/1 получает целое число в качестве параметра | |
| и возвращает все простые делители этого числа в виде списка. | |
| """ |
| sudo apt-get update | |
| sudo apt-get install nginx | |
| sudo service nginx start | |
| sudo vi /etc/nginx/sites-enabled/default | |
| ##### VI output, oder nano jenachdem mit was du die ändern willst ### | |
| server { | |
| #listen 80; ## listen for ipv4; this line is default and implied | |
| #listen [::]:80 default_server ipv6only=on; ## listen for ipv6 | |
| package lan.dk.podcastserver.utils.multipart; | |
| import lan.dk.podcastserver.utils.MimeTypeUtils; | |
| import org.apache.commons.lang3.StringUtils; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import javax.servlet.ServletOutputStream; | |
| import javax.servlet.http.HttpServletRequest; | |
| import javax.servlet.http.HttpServletResponse; |
Create file /etc/systemd/system/docker-compose@.service. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.
[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service| - hosts: all | |
| become: yes | |
| gather_facts: false | |
| vars: | |
| tasks: | |
| - name: Check that the /etc/docker/daemon.json exists | |
| stat: | |
| path: /etc/docker/daemon.json | |
| register: stat_result |