Skip to content

Instantly share code, notes, and snippets.

@wcypierre
wcypierre / ssh_connect.py
Created August 3, 2013 08:39
[GateOne] ssh_connect.py set it to use a predefined ip and port
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2013 Liftoff Software Corporation
#
# TODO: Make it so that a username can have an @ sign in it.
__doc__ = """\
ssh_connect.py - Opens an interactive SSH session with the given arguments and
@wcypierre
wcypierre / sendmail-whois-lines.conf
Created August 3, 2013 09:34
[Debian 7] sendmail-whois-lines.conf
# /etc/fail2ban/action.d/sendmail-whois-lines.conf
# Fail2Ban configuration file
#
# Author: Cyril Jaquier
#
# $Revision$
#
[Definition]
@wcypierre
wcypierre / jail.conf
Created August 3, 2013 09:40
[Fail2ban] /etc/fail2ban/jail.conf
# /etc/fail2ban/jail.conf
# Fail2Ban configuration file.
#
# This file was composed for Debian systems from the original one
# provided now under /usr/share/doc/fail2ban/examples/jail.conf
# for additional examples.
#
# To avoid merges during upgrades DO NOT MODIFY THIS FILE
# and rather provide your changes in /etc/fail2ban/jail.local
#
@wcypierre
wcypierre / default
Last active December 20, 2015 14:28
[SaaS] Nginx default
# /etc/nginx/sites-available/default
# You may add here your
# server {
# ...
# }
# statements for each of your virtual hosts to this file
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
@wcypierre
wcypierre / gist:6149402
Last active December 20, 2015 14:49
Issues
seafile needs to be installed with:
- SSL
- Email setup(for forgot password, user cannot register for themselves as I need to setup the quota manually)
@wcypierre
wcypierre / Cheap VPS Plans
Last active February 25, 2017 13:51
Cheap VPS plans with >1gb of RAM
OpenVZ:
https://my.iniz.com/cart.php?a=add&pid=88&currency=2&billingcycle=annually
$31.00/year
4 vCPU Cores
1024MB RAM / 512MB vSwap
50GB Diskspace
500GB @ 1Gbps
OpenVZ/SolusVM
http://www.lowendbox.com/blog/bandwagon-host-10year-512mb-openvz-vps-in-arizona-new-york-germany/
@wcypierre
wcypierre / vps_requirement.txt
Last active December 20, 2015 14:59
Personal VPS Requirement
>= 1gb of guaranteed RAM(with at least 512mb vSwap)
>= 30gb of storage
dd I/O test must be >= 150mb/s for HDD, 250mb/s for SSD cached and 700mb/s for pure SSD
Seattle or LA(or anywhere with ping <= 230ms)
>= 100mbps
Max budget: $60/year
OpenVZ
Reasonable cpu load(preferably won't suspend me if load is > 1.0 but <= 1.25)

Backup/Sync services

Requirements:

  • support Linux
  • client side encryption (open source client code)
  • deduplication
@wcypierre
wcypierre / gist:6161067
Created August 6, 2013 00:51
Cheap VPS Plans[less than $15]
http://lowendstock.com/
@wcypierre
wcypierre / drop.conf
Created August 6, 2013 04:18
Nginx - Ajaxplorer drop.conf
location = /conf/ { deny all; }
location = /data/ { deny all; }
location = /robots.txt { access_log off; log_not_found off; }
location = /favicon.ico { access_log off; log_not_found off; }
location ~ /\. { access_log off; log_not_found off; deny all; }
location ~ ~$ { access_log off; log_not_found off; deny all; }