Skip to content

Instantly share code, notes, and snippets.

View Snaptags's full-sized avatar

Markus Lasermann Snaptags

  • Karlsruhe, Germany
View GitHub Profile
@kadet1090
kadet1090 / prompt.ps1
Created March 21, 2016 17:33
PowerLine like prompt for PowerShell
$script:bg = [Console]::BackgroundColor;
$script:first = $true;
$script:last = 0;
function Write-PromptFancyEnd {
Write-Host  -NoNewline -ForegroundColor $script:bg
$script:bg = [System.ConsoleColor]::Black
}
@nicholsonjf
nicholsonjf / git-remote-mirror
Created March 8, 2014 03:20
Add a remote mirror on a network drive from a local Git repository (Windows)
This stackoverflow question was a huge help: http://stackoverflow.com/questions/1887364/git-clone-to-external-drive-for-backup
If you use Git on you development machine, it's good to keep a remote backup in case your dev machine fails.
Step 1: Create the empty bare repo on your network drive
$ mkdir O:/myrepo_backup
$ cd O:/myrepo_backup
$ git init --bare
@mrchief
mrchief / LICENSE.md
Last active October 12, 2024 15:35
Add "Open with Sublime Text 2" to Windows Explorer Context Menu (including folders)

MIT License

Copyright (c) [year] [fullname]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: