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 May 31, 2022 15:51
script to pull your git commit logs for various date ranges, formatted for a timesheet
#!/bin/bash
# Pulls git log for an author formatted for a timesheet
# Usage:
# gitlog = all commits today
# gitlog 48 = last 48 hours of commits
# gitlog 2022-05-31 = all commits on May 13, '22 (also supports 5/31/2022, 05-31-2022)
# gitlog yesterday = all commits yesterday
# gitlog 1 week ago = all commits since a week ago
@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