Easy youtrack deployment using docker
These Dockerfiles allow you to easily build images to deploy your own youtrack instance. It's free for up to ten users.
Besides that, as always, use these scripts with care.
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Easy youtrack deployment using docker
These Dockerfiles allow you to easily build images to deploy your own youtrack instance. It's free for up to ten users.
Besides that, as always, use these scripts with care.
#!/bin/bash | |
# from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/ | |
# and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server | |
############################################### | |
# To use: | |
# wget https://raw.github.com/gist/2776679/04ca3bbb9f085b192f6aca945120fe12d59f15f9/install-redis.sh | |
# chmod 777 install-redis.sh | |
# ./install-redis.sh | |
############################################### | |
echo "*****************************************" |
# Login as root | |
root@homestead:~# sudo -s | |
# Update Aptitude | |
root@homestead:~# apt-get update | |
# Install Java | |
root@homestead:~# apt-get install openjdk-7-jre-headless -y | |
# Download and install Elasticsearch Public Signing Key |
<?php | |
// cURL obeys the RFCs as it should. Meaning that for a HTTP/1.1 backend if the POST size is above 1024 bytes | |
// cURL sends a 'Expect: 100-continue' header. The server acknowledges and sends back the '100' status code. | |
// cuRL then sends the request body. This is proper behaviour. Nginx supports this header. | |
// This allows to work around servers that do not support that header. | |
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); | |
// We're emptying the 'Expect' header, saying to the server: please accept the body right now. | |
// Read here: http://pilif.github.com/2007/02/the-return-of-except-100-continue/ |
#how to specify an ssh key to use when cloning a repo in Mac | |
ssh-agent bash -c 'ssh-add /Users/UR_USERNAME/.ssh/UR_PRIVATE_KEY; git clone git@DAS_GIT_URL' | |
# Install Rancher supported Docker version with Kubernetes support | |
curl https://releases.rancher.com/install-docker/17.03.sh | sh | |
# Stop all containers: | |
docker kill $(docker ps -q) | |
# Remove all containers | |
docker rm $(docker ps -a -q) | |
# Remove all docker images |
version: '3' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.0 | |
ports: | |
- 9200:9200 | |
- 9300:9300 | |
environment: | |
- "cluster.name=docker-cluster" |
add_header X-Content-Type-Options "nosniff"; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
add_header X-Download-Options "noopen"; | |
add_header X-XSS-Protection "1; mode=block"; | |
add_header Expect-CT "enforce; max-age=3600"; | |
add_header Referrer-Policy "origin-when-cross-origin"; | |
add_header Strict-Transport-Security "max-age=2592000; includeSubDomains"; | |
add_header Content-Security-Policy "default-src 'self'; script-src *; style-src *; font-src *; img-src *; child-src 'self'; connect-src *; sandbox allow-same-origin allow-forms allow-scripts; object-src 'self'; form-action 'self'; frame-ancestors 'none';"; | |
# ABOUT PLUBIC KEY PINS https://developer.mozilla.org/en-US/docs/Web/HTTP/Public_Key_Pinning |
/* | |
* node-ws - pure Javascript WebSockets server | |
* Copyright Bradley Wright <[email protected]> | |
*/ | |
// Use strict compilation rules - we're not animals | |
'use strict'; | |
var net = require('net'), | |
crypto = require('crypto'); |