This file contains hidden or 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 | |
expect -c " | |
set timeout 10 | |
spawn virsh console cvm1 | |
expect { | |
\"Escape character\" {send \"\r\r\" ; exp_continue} | |
\"Escape character\" {send \"\r\r\" ; exp_continue} | |
\"login:\" {send \"root\r\"; exp_continue} | |
\"Password:\" {send \"111111\r\";} |
This file contains hidden or 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 | |
# Size at the end is * 2048 where 2048 = 1 MB, so 1572864 = 768 MB | |
#DISK=`/usr/bin/hdiutil attach -nobrowse -nomount ram://1572864` | |
DISK=`/usr/bin/hdiutil attach -nobrowse -nomount ram://2097152` | |
/usr/sbin/diskutil erasevolume HFS+ "RamDiskCache" $DISK | |
CACHEDIR="/Volumes/RamDiskCache/$USER" |
This file contains hidden or 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
# Set variables in .bashrc file | |
# don't forget to change your path correctly! | |
export GOPATH=$HOME/golang | |
export GOROOT=/usr/local/opt/go/libexec | |
export PATH=$PATH:$GOPATH/bin | |
export PATH=$PATH:$GOROOT/bin |
This file contains hidden or 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
curl -O http://repository.sandbox.infoboxcloud.ru/scripts/onlyoffice/ol7.1/install.sh | |
chmod +x install.sh | |
install.sh domain.tld |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title>CSS Flexible Layout Module. Example 1.</title> | |
<link rel="stylesheet" href="index.css"/> | |
</head> | |
<body> | |
<section id='deals'> | |
<section class='sale-item'> |
This file contains hidden or 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
{ | |
"jpsVersion":"0.2" | |
"jpsType": "install", | |
"application": { } | |
} |
This file contains hidden or 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 | |
url=$1 | |
cookie=$2 | |
while ! `wget -c -t 0 --load-cookies=$cookie $url -O $fileName --no-check-certificate` | |
do | |
sleep 300 | |
echo `date` " try to download..." | |
done |
This file contains hidden or 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
<build> | |
<plugins> | |
... | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.1</version> | |
<executions> | |
<execution> | |
<id>default-compile</id> |
This file contains hidden or 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
#LoadModule security2_module modules/mod_security2.so | |
<IfModule !mod_unique_id.c> | |
#LoadModule unique_id_module modules/mod_unique_id.so | |
</IfModule> | |
<IfModule mod_security2.c> | |
# ModSecurity Core Rules Set configuration | |
Include modsecurity.d/*.conf | |
Include modsecurity.d/activated_rules/*.conf | |
This file contains hidden or 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
<server-groups> | |
<server-group name="main-server-group" profile="full"> | |
<jvm name="default"> | |
<heap size="64m" max-size="512m"/> | |
</jvm> | |
<socket-binding-group ref="full-sockets"/> | |
</server-group> | |
<server-group name="other-server-group" profile="full-ha"> | |
<jvm name="default"> | |
<heap size="64m" max-size="512m"/> |
NewerOlder