Skip to content

Instantly share code, notes, and snippets.

@Omega9
Omega9 / vulpes-nord.json
Created August 4, 2021 19:36
Vulpes Nord theme for Pleroma
{
"_pleroma_theme_version": 2,
"theme": {
"themeEngineVersion": 3,
"shadows": {
"panel": [
{
"color": "#000000",
"x": 0,
"y": "10",
@dkebler
dkebler / hugo-update.sh
Created September 26, 2020 16:20
Hugo Release Update Script - supports extended version
#!/bin/bash
# Version 0.21.0 8:26 PST, Nov 9, 2018
# inspried from this forum post https://discourse.gohugo.io/t/script-to-install-latest-hugo-release-on-macos-and-ubuntu/14774/10
# if you have run into github api anonymous access limits which happens during debugging/dev then add user and token here or sourced from a separate file
# . ~/githubapitoken
#GITHUB_USER=""
#GITHUB_TOKEN=""
if [ "$GITHUB_TOKEN" != "" ]; then
echo using access token with script
@eddiewebb
eddiewebb / readme.md
Last active June 24, 2024 02:21
Hugo JS Searching with Fuse.js
@claus
claus / ipfs-server-setup.md
Last active May 9, 2023 03:51
Host Your Site Under Your Domain on IPFS

Host Your Site Under Your Domain on IPFS

This is a step-by-step tutorial for hosting your website under your domain on IPFS, from zero, on a DigitalOcean Ubuntu 16.04.3 x64 Droplet (i am using the $10 variant with 2GB RAM).

Install IPFS

Log in as root.

First, make sure the system is up to date, and install tar and wget:

@bastianallgeier
bastianallgeier / ifttt-instagram-to-blog.php
Last active July 21, 2017 06:59 — forked from brendandawes/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');
@brendandawes
brendandawes / ifttt-instagram-to-blog.php
Created July 28, 2016 08:22
IFTTT Make channel action to create blog post from new post on Instagram
<?php
/*
Action to create a blog post entry in my Kirby powered site via an IFTTT recipe. In IFTTT I have a an Instagram trigger that calls
this script, sending a POST using the Maake channel with this body: params={{EmbedCode}}&caption=<<<{{CaptionNoTag}}>>>
*/
if((isset($_POST['params']))){
$subject = urldecode($_POST['caption']);
<?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
------------------------------------------------------------------------------------------------------------------------------
@bastianallgeier
bastianallgeier / mywidget.php
Created March 9, 2015 10:54
Most basic widget setup for panel widgets. You would put those two files in /site/widgets/mywidget/
<?php
return array(
'title' => 'Widget Title',
'html' => function() {
// any data for the template
$data = array();
return tpl::load(__DIR__ . DS . 'template.php', $data);
}
);
@bugsysop
bugsysop / kirby-statify.php
Last active March 19, 2017 03:15 — forked from bastianallgeier/statify.php
A first draft for a script, which converts a Kirby site into a static site. It's a rough first draft, so don't expect it to be perfect. Play with it, if you like it!
<?php
/**
* Instructions:
*
* 1. Put this into the document root of your Kirby site
* 2. Make sure to setup the base url for your site correctly
* 3. Run this script with `php statify.php` or open it in your browser
* 4. Upload all files and folders from static to your server
* 5. Test your site