Skip to content

Instantly share code, notes, and snippets.

@rjeschke
rjeschke / Template.java
Last active Dec 3, 2015
Simple and fast, single-file template system, designed for: create once, render often/concurrently
View Template.java
/*
* Copyright (C) 2015 René Jeschke <rene_jeschke@yahoo.de>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@shiftkey
shiftkey / git-for-windows-rc.md
Last active Oct 27, 2015
Git for Windows - Request for Beta Testers
View git-for-windows-rc.md

Git for Windows - Beta Testers Guide

The Git for Windows team is currently testing their newest release candidates, which is a port of Git 2.3 to Windows. As this is a significant change, I've written up a guide for people who are interested in helping to test out things.

Recommended Setup

You can find the latest releases for Git for Windows over on the Releases page:

https://github.com/git-for-windows/git/releases

@nzakas
nzakas / versioning.md
Created Nov 24, 2013
Versioning in a repo
View versioning.md

Versioning in a Repository

Lately I've been doing a lot of thinking around versioning in repositories. For all the convenience and ubiquity of package.json, it does sometimes misrepresent the code that is contained within a repository. For example, suppose I start out my project at v0.1.0 and that's what's in my package.json file in my master branch. Then someone submits a pull request that I merge in - the version number hasn't changed even though the repository now no longer represents v0.1.0. The repository is actually now in an intermediate state, in between v0.1.0 and the next official release.

To deal with that, I started changing the package.json version only long enough to push a new release, and then I would change it to a dev version representing the next scheduled release (such as v0.2.0-dev). That solved the problem of misrepresenting the version number of the repository (provided people realize "dev" means "in flux day to day"). However, it introduced a yucky workflow that I really hate

@wsargent
wsargent / docker_cheat.md
Last active Jul 1, 2022
Docker cheat sheet
View docker_cheat.md
@tfnico
tfnico / instructions.txt
Last active Dec 21, 2015
Instructions on how to port Dukto from SVN to Git
View instructions.txt
First create an author-map file for translating svn user names to Git user names in history:
$ cat author-map
em.colombo = Emanuele Colombo <em.colombo@gmail.com>
em.colombo@gmail.com = Emanuele Colombo <em.colombo@gmail.com>
Vittorio.Curcio = Vittorio Curcio <Vittorio.Curcio@dummy.example.com>
xxdede = xxdede <xxdede@dummy.example.com>
(no author) = no author <no-author@dummy.example.com>
Now, do a git svn clone:
@tfnico
tfnico / git-developers.md
Last active Dec 22, 2021
When and how to contact the Git developers
View git-developers.md

Before you send an email to the Git developers' mailing list

If you are a normal Git user, and you have problems using Git, you can also try:

If you believe you've found a bug in Git for Windows or msysGit (Windows-specific), first check their issue tracker to see if the problem has already been reported. If not, send a message to msysgit@googlegroups.com or visit the online forum version.

@brendanhay
brendanhay / tmux-copy-mode-osx.md
Created Feb 8, 2012
Tmux, copy-mode, and OSX shenanigans.
View tmux-copy-mode-osx.md

Copy, with line wrapping!

If you've been trying to copy/paste text from a multi-pane tmux session with the mouse, you've probably been pretty pissed at the blissful ignorance a terminal application has of the rodent in your hand.

The alternative, which is quote-unqoute native copy/pasting using copy-mode takes a bit to get used to. So this is one solution for copying and pasting lines from a session with correct line wrapping behaviour, albeit keyboard only.

Disclaimer

Since copy-mode has similar concepts of marks, regions, and temp buffers to Emacs .. you'll probably find it straight forward if you're familar with Emacsen. For people using vi-mode in tmux, the same still applies but obviously the default key bindings will differ alot from what I show below.

@StanAngeloff
StanAngeloff / simple-imagediff.py
Created Feb 1, 2012
Simple Image Diff for Git
View simple-imagediff.py
#!/usr/bin/env python
# Simple Image Diffs
# ==================
#
# How to Install
# --------------
#
# Download the script somewhere on $PATH as 'simple-imagediff' with +x:
#
@matthewmccullough
matthewmccullough / removeignoredtracked.bsh
Created Jan 20, 2012
Bash script to remove any ignored files that are accidentally tracked
View removeignoredtracked.bsh
#!/bin/sh
# Git Remove (from version control) any file that is covered by the ignore patterns and exists on the filesystem. Could be improved to further check the file exists on the git filesystem too.
for eachthing in `git ls-files --others --ignored --exclude-standard`; do if [ -e "$eachthing" ]; then git rm $eachthing; fi; done
@canton7
canton7 / 0main.md
Last active Jun 11, 2022
Local versions of tracked config files
View 0main.md

How to have local versions of tracked config files in git

This is a fairly common question, and there isn't a One True Answer.

These are the most common techniques:

If you can modify your application