Skip to content

Instantly share code, notes, and snippets.

Avatar

megax megaxorg

  • Germany
View GitHub Profile
@megaxorg
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>
<IfModule !mod_rewrite.c>
<IfModule mod_alias.c>
RedirectMatch 302 ^/$ /index.php/
View sublime-text-3-setup.md

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 Feb 11, 2022
PHP: CURL Requests with Tor
View PHP-CURL-Tor-Tutorial.md

#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 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
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";
$(this).attr("title","");
tooltip.html(title);
tooltip.stop(true,true).delay(50).fadeIn("slow").dequeue();