Add to ~/.ssh/config
:
Host *
# Enable persistent connection multiplexing
ControlMaster auto
ControlPath ~/.ssh/-%r@%h:%p
ControlPersist 600
<?php | |
class RetryTest extends TestCase | |
{ | |
public function setUp() | |
{ | |
parent::setUp(); | |
// abuse superglobal to keep track of state | |
$_GET['a'] = 0; | |
} |
#!/bin/bash | |
# Mark Ziesemer, 2016-02-11, 2016-12-14. | |
# As described at https://rhn.redhat.com/errata/RHSA-2015-2088.html , | |
# I'm afraid that the race condition with OpenSSH ControlMaster multiplexing is still not resolved | |
# in recent CentOS / Fedora releases. | |
# This refers to BZ#1240613 (which is apparently restricted), and is also described at | |
# https://access.redhat.com/solutions/1521923 (which is non-public, restricted to subscription access). | |
# Reported to https://bugzilla.redhat.com/show_bug.cgi?id=1308295 on 2016-02-13 . |
function Install-Cygwin { | |
param ( $CygDir="c:\cygwin", $arch="x86") | |
# Generate random password (forcing a non-alphanumeric at the end because of policies | |
$password = (([char[]]([char]'a'..[char]'z') + 0..9 | sort {get-random})[0..12] -join '') + '.' | |
Write-Verbose "Not-so-secret password: $password" | |
if(!(Test-Path -Path $CygDir -PathType Container)) { | |
Write-Verbose "Creating directory $CygDir" | |
New-Item -Type Directory -Path $CygDir -Force |
# Original: https://gist.github.com/akostadinov/33bb2606afe1b334169dfbf202991d36 | |
# The difference is that this func outputs stacktrace in reverse order (from top level to lower ones) | |
function print_stacktrace () { | |
STACK="" | |
local i | |
local stack_size=${#FUNCNAME[@]} | |
echo "Stacktrace:" | |
# skip this function and "MAIN non_file_source:0" | |
for (( i=$stack_size-1; i>=1; i-- )); do | |
local func="${FUNCNAME[$i]}" |
<?php | |
class RetryTest extends TestCase | |
{ | |
public function setUp() | |
{ | |
parent::setUp(); | |
// abuse superglobal to keep track of state | |
$_GET['a'] = 0; | |
} |
## projectName | |
<VirtualHost *:80> | |
ServerName projectName.local.plou | |
CustomLog "/www/.logs/projectName.local.plou-access_log" combined | |
ErrorLog "/www/.logs/projectName.local.plou-error_log" | |
DocumentRoot "/www/projectName/" | |
Header set Access-Control-Allow-Origin "*" | |
Header always set Access-Control-Allow-Methods "POST, PUT, GET, DELETE, OPTIONS" | |
Header always set Access-Control-Allow-Headers "Content-Type" | |
</VirtualHost> |
function iframeURLChange(iframe, callback) { | |
var lastDispatched = null; | |
var dispatchChange = function () { | |
var newHref = iframe.contentWindow.location.href; | |
if (newHref !== lastDispatched) { | |
callback(newHref); | |
lastDispatched = newHref; | |
} |
./wsadmin.sh -lang jython -conntype none -c 'import com.ibm.ws.security.util.PasswordDecoder as pd; pd.main(["{xor}KzosK25tbH4n"]);'
./wsadmin.sh -lang jython -conntype none -c 'import com.ibm.ws.security.util.PasswordEncoder as pd; pd.main(["test123!x"]);'