Skip to content

Instantly share code, notes, and snippets.

View jeriley's full-sized avatar

Jesse jeriley

View GitHub Profile
### Keybase proof
I hereby claim:
* I am jeriley on github.
* I am jeriley (https://keybase.io/jeriley) on keybase.
* I have a public key whose fingerprint is B38D 868C 4219 D39A 2090 E6EA 57F3 D2D9 5A72 BDC0
To claim this, I am signing this object:
@jeriley
jeriley / CollapsedExample.cs
Created May 17, 2018 11:02
Which do you prefer?
using Moq;
using NUnit.Framework;
using Should;
//and some other stuff
namespace WorkerTests
{
[TestFixture]
public class Worker_CreateThingFromContractTests
{
@jeriley
jeriley / .bashrc
Last active April 28, 2023 15:20
bashrc
function open {
explorer .
}
function reset-me {
echo 'resting HEAD'
git fetch origin
git reset --hard origin/master
}
@RunWith(MockitoJunitRunner.class)
//@ContextConfiguration({"/stuff.xml"})
public class SomeDaoTest {
@Mock
private SessionFactory factory;
@Mock
private Session session;
@jeriley
jeriley / addUser.sql
Last active July 19, 2023 15:52
MS sql local docker database restore
USE [master]
GO
CREATE LOGIN [<UserName>] WITH PASSWORD=N'<SomeKindOfStrongPassword>', DEFAULT_DATABASE=[master], CHECK_EXPIRATION=OFF, CHECK_POLICY=ON
GO
USE [<DBName>]
GO
CREATE USER [<UserName>] FOR LOGIN [<UserName>]
GO
USE [<DBName>]
GO