-v $(pwd)/data:/data:rw
/data
у вашего пользователя нет как скорее всего не существует и самого каталога /data
@JsonNaming
annotation is used to choose the naming strategies for properties in serialization, overriding the default. Using the value element, we can specify any strategy, including custom ones.ResultSet resultSet = statement.executeQuery("SELECT count(*) as cnt FROM customers WHERE name = 'Bob' AND purchase = 'bike'");
resultSet.next(); // not first() with PGSL JDBC it is forward only cursor
final int cnt = resultSet.getInt(1);
System.out.println("cnt: " + cnt);
String query = "SELECT count(*) <> 0 FROM accounts WHERE username = 'bob';";
System.out.println("Executing count query: " + query);
ResultSet resultSet = connection.createStatement().executeQuery(query);
resultSet.next();
final boolean status = resultSet.getBoolean(1);
System.out.println("status: " + status);
diagnostics.jvm.garbage.collector.percent
и др. это jvm $CATALINA_HOME/bin/setenv.sh
export JAVA_OPTS= ...
-D
cat /usr/local/tomcat/bin/setenv.sh
export JAVA_OPTS="-Dlog4j2.debug=true -Dapp.env=staging -Dlog4j.configurationFile=$CATALINA_BASE/conf/log4j2.xml -Ddiagnostics.jvm.memory.check.period.secs=30 -Ddiagnostics.jvm.garbage.collector.percent=30 -
Ddiagnostics.jvm.garbage.collector.monitoring.period.secs=30"
wait.Until(x => {
var size =
x.FindElement(By.CssSelector(selector)).GetAttribute("value").Length;
if (size >= 5) {
return true;
} else {
Console.Error.Write("waiting for specific text length");
return false;
}
});
RichTextBox
можноPaste
readlink $(which nest)
../../../Users//.config/yarn/global/node_modules/.bin/nest
file ../../../Users/userName/.config/yarn/global/node_modules/.bin/nest
../../../Users/userName/.config/yarn/global/node_modules/.bin/nest: cannot open `../../../Users/userName/.config/yarn/global/node_modules/.bin/nest' (No such file or directory)
/usr/local/bin/nest
ln -fs "правильный путь" /usr/local/bin/nest
homedir = getenv('HOME')
options.add_argument('--user-data-dir="{}"'.format(homedir))
options.add_argument('--remote-debugging-port=9222')
HOME
, подправьте screenshot_as_png
[DllImport("user32.dll")]
public static extern int EnumDisplaySettings(string deviceName, int modeNum, ref DEVMODE1 devMode);
public struct DEVMODE1 {
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)] public string dmDeviceName;
// детали
DEVMODE1 dm = new DEVMODE1();
User_32.EnumDisplaySettings(null, User_32.ENUM_CURRENT_SETTINGS, ref dm)) ;
writer = csv.writer(csvfile, delimiter=' ', quotechar='|', quoting=csv.QUOTE_MINIMAL)
writer.writerow([name_of_restauran.texе])
delimiter
FROM python:3.8.2-alpine
ARG FILENAME_ARG
ENV FILENAME $FILENAME_ARG
# time on alpine does not recognize a long --format argument
CMD time -f '%U' python temp/${FILENAME} 2>&1
FROM python:3.8.2-alpine
ARG FILENAME_ARG
ENV FILENAME $FILENAME_ARG
ENV TIME '%u'
CMD time python temp/${FILENAME} 2>&1
man time
TIME(1) General Commands Manual TIME(1)
NAME
time - run programs and summarize system resource usage
%U Total number of CPU-seconds that the process spent in user
mode.
...
%R Number of minor, or recoverable, page faults.
%R