Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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 / 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 / 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 / 50limits.conf
Created August 2, 2013 19:24
[Debian 7] GateOne 1.2 50limits.conf
// This is an example of a limits.conf file. You'll need to create your own.
// The limits.conf file controls "how much" of any given feature or function a
// given user or group may utilize. The format of this file is JSON with
// support for JavaScript-style comments (they will be removed before parsing).
{
// "*" for default (all users)
"*": {
"terminal": { // This is the "application" i.e. whatever is passed to @require(policies("<applicati$
"max_terms": 50 // An absolute maximum
}
@wcypierre
wcypierre / ssh-chroot
Created August 2, 2013 08:20
[Debian7] ssh-chroot
#! /bin/sh
### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: OpenBSD Secure Shell server
### END INIT INFO
@wcypierre
wcypierre / debian_setup.sh
Last active December 20, 2015 13:09
[Debian 7] Chroot Setup
#!/bin/bash
# Made for Debian 7 with CLI
apt-get remove --purge apache2 xinetd samba bind bind9 -y;
apt-get update -y;
service apache2 stop;
rm /etc/init.d/apache2;
sleep 2;
apt-get install dialog -y;
dpkg-reconfigure locales;
apt-get install g++-4.7 g++-4.6 g++-4.4 g++ gcc clang -y;
@wcypierre
wcypierre / gist:6129784
Created August 1, 2013 09:15
[Debian7]Warning: Falling back to the standard locale ("C")
Type:
dpkg-reconfigure locales
scroll up/down by using up/down arrow and press space to select the locale and install it and its done