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
wget 'http://www-eu.apache.org/dist/tomcat/tomcat-connectors/native/1.2.14/source/tomcat-native-1.2.14-src.tar.gz' | |
tar xzf tomcat-native-1.2.14-src.tar.gz | |
cd tomcat-native-1.2.14-src/native | |
apt install libapr1-dev libssl-dev gcc make | |
./configure && make && make install | |
Add to /usr/local/tomcat/bin/setenv.sh: | |
export CATALINA_OPTS="$CATALINA_OPTS -Djava.library.path=$PATH:/usr/local/apr/lib/" | |
On a mac: brew install libtcnative. Then add to $tomcat/bin/setenv.sh CATALINA_OPTS="$CATALINA_OPTS -Djava.library.path=/usr/local/opt/tomcat-native/lib" |
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
Plex has some ids per server that should be unique per plex server. If you clone a Plex setup (e.g. via settin up a new mac with a timemachine backup from another Plex server) you need to manually change some values. | |
For Windows it would be like: | |
https://forums.plex.tv/discussion/comment/1170859/#Comment_1170859 | |
On a Mac you can use the defaults command. | |
Show the values: | |
# defaults read com.plexapp.plexmediaserver |
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
Bug per https://bugs.eclipse.org/bugs/show_bug.cgi?id=527275#c1 | |
Pre-format: | |
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
<%String foo = "foo"; %> | |
<script type="text/javascript"> | |
var hss = '<%=foo%>'; | |
</script> |
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
Older distro (e.g. lenny) and newer kernel may result in this when ssh-ing in: | |
PTY allocation request failed on channel 0 | |
You can run ssh $serverip 'bash -i' to get one off access. | |
You can 'fix' things with: | |
ssh $server 'echo "none /dev/pts devpts gid=5,mode=620 0 0" >> /etc/fstab; mount /dev/pts; cat /etc/fstab' |
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
java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlRootElement | |
=> | |
--add-modules java.xml.bind | |
-Djava.endorsed.dirs=/usr/local/tomcat/endorsed is not supported. Endorsed standards and standalone APIs | |
in modular form will be supported via the concept of upgradeable modules. | |
Error: Could not create the Java Virtual Machine. | |
=> | |
root@ri:/usr/local/tomcat# find . | grep endors | |
./endorsed |
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 | |
# Copyright 2018 Peter Bryant | |
# Licensed as https://www.apache.org/licenses/LICENSE-2.0 | |
[ ! -z "$1" ] && [ "$1" != "--drop" ] && cat << EOJ && exit 0 | |
Create a folders (SPAM_FOLDER=${SPAM_FOLDER:-unset} variable). Load it up with spam. | |
This script searches spam folders to find IP subnets (/24s) that have a sent a good amount of spam. | |
Output commands to move those away and to block those IP ranges. |
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
openssl s_client -connect $ip:110 -starttls pop3 | |
openssl s_client -connect $ip:465 | openssl x509 -text |
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
apt-get install opendkim | |
/etc/opendkim.conf use settings like: | |
Domain domainname.com | |
Selector mail | |
# sign, no need to verify | |
Mode s | |
# rsa private key | |
KeyFile /etc/ssl/private/dkimproxy.key | |
Socket inet:8892@localhost |
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
PDU3EVN10L2130 | |
PDU3EVN6L2130 | |
10,6 = cord length in feet (freedom units) | |
PDU3EVN10L2130 | |
PDU3EVN6L2130 | |
PDUMNH20HV | |
PDU3 = three phase, PDU = single | |
PDUV30 |
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 | |
# | |
# Copyright Rimuhosting.com | |
function usage { | |
echo " | |
$0 Creates a backup of a Linux server. It has options to let you download that via http (else you can scp it from the source). It has options to encrypt the backup file (e.g. via openssl or zip). | |
Usage: $0 | |
--encrypt openssl (default if using --http) | zip (not so secure) | none (default if not using --http) |
OlderNewer