Skip to content

Instantly share code, notes, and snippets.

@jaredhowland
jaredhowland / clear-font-cache.md
Last active November 6, 2024 14:41
Clear Mac OS X Font Caches
@spigotdesign
spigotdesign / get-svg.php
Created January 25, 2016 21:29
WordPress get SVG file contents
<?php echo file_get_contents( get_stylesheet_directory_uri() . '/img/icons/your-logo-file.svg' ); ?>
@mlocati
mlocati / concrete5.md
Created December 24, 2015 11:03
concrete5 under nginx

Here's a very basic nginx configuration for a website running concrete5:

# Define the server configuration
server {
	# Define the ports the server is listening to
	# In case this is the default website, you can add default_server before the semicolon
	listen 80;
	listen [::]:80 ipv6only=on;
@ygit
ygit / SkipVerification.txt
Last active March 27, 2025 18:10
Skip Verification of Mac Apps
xattr -d com.apple.quarantine /path/to/app/myMacApp.app
@chyyran
chyyran / Dreamcast IP.bin finder.cs
Created September 30, 2015 00:58
Finds an IP.bin from a dreamcast ISO or CDI file.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
@geoffgraham
geoffgraham / gist:8027dc39d3481cc77746
Last active October 4, 2022 15:28
The Events Calendar 3.10.1 // Move replace Organizer meta with Venue meta in single-event.
<?php
/**
* Single Event Meta Template
*
* Override this template in your own theme by creating a file at:
* [your-theme]/tribe-events/modules/meta.php
*
* @package TribeEventsCalendar
*/
@mrwweb
mrwweb / tribe_get_events.php
Last active November 13, 2024 16:44
Get Upcoming Events with tribe_get_events()
<?php $proj_events = tribe_get_events( array(
'posts_per_page' => 3,
'eventDisplay' => 'list' // only upcoming
), true ); ?>
<?php if( $proj_events->have_posts() ) :
?>
<div class="project-related__block project-related__block--events">
<h3>Events</h3>
<ul class="bulletless-list">
<?php while( $proj_events->have_posts() ) : $proj_events->the_post(); ?>
anonymous
anonymous / how-to-get-the-term-links-for-a-specific-post.php
Created February 23, 2015 20:44
How to get the term links for a specific post
<?php
$taxonomy = 'project_category';
$terms = wp_get_post_terms($post->ID, $taxonomy);
//print_rr($terms);
foreach ($terms as $term) {
$term_link = get_term_link( $term, $taxonomy );
if ( is_wp_error( $term_link ) )
echo $term_link->get_error_message();
@rmondello
rmondello / gist:b933231b1fcc83a7db0b
Last active February 5, 2025 03:03
Exporting (iCloud) Keychain and Safari credentials to a CSV file

Exporting (iCloud) Keychain and Safari credentials to a CSV file

Update (October 2021)

Exporting password + one-time code data from iCloud Keychain is now officially supported in macOS Monterey and Safari 15 (for Monterey, Big Sur, and Catalina). You can access it in the Password Manager’s “gear” icon (System Preferences > Passwords on Monterey, and Safari > Passwords everywhere else), or via the File > Export > Passwords... menu item). You shouldn't need to hack up your own exporter anymore.

Original, Obsolete Content (2014)

After my dad died, I wanted to be able to have access any of his online accounts going forward. My dad was a Safari user and used iCloud Keychain to sync his credentials across his devices. I don’t want to have to keep an OS X user account around just to access his accounts, so I wanted to export his credentials to a portable file.