These scripts can be run with the following commands, by a super user. This installs a lot of stuff, read first.
You can add -s -- --dry-run
to then end to do a dry run first.
These are tested on an ec2 instance running vscode remote
const { __ } = wp.i18n; | |
const { registerBlockType } = wp.blocks; | |
const el = wp.element.createElement; | |
registerBlockType( 'hiRoy/serverSide', { | |
title: __( 'Server Side Block', 'text-domain' ), | |
icon: 'networking', | |
category: 'common', | |
attributes: { |
<?php | |
/** | |
* Change field value for field set by Caldera Forms incremental value processor | |
*/ | |
add_action( 'caldera_forms_submit_complete',function( $form, $referrer, $process_id, $entryid ){ | |
//change form ID to match your form | |
if( 'CF111' === $form[ 'ID' ] ){ | |
//change field to match field used with processor | |
$field_id = 'fl1345'; |
These scripts can be run with the following commands, by a super user. This installs a lot of stuff, read first.
You can add -s -- --dry-run
to then end to do a dry run first.
These are tested on an ec2 instance running vscode remote
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; | |
a { | |
@apply underline text-blue-800 hover:text-blue-400 visited:text-purple-800 | |
} |
<?php | |
class Test extends TestCase { | |
public function test_function_that_makes_api_request(){ | |
add_filter('pre_http_request', function(){ | |
return [ | |
'body' => [ | |
'id' => 1, | |
], |
export async function sendSkeet({ text, agent, attatchments }: { | |
text: string, | |
agent: bsky.BskyAgent, | |
attatchments?: Attatchments, | |
}) { | |
const rt = new RichText({ text }); | |
await rt.detectFacets(agent); | |
const post: any = { | |
$type: 'app.bsky.feed.post', |
add_action( 'wp_enqueue_scripts', 'my_custom_script_load' ); | |
function my_custom_script_load(){ | |
wp_enqueue_script( 'my-custom-script', get_stylesheet_directory_uri() . '/custom-scripts', array( 'jquery' ) ); | |
} |
add_filter('post_thumbnail_html', 'slug_responsive_img', 5, 5); | |
//Image sizes for Interchange | |
add_image_size( 'fd-lrg', 1024, 99999); | |
add_image_size( 'fd-med', 768, 99999); | |
add_image_size( 'fd-sm', 320, 9999); | |
function slug_responsive_img($html, $post_id, $post_thumbnail_id, $size, $attr) { | |
//make image links | |
$attachment_id = $post_thumbnail_id; | |
$default = wp_get_attachment_image_src($attachment_id); |
no code: https://track.goodfeeds.co/
No code: https://skyfeed.app/
With a little bit of code: https://github.com/jcsalterego/Contrails
With typescript, express, sqlite, etc. https://github.com/bluesky-social/feed-generator
https://bsky.app/profile/jakei.bsky.social/post/3jzxnrvequq2m
https://bossett.io/setting-up-bossetts-bluesky-feed-generator/
import bsky from '@atproto/api'; | |
const { BskyAgent, RichText } = bsky; | |
import * as dotenv from 'dotenv'; | |
import process from 'node:process'; | |
dotenv.config(); | |
const agent = new BskyAgent({ | |
service: 'https://bsky.social', | |
}); |