This file contains 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
"use strict"; | |
const querystring = require("querystring"); | |
const axios = require("axios"); | |
let jsonData = require("./strapiOutput.json"); | |
async function upload() { | |
const articles = jsonData.map((category) => { | |
category.articles.map((article) => { | |
console.log(article.title); | |
axios.post( |
This file contains 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
body{background-color:#24292e;color:#eee}#logo,.main-nav-link,a.article-title,p,#page-nav a,.archive-article-title,#main-nav-toggle,.article-entry,.article-toc li a,.tag-cloud a,.article-footer a:hover{color:#eee}a.article-title:hover,a.article-date:hover,a.archive-article-title:hover,#footer a:hover,#page-nav>a:hover,.tag-cloud a:hover,a:hover{border-bottom-color:#eee}.article-entry a{border-bottom:none}.article-entry a:hover{border-bottom:1px dotted #00b6e5}#page-nav .current{background-color:#00b6e5}a,.article-entry a,.article-more-link a,#footer-info a{color:#00b6e5}.article-nav-link-wrap{text-shadow:0 1px #222;color:#00b6e5;text-align:center}.article-nav-link-wrap:hover{color:#eee}#header{background-color:#14191e;border-bottom:1px solid #222}div.highlight,pre,.article-entry code{background-color:#14191e !important;scrollbar-color:#00b6e5 #14191e}.article,.article-date{border-bottom:1px solid #14191e}.archives{border-left:1px solid #14191e}.archive-article-inner:hover{border-left-color:#00b6e5}.article-me |
This file contains 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
{{ define "main" }} | |
{{ $paginator := .Paginate (union .Site.Taxonomies.categories.articles .Site.Taxonomies.categories.podcast) 25 }} | |
{{ range $paginator.Pages }} | |
{{ if .Title }} | |
<div class="post-body post h-entry"> | |
<header> | |
<h1><a href="{{ .Permalink }}" style="text-decoration: none">{{ .Title }}</a></h1> |
This file contains 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
#!/bin/bash | |
# Script to migrate a Mastodon-exported following list to micro.blog | |
# Generate an API key here: https://micro.blog/account/apps | |
mbapikey=D43950049A7ECDED91E8 | |
# Then go to your Mastodon instances data export, e.g. https://mastodon.social/settings/export | |
# where you can download your following list in CSV format | |
# Or use Fedifinder to generate a CSV of people you follow on Twitter with Mastodon/ActivityPub accounts: | |
# https://fedifinder.glitch.me/ |
This file contains 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
<div class="h-entry"> | |
<a class="p-author h-card" href="http://example.org"> | |
<img src="http://example.org/photo.jpg" alt=""/> | |
Your Name Here</a>: | |
RSVP <span class="p-rsvp">yes</span> | |
to <a href="https://2018.indieweb.org/" class="u-in-reply-to">IndieWeb Summit</a> | |
</div> |
This file contains 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 -wKU | |
# Comments added 6 March 2014. | |
# Implementation of the MetaWeblog API for my personal Ruby static blog generator. | |
# This is not even nearly idiomatic Ruby. There are all kinds of issues. | |
# (What's with the method interiors all being mushed-up together?) | |
# But -- it's also worked flawlessly for five years without my having to edit it. | |
# It won't work for anyone else as-is — but if it helps anyone | |
# to do a MetaWeblog API implementation, then cool. |
This file contains 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
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA1 | |
// Generated on: 2012-04-13 23:44:46 GMT+00:00 | |
// ************** Tweet 1 of 47455 ************** | |
{ | |
"in_reply_to_screen_name": null, |
This file contains 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
#!/bin/bash | |
# | |
# Throw this in your crontab. | |
# | |
# https://twitter.com/#!/manton/status/111893189971017729 | |
# | |
[email protected] | |
CPU_THRESHOLD=1500 |