Skip to content

Instantly share code, notes, and snippets.

@chrispian
chrispian / getPosts.php
Last active September 27, 2024 18:34
Import WordPress posts, categories, and tags to a Laravel table
<?php
/*
* NOTES:
*
* - This was designed for my personal use and could be more robust.
* - Make sure to update the tables you want to import into.
* - Make sure to update the website url you want to import from.
* - Customize as needed. I had very few posts and no media.
*
*/
@pxlrbt
pxlrbt / PageTemplates_Faq.php
Last active February 21, 2025 07:47
Filament Template
<?php
namespace App\Filament\PageTemplates;
use Filament\Forms\Components\Repeater;
use Filament\Forms\Components\RichEditor;
use Filament\Forms\Components\TextInput;
final class Faq
{
@mmacedo
mmacedo / preview_xterm.sh
Created November 9, 2012 19:13
Preview oh-my-zsh themes
#!/usr/bin/env bash
# Backup and modify .zshrc
cp $HOME/.zshrc $HOME/.zshrc_
sed -i "s/^ZSH_THEME=/\# \0/" $HOME/.zshrc
echo >> $HOME/.zshrc
echo "echo \"\\n\\n\\033[1;31m\$ZSH_THEME\\033[0m\\n\\n\"" >> $HOME/.zshrc
# Using xterm
CMD="xterm -ls -e /usr/bin/env zsh"