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
#!/bin/sh | |
# | |
# A hammer to fix group permissions on Plesk vhosts. | |
# | |
# Plesk creates httpdocs directories with correct permissions initially, | |
# and they work properly over FTP (sort of), however, they require special | |
# love to let Apache write to them; namely putting Apache in the psacln | |
# group, making sure that everyone's httpdocs are owned by that group, | |
# and setting the setgid bit on httpdocs and all of its subdirectories | |
# so that new directories created by Apache inherit the proper permissions |
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 | |
# -*- coding: utf-8 -*- | |
from rauth.service import OAuth1Service | |
# Create consumer key & secret in your Magento Admin interface | |
# For an API Guideline see: | |
# http://www.magentocommerce.com/api/rest/authentication/oauth_authentication.html | |
# | |
# Short Magento setup explanation: |
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
#!/bin/bash | |
kernelversion=$(uname -r) | |
kernelminversion=${kernelversion%-*} | |
latestkernelversion=$(dpkg -l | awk '/linux-image-[0-9]/ {print $2}' | sort | tail -1 | grep -o '[0-9][0-9\.-]*[0-9]') | |
packages_to_remove=$(dpkg -l | awk '/linux-(image|headers)-[0-9]/ {print $2}' | egrep -v "${kernelminversion}|${latestkernelversion}") | |
[[ -z "${packages_to_remove}" ]] || dpkg -P ${packages_to_remove} |