plugin.tx_solr {
solr {
scheme = http
host = YY.YY.YY.YY
port = 8080
path = /solr/core_XXXX/
This documents guides you through the process to install Debian Stretch with Full Disk Encryption. The following requirements exist:
After following this guide, you will end up with a setup like this:
| <?php | |
| $realUrlSiteConfigurations = [ | |
| 'site1' => [ | |
| 'rootPageUid' => 1, | |
| 'schema' => 'https', | |
| 'languageDomainMap' => [ | |
| 0 => 'www.site1.ch', | |
| 1 => 'www.site1.fr', | |
| 2 => 'www.site1.it', | |
| ] |
| /** | |
| * Class SoapClientCurl extends SoapClient __doRequest method with curl powered method | |
| */ | |
| class SoapClientCurl extends SoapClient{ | |
| //Required variables | |
| public $url = null; | |
| public $certfile = null; | |
| public $keyfile = null; | |
| public $passphrase = null; |
I recently had the following problem:
We didn't want to open the MySQL port to the network, but it's possible to SSH from the Jenkins machine to the MySQL machine. So, basically you would do something like
ssh -L 3306:localhost:3306 remotehost
| <?php | |
| /** | |
| * GitLab Web Hook | |
| * See https://gitlab.com/kpobococ/gitlab-webhook | |
| * | |
| * This script should be placed within the web root of your desired deploy | |
| * location. The GitLab repository should then be configured to call it for the | |
| * "Push events" trigger via the Web Hooks settings page. | |
| * | |
| * Each time this script is called, it executes a hook shell script and logs all |
| ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa | |
| ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa | |
| ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa |
| sudo tee /etc/sudoers.d/vagrant > /dev/null << EOL | |
| # | |
| # Arch Linux, Fedora sudoers entries | |
| # | |
| # Allow passwordless startup of Vagrant with vagrant-hostsupdater. | |
| Cmnd_Alias VAGRANT_HOSTS_ADD = /bin/sh -c echo "*" >> /etc/hosts | |
| Cmnd_Alias VAGRANT_HOSTS_REMOVE = /usr/bin/sed -i -e /*/ d /etc/hosts | |
| %sudo ALL=(root) NOPASSWD: VAGRANT_HOSTS_ADD, VAGRANT_HOSTS_REMOVE |
If you ever need to download an entire website, perhaps for off-line viewing, wget can do the job — for example:
$ wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains website.org --no-parent www.website.org/tutorials/html/
This command downloads the website www.website.org/tutorials/html/.
The options are:
--recursive: download the entire website--domains website.org: don't follow links outside website.org| #!/usr/bin/env bash | |
| # ~/apps/sshpass/bin/sshpass -p 'raspberry' scp -r archives [email protected]:~/ ; ~/apps/sshpass/bin/sshpass -p 'raspberry' ssh [email protected] 'sudo mv ~/archives/* /var/cache/apt/archives/' | |
| # ~/apps/sshpass/bin/sshpass -p 'raspberry' scp pi_setup [email protected]:~/ ; ~/apps/sshpass/bin/sshpass -p 'raspberry' ssh [email protected] 'bash ~/pi_setup pi9 109' | |
| # for pi in 110 111 112 | |
| # do | |
| # ~/apps/sshpass/bin/sshpass -p 'raspberry' scp pi_keys [email protected].$pi:~/.ssh/authorized_keys | |
| # ~/apps/sshpass/bin/sshpass -p 'raspberry' scp pi_hosts pi_mpihostsfile [email protected].$pi:~/ | |
| # ~/apps/sshpass/bin/sshpass -p 'raspberry' scp ~/.ssh/config [email protected].$pi:~/.ssh/ | |
| # ~/apps/sshpass/bin/sshpass -p 'raspberry' ssh [email protected].$pi 'cat /etc/hosts pi_hosts | tee hosts ; sudo cp hosts /etc/hosts' |