This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
say all = starts reading whole page on page load | |
Ctrl = pauses say all | |
Ins-down = starts say all again | |
p = read para | |
down = read next line | |
up = read previous line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
winpty docker exec -ti containerid sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In Datasource, Configuration, Connection Pool - Advanced: | |
Init SQL property - command here must be prefixed with 'SQL ' | |
e.g. | |
SQL ALTER SESSION ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>org.glassfish.jersey.media</groupId> | |
<artifactId>jersey-media-json-jackson</artifactId> | |
<version>x</version> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<settings> | |
<localRepository>$OPENSHIFT_DATA_DIR</localRepository> | |
</settings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RunWith(SpringJUnit4ClassRunner.class) | |
@ContextConfiguration(locations = { "/example-context.xml" }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<appender name="appender" class="ch.qos.logback.core.ConsoleAppender"> | |
<encoder> | |
<pattern>%d{dd MMM yyyy HH:mm:ss} %-4r [%t] %-5p %c %x - %m%n</pattern> | |
</encoder> | |
</appender> | |
<logger name="org.springframework" level="INFO"/> | |
<logger name="ch.qos.logback" level="WARN"/> | |
<root level="DEBUG"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See https://github.com/docker/docker/issues/8631 | |
To fix - run in container, or add as part of Dockerfile: | |
export TERM=xterm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On Windows: | |
1. don't modify the existing network adapters (NAT and host-only) | |
2. add 3rd adapter for bridged | |
3. docker-machine env | |
4. docker-machine regenerate-certs default | |
5. docker-machine ip default - show bridged ip | |
Restar docker-machine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for f in $(find . -name "*.jsp") | |
do | |
echo "Updating file: $f" | |
#prepend: note BSD requires an empty '' param to sed -i | |
sed -i '' '1s/^/new line1\ | |
new line2\ | |
new line3\ | |
/' $f |