Skip to content

Instantly share code, notes, and snippets.

<?php
/* Merge multiple RSS feeds with SimplePie
*
* Just modify the path to SimplePie and
* modify the $feeds array with the feeds you want
*
* You should probably also change the channel title, link and description,
* plus I added a CC license you may not want
*
* Help from: http://www.webmaster-source.com/2007/08/06/merging-rss-feeds-with-simplepie/
@bugsysop
bugsysop / Pure JavaScript Flickr gallery.markdown
Created October 22, 2015 06:17
Pure JavaScript Flickr gallery
@bugsysop
bugsysop / PrivateTorrent.md
Created March 28, 2016 15:16 — forked from sourcec0de/PrivateTorrent.md
Host a private torrent tracker, and seed a torrent on ubuntu 12.10

Install dep, and start tracker

sudo apt-get install bittornado ctorrent
bttrack --port 6969 --dfile ~/.bttrack/dstate --logfile ~/.bttrack/tracker.log --nat_check 0 --scrape_allowed full

Now, create a torrent file

ctorrent -t -u "YOUR_SERVER_IP:6969/announce" -s new_file_name.torrent file_or_folder_for_torrent
@bugsysop
bugsysop / translations.php
Created July 16, 2016 06:57
Translation file for the "pagelock" Kirby CMS plugin - https://github.com/pedroborges/kirby-pagelock
<?php
return [
"de" => [
"editing" => "<strong>%s</strong> bearbeitet diese Seite gerade.",
"stay" => "Sie werden auf dieser Seite benachrichtigt sobald die Bearbeitung wieder möglich ist.",
],
"en" => [
"editing" => "<strong>%s</strong> is editing this page.",
"stay" => "Stay here to be notified when it's your turn.",
@bugsysop
bugsysop / from.php
Created August 8, 2016 05:34 — forked from judbd/from.php
<?php
/*
CREDITS & LICENCE
------------------------------------------------------------------------------------------------------------------------------
Made by Julien Dubedout / judbd.com
Released under Do What the Fuck You Want to Public License. https://en.wikipedia.org/wiki/WTFPL
PURPOSE
------------------------------------------------------------------------------------------------------------------------------
# see https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/
# core
brew install coreutils
# key commands
brew install binutils
brew install diffutils
brew install ed --default-names
brew install findutils --with-default-names
<!--
site/templates/search.php
Source : https://forum.getkirby.com/t/search-templates/5323/12
-->
<?php snippet('header') ?>
<div class="text">
<?php if($results): ?>
<?php foreach($results as $result): ?>
<div class="text">
@bugsysop
bugsysop / ifttt-instagram-to-blog.php
Created September 26, 2016 05:14 — forked from bastianallgeier/ifttt-instagram-to-blog.php
IFTTT Make channel action to create blog post from new post on Instagram
<?php
/* if this script is located in your document root… */
require(__DIR__ . '/kirby/bootstrap.php');
if(get('params')) {
$articles = page('blog')->children();
$sort = ($articles->count() + 1);
$date = date('Y-m-d');
@bugsysop
bugsysop / convertnotes.rb
Created August 24, 2017 05:33 — forked from etc/convertnotes.rb
A small script to convert WP-Footnotes style footnotes to PHP Markdown Extra style footnotes.
#!/usr/bin/env ruby
# A small script to convert WP-Footnotes style footnotes to PHP Markdown Extra
# style footnotes.
#
# Possibly useful for those who are migrating from Wordpress to Jekyll, were
# using WP-Footnotes, and wish to render their new Markdown pages with Kramdown
# (which supports PHP Markdown Extra style footnotes).
#
# For example, you might first run https://github.com/thomasf/exitwp and then run
@bugsysop
bugsysop / column-count-layout.markdown
Created October 8, 2017 09:19
Column Count Layout