Skip to content

Instantly share code, notes, and snippets.

View hazzik's full-sized avatar

Alex Zaytsev hazzik

  • Brisbane, Australia
View GitHub Profile
@zhylmzr
zhylmzr / mount_ntfs_3g.plist
Last active January 12, 2024 17:17
automount all ntfs volume writable in macOS Big Sur+
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>mount_ntfs_3g</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<false/>
@ericbmerritt
ericbmerritt / git-semver.sh
Created July 30, 2014 21:04
Shell script for parsing semvers from git-describe
#! /bin/bash
# Assumes that you tag versions with the version number (e.g., "1.1")
# and then the build number is that plus the number of commits since
# the tag (e.g., "1.1.17")
DESCRIBE=`git describe --tags --always`
# increment the build number (ie 115 to 116)
VERSION=`echo $DESCRIBE | awk '{split($0,a,"-"); print a[1]}'`
@tommarien
tommarien / gist:8234469
Created January 3, 2014 07:57
FluentMigrator v2

FluentMigrator V2

Main goals

  • Extensibility
  • Conventionalize
  • Improve reusability

Concepts

Fluent API

@controlflow
controlflow / gist:8072635
Last active January 1, 2016 01:28
Primary ctors
class ReverseForLookupItem : ForLookupItemBase
{
public ReverseForLookupItem([NotNull] PrefixExpressionContext context,
[NotNull] LiveTemplatesManager templatesManager,
[CanBeNull] string lengthPropertyName)
: base("forR", context, templatesManager, lengthPropertyName) { }
protected override IForStatement CreateStatement(CSharpElementFactory factory, ICSharpExpression expression)
{
...
@patearl
patearl / transform.sh
Created August 5, 2011 19:49
NHibernate GIT Transform
#!/bin/bash
# To use this, git svn clone the NHibernate repo into an nh-git folder. Use the -s option and no other options.
# Patrick has a current synced copy on his system.
# These people don't seem to appear in any commits. For whatever reason, we are missing hundreds of commits.
# Use this command to get a new list when we find our missing branches.
# git log --format "%aN" | sort -u
# johntmorris=John Morris <johntmorris@users.sourceforge.net>
# jimcool=Jakub MArsik <jimcool@users.sourceforge.net>