Skip to content

Instantly share code, notes, and snippets.

@asimzeeshan
asimzeeshan / pptpinstall.sh
Created September 28, 2012 11:06 — forked from ewangke/pptpinstall.sh
Install PPTP vpn server on Xen Ubuntu
#!/bin/bash
# Interactive PoPToP install script on a OpenVZ VPS
# Tested on Debian 5, 6, and Ubuntu 11.04
# 2011 v1.1
# Author: Commander Waffles
# http://www.putdispenserhere.com/pptp-debian-ubuntu-openvz-setup-script/
#
# Serverd by: Asim Zeeshan via Gist
# https://gist.github.com/3799210
@asimzeeshan
asimzeeshan / tab2spaces.sh
Created September 30, 2012 19:09
Eight Ways to Convert Tabs to Spaces
# Eight Ways to Convert Tabs to Spaces
# URL: http://mlawire.blogspot.com/2009/07/convert-tabs-to-spaces.html
# A collection of various ways to convert tabs to spaces in Unix/Linux with standard programs and utilities.
#1 expand/unexpand utilities
expand < input.txt > output.txt
#2 Sed
sed 's/\t/ /g' < input.txt > output.txt
@asimzeeshan
asimzeeshan / configure_sysinfo.sh
Created October 7, 2012 13:52
Configure MOTD / Sysinfo on ssh login
#!/bin/bash
# Show motd on Ubuntu only because no such utility exists on Debian at the moment
#
# Tested on Ubuntu 12.04
# Tested on Virtualization type: OpenVZ, KVM, XEN-PV
#
# By: Asim Zeeshan
# http://www.asim.pk/
apt-get clean all
@asimzeeshan
asimzeeshan / gist:3877343
Created October 12, 2012 04:42 — forked from telephone/gist:3869611
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Ubuntu)

General

Ctrl+KB toggle side bar
Ctrl+Shift+P command palette
Ctrl+` python console
Ctrl+N new file

Editing

@asimzeeshan
asimzeeshan / fix_locales.sh
Created October 31, 2012 11:53
[FIX] perl: warning: Setting locale failed
#!/bin/bash
# Fix the notorious problem that shows the following
#
# --------------------------------------------------------
# perl: warning: Setting locale failed.
# perl: warning: Please check that your locale settings:
# LANGUAGE = (unset),
# LC_ALL = (unset),
# LANG = "en_US.utf8"
# are supported and installed on your system.
@asimzeeshan
asimzeeshan / install_openvpn-as.sh
Created October 31, 2012 12:53
Install OpenVPN-AS on > Ubuntu 10 32bit
#!/bin/bash
# Install OpenVPN-AS Server
#
# Tested on Ubuntu 12.04 32bit
# Tested on Virtualization type: OpenVZ, XEN-PV and KVM
#
# By: Asim Zeeshan
# http://www.asim.pk/
#
# P.S. Some routines taken from LowEndBox/LowEndScript
@asimzeeshan
asimzeeshan / gist:3992414
Created November 1, 2012 08:06
FREE Codeweavers Crossover for Linux or Mac
FREE Codeweavers Crossover for Linux or Mac + 1 year paid support FREE
http://flock.codeweavers.com/
Essentially, CrossOver includes a heavily modified version of WINE that has a lot of extra (proprietary) code for
increased compatibility, a nice GUI, and support by Codeweavers, rather than just the WINE community. But in the
end, it's just an enhanced version of WINE. Programs which run in WINE will run in CrossOver (possibly better), and
programs which don't usually won't - but not always. A program which runs semi-ok in WINE might run perfectly in
CrossOver.
=================================================================================================================
@asimzeeshan
asimzeeshan / install_and_configure_logwatch.sh
Created November 3, 2012 09:14
Installs and configures logwatch (debian based systems)
#!/bin/bash
# Install and configure logwatch
#
# Tested on Ubuntu 12.04
# Tested on Virtualization type: OpenVZ, KVM, XEN-PV
#
# By: Asim Zeeshan
# http://www.asim.pk/
#
# Helpful hints from
@asimzeeshan
asimzeeshan / install_utorrent.sh
Created November 3, 2012 13:50
Install uTorrent on Debian based distributions
#!/bin/bash
# Install and configure utorrent (http://www.utorrent.com/) for Ubuntu Linux
#
# Tested on Ubuntu 12.04
# Tested on Virtualization type: OpenVZ, KVM
#
# By: Asim Zeeshan
# http://www.asim.pk/
#
# -----------------------------------------------------
@asimzeeshan
asimzeeshan / install_vnc.sh
Created November 4, 2012 09:22
Install VNC w/ GNOME on Debian VPS
#!/bin/bash
# Install and configure VNC for Ubuntu Linux
#
# Tested on Ubuntu 12.04
# Tested on Virtualization type: OpenVZ, KVM
#
# Script by: Asim Zeeshan
# http://www.asim.pk/
#
# Original Posted by VPS6.NET (https://vps6.net)