Skip to content

Instantly share code, notes, and snippets.

View itsariful's full-sized avatar
🏠
Working from home

Ariful islam itsariful

🏠
Working from home
View GitHub Profile
@elliotcondon
elliotcondon / gist:f0f3141f34d1e57fc55387574c49262c
Last active February 13, 2022 14:42
A Closer Look at Applying Filter Variations in ACF.
function acf_get_value( $post_id, $field ) {
// Load meta value.
$value = acf_get_metadata( $post_id, $field['name'] );
/**
* Filters the $value after it has been loaded.
*
* @date 28/09/13
* @since 5.0.0
@grenade
grenade / 01-generate-ed25519-ssh-key.sh
Last active July 11, 2024 10:06
generate ed25519 ssh and gpg/pgp keys and set file permissions for ssh keys and config
#!/bin/bash
# generate new personal ed25519 ssh keys
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <rthijssen@gmail.com>"
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_robtn -C "rob thijssen <rob@rob.tn>"
# generate new host cert authority (host_ca) ed25519 ssh key
# used for signing host keys and creating host certs
ssh-keygen -t ed25519 -f manta_host_ca -C manta.network