This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export enum Direction { | |
Left, | |
Right | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export enum ImprovedDirection { | |
Left = <any>'left', | |
Right = <any>'right' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example | |
git svn clone http://my.svn.com/myrepo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git tag -d tagname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on the great ys theme (http://ysmood.org/wp/2013/03/my-ys-terminal-theme/) | |
# Machine name. | |
function box_name { | |
[ -f ~/.box-name ] && cat ~/.box-name || echo $HOST | |
} | |
# Directory info. | |
local current_dir='${PWD/#$HOME/~}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone –mirror https://github.com/FabreFrederic/weatherStation.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Get the X largest files from your repository | |
# You have to pass the number of file you want | |
# The result is stored in the folder $folder | |
# foundList.txt is the list of largest files which are not deleted yet | |
# deletedList.txt is the list of largest files which are already deleted. They cannot be found in your workspace | |
# | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# This script uses bfg-repo-cleaner | |
# https://rtyley.github.io/bfg-repo-cleaner | |
# | |
# Delete the files from your history repository | |
# The deleted files are listed in the $folder/deletedList.txt file | |
# You must run the getLargestFilesListFromRepository.sh script file before | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Delete all the branches except master and develop branches | |
git branch -D $(git branch | grep -Ev "(\*|master|develop)") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git filter-branch --prune-empty --subdirectory-filter my_folder_name |
NewerOlder