Skip to content

Instantly share code, notes, and snippets.

View howellcc's full-sized avatar

Clint howellcc

  • 05:28 (UTC -05:00)
View GitHub Profile
@howellcc
howellcc / git-branches-by-commit-date.sh
Created February 28, 2024 18:08 — forked from l15n/git-branches-by-commit-date.sh
List remote Git branches and the last commit's author and author date for each branch. Sort by most recent commit's author date.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ai %ar by %an" $branch | head -n 1` \\t$branch; done | sort -r
@howellcc
howellcc / pageant-autoload-keys-at-startup.txt
Created August 27, 2022 19:45 — forked from chunter/pageant-autoload-keys-at-startup.txt
Make Pageant autoload keys at startup
To make Pageant automatically run and load keys at startup:
- Find the location of pageant.exe
- Windows key + R to open the 'run' dialog box
- Type: 'shell:startup' in the dialog box
- Create a shortcut to the pageant.exe and put into this startup folder.
@howellcc
howellcc / git-vlog
Created June 21, 2022 20:45 — forked from asabaylus/git-vlog
Git visual log for the console
# Git visual log displays commit tree view with who did what when and in which branch
git config --global alias.vlog 'log --graph --date-order --date=relative --pretty=format:"%C(cyan)%h: %Cblue - %an - %Cgreen %C(cyan)%ar:%Creset%n%s%n" --color'
@howellcc
howellcc / Console command
Last active November 11, 2020 15:48 — forked from KirillFormado/Console command
Visual Studio - Disable "Always Start When Debugging"
get-project -all | %{ $_.Properties | ?{ $_.Name -eq "WebApplication.StartWebServerOnDebug" } | %{ $_.Value = $False} }
@howellcc
howellcc / ParseLargeXMLFiles.cfc
Last active November 9, 2016 22:00 — forked from bennadel/code-1.cfm
Ask Ben: Parsing Very Large XML Documents In ColdFusion
component
output="false"
hint="I help to parse large XML files by matching patterns and then only parsing sub-nodes of the document." {
public any function Init(required string Nodes, required string XmlFilePath, numeric BufferSize=(1024*1024*5)) {
/*
Create the regular expression pattern based on the
node list. We have to match both standard nodes and
<cfscript>
var APIUtility = getBean('settingsManager').getSite({siteid}).getAPI('json', 'v1');
APIUtility.registerMethod(methodName='applyProperty', method=applyProperty);
public any function applyProperty() {
// do something
}
</cfscript>
@howellcc
howellcc / muraCustomUI.cfm
Created February 3, 2016 18:25 — forked from stevewithington/muraCustomUI.cfm
Mura CMS: Example of how to use the 'Custom UI' container/tab assignment option when creating a class extension.
<!---
A brief example on how to use the 'CustomUI' option when creating a class extension in Mura CMS.
This example assumes you have an extended attribute called 'Page/Book'.
It also assumes you have an attribute set using the 'CustomUI' container/tab assignment.
Any extended attributes you assign to the attribute set, you are responsible for collecting
that data using your own form fields. Make sure the 'name' and 'id' attributes match the
names you've used when you created the extended attributes! For example, if you have an
extended attribute with a name of 'bookPublisher', make sure you have a form field with an
'id' and 'name' attribute of 'bookPublisher'. Check your casing too!