Skip to content

Instantly share code, notes, and snippets.

@lucasmancan
lucasmancan / setup.sh
Created September 10, 2023 15:14 — forked from bradp/setup.sh
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install
@lucasmancan
lucasmancan / show_who_last_viewed.php
Created November 18, 2022 23:41 — forked from andrewlimaza/show_who_last_viewed.php
Show 'Who Last Viewed' For WordPress Posts
<?php
// Add this code below to your active theme's functions.php or custom plugin.
/**
* Capture time when a user viewed a post only.
* Do not capture admin views, only users.
* Stores an array as $array['username'] => timestamp.
*/
function wll_save_when_viewed() {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.