A Pen by Gabriele Romanato on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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/ |
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 fullNow, create a torrent file
ctorrent -t -u "YOUR_SERVER_IP:6969/announce" -s new_file_name.torrent file_or_folder_for_torrent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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.", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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 | |
| ------------------------------------------------------------------------------------------------------------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| 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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |