Skip to content

Instantly share code, notes, and snippets.

@rchatley
rchatley / pom.xml
Last active October 6, 2015 16:48
Complete pom file for CD exercise
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.develogical</groupId>
<version>1.0-SNAPSHOT</version>
<artifactId>aepfacts</artifactId>
<dependencies>
<dependency>
@a-thomas
a-thomas / gist:3103858
Last active October 7, 2015 04:17
git standup
[alias]
standup = log --all --since yesterday --oneline --author <your_firstname>
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@richardcornish
richardcornish / git.md
Last active August 11, 2023 08:44
Enough Git for your résumé in 100ish lines
@LeCoupa
LeCoupa / nodejs-cheatsheet.js
Last active April 19, 2024 01:50
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@davidfowl
davidfowl / dotnetlayout.md
Last active April 26, 2024 13:37
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
@radwane-h
radwane-h / Kata
Last active November 1, 2015 23:36
Kata
Kata Refactoring :
Movie rental by Martin Fowler : [c# version: https://github.com/jpartogi/MovieRental-Kata.NET]
Gilded Rose : [C# version: https://github.com/emilybache/GildedRose-Refactoring-Kata/blob/master/csharp/GildedRose.cs]
Trip service : [C# version: https://github.com/sandromancuso/trip-service-kata/tree/master/c%23]
Trivia : [c# version: https://github.com/jbrains/trivia/tree/master/C%23/Trivia]
Golden Source : https://github.com/emilybache?tab=repositories
@NickCraver
NickCraver / Windows10-Setup.ps1
Last active April 1, 2024 10:52
(In Progress) PowerShell Script I use to customize my machines in the same way for privacy, search, UI, etc.
##################
# Privacy Settings
##################
# Privacy: Let apps use my advertising ID: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0
# To Restore:
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1
# Privacy: SmartScreen Filter for Store Apps: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0
@luisjunco
luisjunco / VS -Code-Shortcuts.md
Last active November 29, 2023 11:29
VS Code Shortcuts

Common shortcuts in VS Code (Win // Mac):

  • Comment code: Ctrl (K+C) // ⌘ (K+C)
  • UnComment code: Ctrl (K+U) // ⌘ (K+U)

  • Duplicate line: Alt & Shift + Arrow Down // Option & Shift + Arrow Down
  • Multicursor: hold Alt + click // hold Option + click