Skip to content

Instantly share code, notes, and snippets.

View megaxorg's full-sized avatar

megax megaxorg

  • Germany
View GitHub Profile
megaxorg / .htaccess
Created June 21, 2019 07:45 — forked from Guibzs/.htaccess
Symfony 4 ~ .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/
megaxorg /
Created September 8, 2017 06:07 — forked from ijy/
My Sublime Text 3 setup.

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 /
Last active December 2, 2022 20:23
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.

megaxorg / sxss-featured-feed.php
Last active November 11, 2016 02:47
Display images from your post in the RSS Feed. Checks for featured images and images in the post content.
megaxorg / Tooltip
Created March 25, 2013 12:13
<a href="#" class="tooltip" title="Content of the tooltip"> Style with #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";