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
# Accompanies this blog post: | |
# http://www.seomoz.org/blog/htaccess-file-snippets-for-seos | |
# NOTE: This file isn't designed to be used all together, some of the rules will conflict, | |
# it is meant more as a copy and paste board. | |
# IMPORTANT: Make sure you test .htaccess changes thoroughly, as it can be easy to make mistakes | |
# and then you end up in a bad place! | |
RewriteEngine On |
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
<?php | |
// REQUIRED PARAMETERS | |
$status = 'http://www.mylink.com'; | |
$email = 'your@email.com'; | |
$pass = 'yourpassw0rd'; |
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
This is a method to using your Ubuntu 12.04 server without the Unity desktop on a very fast remote desktop program. This is by far the best method to managing your Ubuntu server if you like GUI. | |
apt-get install --no-install-recommends ubuntu-desktop | |
apt-get --yes purge unity unity-2d unity-2d-places unity-2d-panel unity-2d-spread | |
apt-get --yes purge unity-asset-pool unity-services unity-lens-* unity-scope-* | |
apt-get --yes purge liboverlay-scrollbar* | |
apt-get --yes purge appmenu-gtk appmenu-gtk3 appmenu-qt | |
apt-get --yes purge firefox-globalmenu thunderbird-globalmenu | |
apt-get --yes purge unity-2d-common unity-common | |
apt-get --yes purge libunity-misc4 libunity-core-5* |
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
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<opml version="1.1"> | |
<head> | |
<title> wordpress </title> | |
</head> | |
<body> | |
<outline text="alabama" version="RSS" xmlUrl="http://alabama.backpage.com/online/exports/Rss.xml?keyword=seo§ion=4373" htmlUrl="alabama.backpage.com/employment/?keyword=seo" /> | |
<outline text="alaska" version="RSS" xmlUrl="http://alaska.backpage.com/online/exports/Rss.xml?keyword=seo§ion=4373" htmlUrl="alaska.backpage.com/employment/?keyword=seo" /> | |
<outline text="arizona" version="RSS" xmlUrl="http://arizona.backpage.com/online/exports/Rss.xml?keyword=seo§ion=4373" htmlUrl="arizona.backpage.com/employment/?keyword=seo" /> | |
<outline text="arkansas" version="RSS" xmlUrl="http://arkansas.backpage.com/online/exports/Rss.xml?keyword=seo§ion=4373" htmlUrl="arkansas.backpage.com/employment/?keyword=seo" /> |
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
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<opml version="1.1"> | |
<head> | |
<title>Backpage Jobs for "keyword"</title> | |
<description>Just find and replace "keyword", import into Google Reader and start your job hunt!</description> | |
</head> | |
<body> | |
<outline text="alabama" version="RSS" xmlUrl="http://alabama.backpage.com/online/exports/Rss.xml?keyword=seo§ion=4373" htmlUrl="alabama.backpage.com/employment/?keyword=seo" /> | |
<outline text="alaska" version="RSS" xmlUrl="http://alaska.backpage.com/online/exports/Rss.xml?keyword=seo§ion=4373" htmlUrl="alaska.backpage.com/employment/?keyword=seo" /> | |
<outline text="arizona" version="RSS" xmlUrl="http://arizona.backpage.com/online/exports/Rss.xml?keyword=seo§ion=4373" htmlUrl="arizona.backpage.com/employment/?keyword=seo" /> |
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
<?php | |
/* | |
* | |
* Plugin Name: Google News Parser | |
* Plugin URI: http://zachbrowne.com | |
* Description: Imports news from Google and creates posts for them. For information regarding this | |
* plugin, please contact the developer: <strong>zachbrowne@gmail.com</strong> | |
* Version: 1.0 | |
* Author: Zach Browne |
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
apt update; apt -y upgrade; apt -y install sudo nano wget curl git build-essential software-properties-common dnsutils |
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
I solved this on 12.10 by editing /etc/gai.conf and uncommenting the line: | |
# | |
# For sites which prefer IPv4 connections change the last line to | |
# | |
precedence ::ffff:0:0/96 100 | |
# Problems in Fedora | |
touch /etc/modprobe.d/disableipv6.conf |
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 | |
echo 'Checking for a new Java Version...' | |
kern_arch=$(uname -r | sed 's/.*-\(.*\)/\1/') | |
if [ "$kern_arch" = amd64 ]; then | |
java_ver=' x64' | |
fi | |
current_version=$(java -version 2>&1 >/dev/null | sed -n '1s/.*"\([^"]*\)"/\1/p') | |
latest_version_url=$(curl https://www.java.com/en/download/manual.jsp 2>/dev/null | grep -Po -m 1 "href=\"\K[^\"]*(?=.*Linux${java_ver} en JRE)" | |
) | |
latest_version=$(curl $latest_version_url 2>/dev/null | sed -n 's/.*File=jre-\([0-9]\)u\([0-9]\{2\}\).*/1.\1.0_\2/p') |
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
sudo apt update && sudo apt -y upgrade | |
sudo apt install software-properties-common python-software-properties | |
sudo apt update | |
sudo apt-add-repository -y ppa:x2go/stable ppa:freenx-team/ppa ppa:ubuntu-mate-dev/ppa ppa:ubuntu-mate-dev/trusty-mate | |
sudo apt update | |
sudo apt install install gnome-session-fallback mate-desktop-environment-extras freenx freenx-server | |
# download the installation script | |
wget https://bugs.launchpad.net/freenx-server/+bug/576359/+attachment/1378450/+files/nxsetup.tar.gz | |