Skip to content

Instantly share code, notes, and snippets.

@pmfx
pmfx / evoSystemInfo.php
Last active February 4, 2019 09:03
Snippet for EVO/MODX Evolution displaying system info and some actions on the frontend. Similar to Quick Manager+
<?php
// evoSystemInfo 1.3
// Snippet displaying EVO system info and some actions on the frontend.
// Call it uncached [!evoSystemInfo!] before </body> tag in your template.
// Dark theme: [!evoSystemInfo? &theme=`dark`!] (EVO 1.4.4 or later required)
// author: Piotr Matysiak webready.pl
if ( isset($_SESSION['mgrValidated']) ) {
$docId = $modx->documentIdentifier;
$docTemplateId = $modx->documentObject['template'];
@lsloan
lsloan / List GitHub Projects Using jQuery
Last active February 6, 2020 16:06 — forked from tantalor/github.jquery.js
An example JavaScript program using jQuery to get a list of GitHub projects.
Gist title: "List GitHub Projects Using jQuery"
Summary: An example JavaScript program using jQuery to get a list of GitHub projects.
Original source: http://aboutcode.net/2010/11/11/list-github-projects-using-javascript.html
@Fi1osof
Fi1osof / wp_import.php
Last active February 10, 2023 18:51 — forked from zorgsoft/wp_import.php
<?php
/*
* WP Import, Ver 2015.01.04
* (C) 2015 by ZoRg Soft
* MODx Notes - WP Import модуь для импорта записей из Wordpress
* http://agarkov.org/modx-x/evo-wpimport
*/
$theme = $modx->config['manager_theme'];
$basePath = $modx->config['base_path'];
@zorgsoft
zorgsoft / wp_import.php
Last active May 27, 2022 08:15
MODx Evo module for import posts from Wordpress
<?php
/*
* WP Import, Ver 2015.01.04
* (C) 2015 by ZoRg Soft
* MODx Notes - WP Import модуь для импорта записей из Wordpress
* http://agarkov.org/modx-x/evo-wpimport
*/
$theme = $modx->config['manager_theme'];
$basePath = $modx->config['base_path'];
@barryvdh
barryvdh / carousel.js
Last active March 21, 2024 01:10
Bootstrap Carousel, with jQuery fallback for Internet Explorer (To have sliding images)
@aklump
aklump / jquery.iframe_to_div.js
Last active May 30, 2019 16:55
A jQuery plugin to replace iframes with divs containing their source by loading via ajax. Benefits use parent page's css and have an auto height to your iframe.
/**
* Convert iframes to divs via ajax iframe_to_div jQuery Plugin
*
* Uses javascript to replace iframes with divs containing their source content
* by loading via ajax. If you use this to load vanilla html snippets, this has the
* effect of applying the page's css to your vanilla html snippet.
*
* This will not work if the iframe src is not a relative link due to ajax restrictions across domains.
*
* As an example:
@AgelxNash
AgelxNash / antihacker.plugin.php
Last active February 5, 2016 11:53
[EVO] Anti Hacker v.1.4
//<?
/**
* BAH - (Anti Hacker) created By Bumkaka
* modify by Agel_Nash
*
* @category plugin
* @version v 1.4
* @internal @events OnWebPageInit
* @internal @legacy_names BAH
* @internal @installset base, sample
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/