Skip to content

Instantly share code, notes, and snippets.


megax megaxorg

  • Germany
View GitHub Profile
megaxorg / Tooltip
Created Mar 25, 2013
<a href="#" class="tooltip" title="Content of the tooltip"> Style with #tooltip
View Tooltip
function tooltip(obj) {
if (!obj.length) return;
$("body").append('<div id="tooltip" />');
var tooltip = $("#tooltip");
var title;
obj.hover(function() {
title = $(this).attr("title") ? $(this).attr("title") : "No Title";
megaxorg / sxss-featured-feed.php
Last active Nov 11, 2016
Display images from your post in the RSS Feed. Checks for featured images and images in the post content.
View sxss-featured-feed.php
megaxorg /
Last active Feb 11, 2022
PHP: CURL Requests with Tor

#CURL Connections with Tor

Install Apache, PHP, CURL & Tor with apt-get

sudo apt-get install -y apache2 php5 php5-curl tor

Tor creates a proxy on your mashine with port 9050 for SOCKS5 connections.


Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
megaxorg / .htaccess
Created Jun 21, 2019 — forked from Guibzs/.htaccess
Symfony 4 ~ .htaccess
View .htaccess
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
<IfModule !mod_rewrite.c>
<IfModule mod_alias.c>
RedirectMatch 302 ^/$ /index.php/