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
sudo touch /var/log/mongodb.log | |
sudo nano /Library/LaunchDaemons/org.mongo.mongod.plist | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.mongo.mongod</string> | |
<key>RunAtLoad</key> |
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
/sbin/iptables -A INPUT -s 0.0.0.0/8 -j DROP | |
/sbin/iptables -A INPUT -s 1.0.0.0/8 -j DROP | |
/sbin/iptables -A INPUT -s 3.0.0.0/8 -j DROP | |
/sbin/iptables -A INPUT -s 4.0.0.0/8 -j DROP | |
/sbin/iptables -A INPUT -s 6.0.0.0/8 -j DROP | |
/sbin/iptables -A INPUT -s 7.0.0.0/8 -j DROP | |
/sbin/iptables -A INPUT -s 8.0.0.0/8 -j DROP | |
/sbin/iptables -A INPUT -s 9.0.0.0/8 -j DROP | |
/sbin/iptables -A INPUT -s 10.0.0.0/8 -j DROP | |
/sbin/iptables -A INPUT -s 11.0.0.0/8 -j DROP |
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
Name: bgpq3 | |
Version: 0.1.18 | |
Release: 2%{?dist} | |
Group: System/Utilities | |
Summary: Automate BGP filter generation based on routing database information | |
URL: http://snar.spb.ru/prog/bgpq3/ | |
License: GPL | |
Source0: http://snar.spb.ru/prog/bgpq3/bgpq3-0.1.18.tgz | |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
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
# MIB2YAML converts MIB files to YAML files for the Ruby SNMP library with support for imports | |
# | |
# The code is heavily based on http://snmplib.rubyforge.org/, the only addition is the "find imports" block | |
require 'rubygems' | |
require 'fileutils' | |
require 'yaml' | |
module MIB2YAML | |
def MIB2YAML.convert(module_file, mib_dir = '.') |
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 ruby | |
require 'OpenSSL' | |
require 'timeout' | |
require 'socket' | |
require 'pp' | |
hostname = "secure.assets.tumblr.com" | |
def verify_ssl_certificate(preverify_ok, ssl_context) |
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
import asyncore | |
from smtpd import SMTPServer | |
import smtplib | |
import email | |
class EmlToTorServer(SMTPServer): | |
no = 0 | |
def process_message(self, peer, mailfrom, rcpttos, data): | |
torrcpttos = [] |
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 | |
from soco import SoCo | |
import requests | |
from pprint import pprint | |
pl = requests.get("http://22tracks.com/api/tracks/20") | |
playlist = pl.json() | |
file = playlist[0]['filename'] |
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 | |
import soco | |
import requests | |
from pprint import pprint | |
playlistnr = 20 | |
path = 128 | |
def get_playlist(playlistnr): | |
pl = requests.get("http://22tracks.com/api/tracks/%s" % playlistnr) |
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 ruby | |
require 'digest/sha1' | |
require 'httparty' | |
require 'pp' | |
api_key = '0bf62365d36d6114ea546e47f3d0c9ecf57c2de9' | |
customer_number = '140760000' | |
class LeasewebCDN |
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
#Generated by Kickstart Configurator | |
#platform=x86 | |
# Fetch content from here | |
url –url http://nl.archive.ubuntu.com/ubuntu/ | |
#System language | |
lang en_US.UTF-8 | |
#Language modules to install |
OlderNewer