Say you have a code base that you just created and you have two commits locally:
commit a
commit b
This is your “version history”. You then push these commits to your remote. Now you have two repos with the same history:
; Easy Access to Currently Opened Folders | |
; Original author: Savage | |
; Fork by Leeroy | |
; Invoke a menu of currently opened folders when you click | |
; the middle mouse button inside Open / Save as dialogs or | |
; Console (command prompt) windows. Select one of these | |
; locations and the script will navigate there. | |
; CONFIG: CHOOSE A DIFFERENT HOTKEY | |
; You could also use a modified mouse button (such as ^MButton) or |
#!/bin/env zsh | |
# Run an interactive rebase, automatically marking $1 to be reworded | |
function git_rewrite_reword() { | |
GIT_SEQUENCE_EDITOR="sed -ie 's/pick $1/reword $1/'" \ | |
git rebase -i --autostash $1^ | |
} | |
# Run an interactive rebase, automatically marking $1 to be edited | |
function git_rewrite_edit() { |
; This is part of my AutoHotKey [1] script. When you are in Windows Explorer it | |
; allows you to press Alt+N and type a filename, and that file is created | |
; in the current directory and opened in the appropriate editor (usually | |
; [gVim](http://www.vim.org/) in my case, but it will use whatever program is | |
; associated with the file in Windows Explorer). | |
; This is much easier than the alternative that I have been using until now: | |
; Right click > New > Text file, delete default filename and extension (which | |
; isn't highlighted in Windows 7), type the filename, press enter twice. | |
; (Particularly for creating dot files like ".htaccess".) |
; create new file | |
; installation: | |
; 1. you must be running autohotkey: http://www.autohotkey.com | |
; 2. double click on script to run | |
; [pro-tip] add this script to your startup folder to run when windows start | |
; [pro-top] you can add this script to another .ahk script file. | |
; hotkey is set to control + alt + n | |
; more on hotkeys: http://www.autohotkey.com/docs/Hotkeys.htm |
/* | |
[wrap list] | |
( = (TXT) | |
`[ = [TXT] | |
{ = {TXT} | |
< = <TXT> | |
> = >TXT< | |
a = /`*TXT*`/ | |
h = <!-- TXT --> |
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] | |
"ConsentPromptBehaviorAdmin"=dword:00000000 | |
"EnableLUA"=dword:00000000 |
#!/usr/bin/env bash | |
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry) | |
helpmsg() { | |
printf "%s\n" "desc: convert images to webp at 50% quality and create cbz (comicbook archive)" | |
printf "%s\n" "depend: imagemagick zip coreutils libwebp" | |
printf "\n" | |
printf "%s\n" "usage: ${0##*/} <image>" | |
printf "\n" | |
printf "%s\n" " $ ${0##*/} *.png" |
using System; | |
// ReSharper disable InconsistentNaming | |
namespace JexusManager | |
{ | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
using System.Security.Principal; | |
using System.Windows.Forms; |