Skip to content

Instantly share code, notes, and snippets.

View natebeaty's full-sized avatar
🦉

Nate Beaty natebeaty

🦉
View GitHub Profile
@natebeaty
natebeaty / gitlog
Last active October 29, 2024 15:21
script to pull your git commit logs for various date ranges, formatted for a timesheet
#!/bin/bash
# Pulls git log entries for a day formatted for pasting in a timesheet
# Usage:
# gitlog = all commits today
# gitlog -2 = all commits -2 days ago
# gitlog 2024-10-03 or 10/3/2024 or 10-3
args=$1
# Replace / with - in args for alternate date formats e.g. 10/3/2024
@blakethepatton
blakethepatton / Description.md
Last active November 7, 2023 09:37
Getting Mailhog running on a dev server (nginx, letsencrypt, ssl, ubuntu)

Get it running as a service

wget https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64

mv MailHog_linux_amd64 mailhog

chmod +x mailhog

sudo vi /etc/systemd/system/mailhog.service

@itsmattsoria
itsmattsoria / wp-blogpost-template.html
Last active March 7, 2018 16:43
Some dummy blog post content for testing
<h2>Some standard content types in posts.</h2>
Donec sed odio dui. <strong>This is bold</strong>. <em>This is italic</em>. Nullam id dolor id nibh ultricies vehicula ut id elit. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. <a href="http://github.org">This is a link</a>. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Nullam quis risus eget urna mollis ornare vel eu leo. Maecenas sed diam eget risus varius blandit sit amet non magna.
Here is a horizontal line, used sparingly for breaking content:
<hr>
The following is an image, which when selected, the size should be set to "full-width", the alignment set to "none", and typically, the 'Link to' should be set to "none". Avoid trying to align images to the left or right, let them stay full-width.
@jadehopepunk
jadehopepunk / upgrade_to_refinery_two.rb
Created March 3, 2012 07:00
Migration to convert from refinery 1.0.8 to refinery 2.0
class UpgradeToRefineryTwo < ActiveRecord::Migration
def self.up
# For refinerycms-authentication
rename_table :roles_users, :refinery_roles_users
rename_table :roles, :refinery_roles
rename_table :user_plugins, :refinery_user_plugins
rename_table :users, :refinery_users
remove_column :refinery_users, :persistence_token
remove_column :refinery_users, :perishable_token
remove_column :refinery_users, :remember_token