Skip to content

Instantly share code, notes, and snippets.

View megaxorg's full-sized avatar

megax megaxorg

  • Germany
View GitHub Profile
@megaxorg
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>
<IfModule !mod_rewrite.c>
<IfModule mod_alias.c>
RedirectMatch 302 ^/$ /index.php/
@megaxorg
megaxorg / sublime-text-3-setup.md
Created September 8, 2017 06:07 — forked from ijy/sublime-text-3-setup.md
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
megaxorg / PHP-CURL-Tor-Tutorial.md
Last active August 15, 2024 09:55
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
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
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";
$(this).attr("title","");
tooltip.html(title);
tooltip.stop(true,true).delay(50).fadeIn("slow").dequeue();