0. Create kafka user
sudo adduser kafka
sudo adduser kafka sudo
su -l kafka
1. Download and Install kafka archive
| This was mirrored from the snapshot of earthserver.com available on archive.org | |
| -------------------------------------------------------------------------------- | |
| Setting up a modern C++ development environment on Linux with Clang and Emacs | |
| I am an independent game developer and this is my personal wiki. | |
| Please feel free to email [email protected], and to follow @Earthserver | |
| (Redirected from Setting up a C++11 development environment on Linux with Clang and Emacs) |
| curl -O https://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz | |
| tar xvfz pip-1.2.1.tar.gz | |
| cd pip-1.2.1 | |
| zypper install python-setuptools | |
| python setup.py install | |
| ln -sfn /usr/local/bin/pip /usr/bin/pip | |
| pip install --upgrade awscli | |
| cd .. |
| # /usr/lib/systemd/system/cassandra.service | |
| [Unit] | |
| Description=Cassandra | |
| After=network.target | |
| [Service] | |
| PIDFile=/var/run/cassandra/cassandra.pid | |
| User=cassandra | |
| Group=cassandra |
| Backup: | |
| docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql | |
| Restore: | |
| cat your_dump.sql | docker exec -i your-db-container psql -Upostgres |
| <html> | |
| <head> | |
| <script src="jquery-2.1.4.js"></script> | |
| <link rel="stylesheet" type="text/css" href="styles.css"> | |
| </head> | |
| <body> | |
| <div id="wrapper"> | |
| <h1>Create Issue</h1> | |
| <form id="create-form"> | |
| Summary: <input type="text" name="summary" id="summary" value=""/> |
| <?php | |
| $base64_usrpwd = base64_encode($_POST['user'].':'.$_POST['pass']); | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_URL, 'http://localhost:8080/rest/api/2/issue/'); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
| curl_setopt($ch, CURLOPT_POST, 1); | |
| curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', | |
| 'Authorization: Basic '.$base64_usrpwd)); | |
| # Install https://www.vaultproject.io/ | |
| brew install vault | |
| # Start dev vault server in a separate terminal | |
| vault server -dev | |
| # ==> Vault server configuration: | |
| # ... | |
| # Unseal Key: 7ACQHhLZY5ivzNzhMruX9kSa+VXCah3y87hl3dPSWFk= | |
| # Root Token: 858a6658-682e-345a-e4c4-a6e14e6f7853 |
| // Related to https://issues.jenkins-ci.org/browse/JENKINS-26481 | |
| abcs = ['a', 'b', 'c'] | |
| node('master') { | |
| stage('Test 1: loop of echo statements') { | |
| echo_all(abcs) | |
| } | |
| stage('Test 2: loop of sh commands') { |
This is a quick guide to install PostgreSQL 10 - tested on Ubuntu 16.04 but likely can be used for Ubuntu 14.04 and 17.04 as well, with one minor modification detailed below.
To make life simple, remove all other versions of Postgres. Obviously not required, but again, makes life simple. If you have data in your previous version of postgres that you'd like to retain, then this is not recommended. Instead, you'll have to use pg_upgrade or pg_upgradecluster.