Skip to content

Instantly share code, notes, and snippets.

@truongvinht
truongvinht / svnMigGitLatestTag.sh
Created November 18, 2021 20:13
Git SVN Migration script with tagging structure
#!/bin/bash
# Script checkout SVN as git repository,
# move trunk to develop branch
# and create a master branch based on latest tag
#constants
SVN_TMP_FILE=svnlog.txt
BRANCH_FILE=branch.txt
LATEST_ANNUAL=""
@truongvinht
truongvinht / svnMigGit.sh
Created November 18, 2021 20:12
Bash Script for svn to git migration
#!/bin/bash
# Script checkout SVN as git repository
#constants
SVN_TMP_FILE=svnlog.txt
BRANCH_FILE=branch.txt
LATEST_ANNUAL=""
#variables
revision=""
@truongvinht
truongvinht / gitsvnMigration.md
Created November 18, 2021 20:09
Git SVN Migration commands

Helpful scripts for git migration from SVN to Git

Init git remote url

git remote set-url origin GIT_URL

Strategy for migration with classic structure (trunk/branches/tags)

full svn clone

git svn clone -s SVN_URL

Keybase proof

I hereby claim:

  • I am truongvinht on github.
  • I am truongvinht (https://keybase.io/truongvinht) on keybase.
  • I have a public key whose fingerprint is 56E8 DCA8 465E F764 38AC 1E91 FD4C F4BE 88F3 85AB

To claim this, I am signing this object:

@truongvinht
truongvinht / panGesture.m
Created May 7, 2012 12:21 — forked from sebk/panGesture.m
Move component with UIPanGestureRecognizer
- (void)viewDidLoad {
[super viewDidLoad];
UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[button setTitle:@"BUTTON" forState:UIControlStateNormal];
[button setFrame:CGRectMake(50, 50, 150, 150)];
[self.view addSubview:button];
UIPanGestureRecognizer *panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(invokePanGesture:)];