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
# Drop ICMP echo-request messages sent to broadcast or multicast addresses | |
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts | |
# Drop source routed packets | |
echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route | |
# Enable TCP SYN cookie protection from SYN floods | |
echo 1 > /proc/sys/net/ipv4/tcp_syncookies | |
# Don't accept ICMP redirect messages |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<zabbix_export version="1.0" date="19.10.10" time="17.35"> | |
<hosts> | |
<host name="Template_MongoDB"> | |
<proxy_hostid>0</proxy_hostid> | |
<useip>1</useip> | |
<dns></dns> | |
<ip>127.0.0.1</ip> | |
<port>10050</port> | |
<status>3</status> |
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
from pymongo.cursor import Cursor | |
from pymongo.connection import Connection | |
from pymongo.errors import AutoReconnect | |
import pymongo | |
import time | |
import functools | |
import logging | |
MAX_AUTO_RECONNECT_ATTEMPTS = 5 |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<!-- See http://www.alwaysgoingnorth.com/exclude-your-visits-from-google-analytics-even-if-you-have-a-dynamic-ip/ for how to use this --> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
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
Environment: | |
Request Method: GET | |
Request URL: http://d01.apptend.com/m/pages | |
Django Version: 1.3 | |
Python Version: 2.7.1 | |
Installed Applications: | |
['django.contrib.auth', |
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
function jqmSimpleMessageRemove(dialogID) { | |
/* optionally call this function to destroy a window made with jqmSimpleMessage | |
* especially useful if your timeout val is long and the window is shown modally | |
*/ | |
var dialog = $('#' + dialogID); | |
if(!dialog) | |
return; | |
if(dialog.attr('_type') == 'modal') { |