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
@echo off | |
REM Installs and configures WinRM in HTTPS mode | |
REM Execute this on target machine. | |
REM | |
REM xebialabs/overthere and rundeck-winrm-plugin | |
REM will work after this | |
REM | |
REM NOTE: You need accessible share with installation packages | |
REM and selfssl.exe and CertMgr.exe | |
REM Where to GET these? |
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/sh | |
# Graylog version, both server and web-ui | |
ver=0.11.0 | |
# Elasticsearch version (Currently must be 0.20.4) | |
elasticver=0.20.4 | |
# Set elasticheap size according to your server RAM available | |
elasticheap=128 | |
# Make sure system is fully upgraded | |
apt-get update |
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/sh | |
LV=`lvs | grep -v swap | sed -re "s/^[ ]+//;s/[ ]+/ /g" | cut -d" " -f1 | tail -n+2` | |
VG=`lvs | grep -v swap | sed -re "s/^[ ]+//;s/[ ]+/ /g" | cut -d" " -f2 | tail -n+2` | |
if [ "$1" = "" ]; then | |
echo specify /dev/sda? | |
exit | |
fi | |
echo Extending /dev/mapper/$VG-$LV using $1 as source space | |
pvcreate $1 | |
vgextend $VG $1 |
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/sh | |
service elasticsearch stop | |
service graylog2-server stop | |
killall -9 java | |
service apache2 stop | |
rm -Rf /opt/elasticsearch/data/* | |
# IF YOU HAVE AUTH USE THIS LINE - mongo graylog2 --eval "db.auth('graylog2', 'PASSWORD'); db.message_counts.remove();" | |
mongo graylog2 --eval "db.message_counts.remove();" | |
service elasticsearch start | |
service graylog2-server start |
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
diff -rwu tomcat-native-1.1.27-src/jni/java/org/apache/tomcat/jni/socket/AprSocketContext.java tomcat-native-1.1.27-src-java6/jni/java/org/apache/tomcat/jni/socket/AprSocketContext.java | |
--- tomcat-native-1.1.27-src/jni/java/org/apache/tomcat/jni/socket/AprSocketContext.java 2012-10-27 01:33:31.000000000 +0400 | |
+++ tomcat-native-1.1.27-src-java6/jni/java/org/apache/tomcat/jni/socket/AprSocketContext.java 2013-06-06 13:04:22.535458514 +0400 | |
@@ -118,7 +118,7 @@ | |
/** | |
* Pollers. | |
*/ | |
- List<AprPoller> pollers = new ArrayList<>(); | |
+ List<AprPoller> pollers = new ArrayList<AprPoller>(); | |
static int pollerCnt = 0; |
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
@echo off | |
REM Makes incremental dump, reading previous state from dump log | |
set REPO=%1 | |
set LOG=%~n1.log | |
set DUMPBASE=%~n1 | |
set REV= | |
if "%REPO%"=="" echo Usage: %0 ^<repo^> && goto exit | |
if not exist %LOG% echo Starting from beginning of repo && set REV=1&& goto dump |
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/sh | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list | |
sudo apt-get update | |
sudo apt-get -y install mongodb-10gen | |
sudo service mongodb start | |
echo "use admin; db.addUser({ user: 'admin', pwd: '123', roles: [ 'userAdminAnyDatabase' ] });" | mongo | |
sudo service mongodb stop | |
echo "rest = true" | sudo tee /etc/mongodb.conf |
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 | |
# Downloads all .sh gists for user into $HOME/bin. | |
GUSER=`whoami` | |
GUSERN=$1 | |
if [ "$GUSERN" != "" ]; then | |
GUSER=$GUSERN | |
echo $GUSERN > $HOME/.gistuser | |
fi | |
if [ -f $HOME/.gistuser ]; then | |
GUSER=`cat $HOME/.gistuser` |
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/sh | |
# Synopsis: Copy all your public keys to remote host, enabling public key authentication on remote host | |
HOST=$1 | |
if [ "$HOST" = "" ]; then | |
echo Usage: $0 \<hostname\> | |
exit 1 | |
fi | |
for N in `ls $HOME/.ssh/id_*.pub`; do | |
ssh-copy-id -i $N $HOST | |
done |
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
diff --git a/apps/core/plugins/tools/Tools.php b/apps/core/plugins/tools/Tools.php | |
index 400db21..b24e3bf 100644 | |
--- a/apps/core/plugins/tools/Tools.php | |
+++ b/apps/core/plugins/tools/Tools.php | |
@@ -20,,7 +20,7 @@ namespace Kladr\Core\Plugins\Tools { | |
*/ | |
public static function Normalize($str){ | |
$str = preg_replace('/[^а-яА-Я0-9,]+/u', '', $str); | |
- $str = mb_strtolower($str); | |
+ $str = mb_strtolower($str, "UTF-8"); |
OlderNewer