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 = [email protected]: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 November 17, 2025 01:17
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 November 19, 2025 06:28
.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 February 6, 2025 04:09
(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
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active November 11, 2025 21:23 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@luisjunco
luisjunco / VS -Code-Shortcuts.md
Last active May 11, 2025 08:38
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