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
# This is an annotated subset of the Nginx configuration from our Magento production platform @ www.hypernode.com | |
# See https://www.byte.nl/blog/magento-cacheleak-issue | |
# !!!! If you are a Hypernode customer, do not use this config as it will result in duplicate statements. !!!!! | |
user app; | |
worker_processes 4; | |
pid /var/run/nginx.pid; | |
events { |
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
""" | |
Kill Plex video transcoding streams only. All audio streams are left alone. | |
PlexPy > Settings > Notification Agents > Scripts > Bell icon: | |
[X] Notify on playback start | |
PlexPy > Settings > Notification Agents > Scripts > Gear icon: | |
Playback Start: kill_trans_exp_audio.py | |
""" |
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 | |
params=" -uroot -p" | |
echo ' - - - - - - - ' | |
echo 'DB Name : '$1 | |
echo 'Password: '$2 | |
# Create Database | |
echo ' - - - - - - - ' | |
echo 'CREATE DATABASE IF NOT EXISTS $1;' | |
# Grant Options (Creates User Automatically) | |
echo ' - - - - - - - ' |
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 | |
# Install script for Latest WordPress by Johnathan Williamson - extended by Don Gilbert | |
# Disclaimer: It might not bloody work | |
# Disclaimer 2: I'm not responsible for any screwups ... :) | |
# DB Variables | |
echo "MySQL Host:" | |
read mysqlhost | |
export mysqlhost |
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 | |
# | |
BACKUPDEST="$1" | |
DOMAIN="$2" | |
MAXBACKUPS="$3" | |
if [ -z "$BACKUPDEST" -o -z "$DOMAIN" ]; then | |
echo "Usage: ./vm-backup <backup-folder> <domain> [max-backups]" | |
exit 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
#!/usr/bin/env python | |
# | |
# tool to parse JFFS2 images | |
# and more importantly, guess the erase block size | |
# | |
# 2015.10.19 darell tan | |
# | |
from struct import unpack | |
from argparse import ArgumentParser |
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
frontend http-in-ext | |
bind 0.0.0.0:80 | |
bind 0.0.0.0:443 ssl crt /SSL/yourcert.pem | |
option forwardfor | |
reqrep (.*)/seamedia/(.*) \1/seahub/seamedia/\2 | |
acl path_seahub path_beg /seahub | |
acl path_seafile path_beg /seafhttp | |
#Force https |
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 -ur iscsitarget/kernel/conn.c iscsitarget.patched/kernel/conn.c | |
--- iscsitarget/kernel/conn.c 2015-05-05 18:11:24.000000000 +0000 | |
+++ iscsitarget.patched/kernel/conn.c 2015-05-05 18:01:40.000000000 +0000 | |
@@ -127,7 +127,7 @@ | |
dprintk(D_GENERIC, "%llu\n", (unsigned long long) session->sid); | |
- conn->sock = SOCKET_I(conn->file->f_dentry->d_inode); | |
+ conn->sock = SOCKET_I(conn->file->f_path.dentry->d_inode); | |
conn->sock->sk->sk_user_data = conn; |
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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 | |
# This script analyses the log files /var/log/auth.log* for | |
# illegal break-in attempts and writes all output to $logdir. | |
# <http://blog.philippklaus.de/2010/02/analyse-illegal-ssh-login-attempts/#comment-12211> | |
# inspired by <http://goo.gl/QMOhiU> | |
# and <http://filipivianna.blogspot.com/2009/10/checking-authlog-for-ssh-brute-force.html> | |
logbasedir=~/logs |
NewerOlder