Follow the tutorial here:
but in /etc/crypttab add “none luks” at the end of line:
mynew_data /dev/sdb1 none luks
Follow the tutorial here:
but in /etc/crypttab add “none luks” at the end of line:
mynew_data /dev/sdb1 none luks
To specify jvm options for a test you can use argLine system property:
http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#argLine
E.g. to set max perm size to 2 GB you can do:
mvn clean install -DargLine="-XX:MaxPermSize=2g"
To access a resource from restricted area (let the resource be: restrictedUrl.com:443) when you can ssh to a gateway (gatewayHost):
ssh login@gatewayHost -L 8013:restrictedUrl:443
Now you can access restrictedUrl:443 on localhost:8013 on your pc.
If you want to generate a report from tests that you run before:
mvn surefire-report:report-only
To run tests and generate report:
mvn surefire-report:report
The generated test report html can be found in: target/site
document.querySelectorAll(‘selector’)
SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE pid pg_backend_pid() AND datname = 'dbname';
For old versions of postgres:
SELECT pg_terminate_backend(procpid) FROM pg_stat_activity
WHERE procpid pg_backend_pid() AND datname = 'database_name';
More: http://stackoverflow.com/questions/5108876/kill-a-postgresql-session-connection
Evaluating xpath in browser (e.g. in chrome’s console):
document.evaluate(‘//h2[@data-name=”confirmation-caption”]’,document, null, 0, null).iterateNext()
Invoke tests in the following manner and attach debugger to socket on port 5005.
mvn -Dmaven.surefire.debug test
See:
http://maven.apache.org/plugins/maven-surefire-plugin/examples/debugging.html
mvn -Dmaven.failsafe.debug test
See: http://maven.apache.org/surefire/maven-failsafe-plugin/examples/debugging.html
To make flash plugin run well on ubuntu:
sudo add-apt-repository ppa:ubuntu-audio-dev/ppa; sudo apt-get update;sudo apt-get dist-upgrade; sudo apt-get install linux-sound-base alsa-base alsa-utils linux-image-`uname -r` libasound2; sudo apt-get -y --reinstall install linux-sound-base alsa-base alsa-utils linux-image-`uname -r` libasound2; killall pulseaudio; rm -r ~/.pulse*; sudo usermod -aG `cat /etc/group | grep -e '^pulse:' -e '^audio:' -e '^pulse-access:' -e '^pulse-rt:' -e '^video:' | awk -F: '{print $1}' | tr '\n' ',' | sed 's:,$::g'` `whoami`
The second one is the first step of: https://help.ubuntu.com/community/SoundTroubleshootingProcedure
export LD_LIBRARY_PATH=[path to directory containing native libraries]