Skip to content

Instantly share code, notes, and snippets.

@kwlzn
kwlzn / Makefile
Created May 6, 2014 00:37
uWSGI + pex Makefile
PYTHON := python2.6
BUILD_DIR := buildtmp
AURORA_CLUSTER := test
AURORA_ROLE := $(shell whoami)
UWSGI_VER = 2.0.4
UWSGI_DIR = uwsgi-$(UWSGI_VER)
UWSGI_FILE = $(UWSGI_DIR).tar.gz
UWSGI_URL = http://projects.unbit.it/downloads/$(UWSGI_FILE)
@jbweber
jbweber / aptly.sh
Created December 4, 2014 05:24
aptly script
#!/bin/bash
#
# Copyright 2014 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
# Authored by Yazz D. Atlas <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
#!/bin/bash
#
# see https://stribika.github.io/2015/01/04/secure-secure-shell.html
SSHD_VERSION=`/usr/sbin/sshd -v 2>&1 | grep OpenSSH | cut -d " " -f1 | cut -d "_" -f2 | cut -d"." -f2 | cut -d"p" -f1`
cat /etc/ssh/sshd_config | grep -v "KexAlgorithms" | grep -v "Ciphers" | grep -v "MACs" | grep -v "github.com" > /etc/ssh/sshd_config.new
cat /etc/ssh/ssh_config | grep -v "KexAlgorithms" | grep -v "Ciphers" | grep -v "MACs" | grep -v "github.com" > /etc/ssh/ssh_config.new
if [ "${SSHD_VERSION}" != "0" ]; then
# better algorithms only available on newer OpenSSH versions
echo "KexAlgorithms [email protected],diffie-hellman-group-exchange-sha256" >> /etc/ssh/sshd_config.new
@pjbriggs
pjbriggs / proftpd.conf-extract
Last active January 19, 2016 05:23
Extract from proftpd.conf for handling SHA1 and PBKDF2 encryption
ServerName "Galaxy FTP File Upload"
ServerType standalone
DefaultServer on
PidFile /var/run/proftpd/proftpd-galaxy.pid
# Port 21 is the standard FTP port.
Port 21
# Don't use IPv6 support by default.
UseIPv6 off
@GambitK
GambitK / zabbix_agent_installation.ps1
Created January 24, 2018 15:25
Zabbix powershell remote script
# ===========================================================================================
#
# NAME: Zabbix_InstallAgent.ps1
#
# AUTHOR: Pierre-Emmanuel Turcotte,
# DATE : 2012-11-05
#
# COMMENT: Remote installation of Zabbix agent from central location.
#
# The zabbix source folder is a folder containing subfolder corresponding to the