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
[core] | |
# gestion des fins de ligne uniquement sur système windows | |
autocrlf = true | |
[status] | |
showUntrackedFiles = all | |
[pull] | |
# forcer un rebase plutot qu'un merge sur les pull mais conserver les éventuels merge volontaires | |
rebase = preserve |
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/Import | |
# Important : limiter la taille pour éviter les mauvaises surprises... | |
svnrdump dump --incremental -r150:159 https://old.svn.com > repos150-159.dump | |
svnrdump load https://new.svn.com < repos128-149.dump | |
# Supprimer un lock éventuel | |
svn propdel svn:rdump-lock --revprop -r0 https://svn.com |
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
# Propriétés Maven pour Nexus interne avec certificat bancal | |
MAVEN_OPTS=-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Djavax.net.ssl.trustStore=C:\tmp\mavenKeystore | |
# Commandes de release | |
mvn release:prepare -Pprofil -Darguments="-DskipTests" -DdryRun=true | |
mvn release:prepare -Pprofil -Darguments="-DskipTests" | |
mvn release:perform |
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
# Generer MDP en MD5+base64 | |
# Source : http://stackoverflow.com/questions/4583967/how-to-encode-md5-sum-into-base64-in-bash | |
echo -n foo | openssl dgst -md5 -binary | openssl enc -base64 |
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
# Pour binder un port sur un autre et tracer les requetes | |
socat | |
# Pour MAJ l'heure : | |
ntpdate 0.rhel.pool.ntp.org 1.rhel.pool.ntp.org | |
# Analyse réseau | |
# Requêtes en sortie vers le port 80 | |
tcpdump -nnvvlXSs 4096 dst port 80 | |
# Capture sur la carthe lo et écriture dans un fichier |
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
# Archive | |
git archive --format zip --output nomDuZip.zip refGit # refGit = tag/branche... | |
# Reset author | |
git commit --amend --reset-author --no-edit | |
# Rebase onto (start exclusive, end inclusive) | |
git rebase --onto <where> <current-start> <current-end> |
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
# 1 - Recuperer les auteurs dans un fichier authors.txt et associer userSVN=userGit | |
# Windows | |
svn.exe log --quiet | ? { $_ -notlike '-*' } | % { ($_ -split ' \| ')[1] } | Sort -Unique | |
# Linux : https://stackoverflow.com/questions/2494984/how-to-get-a-list-of-all-subversion-commit-author-usernames | |
# 2 - Migration | |
git svn init --prefix=svn/ --no-metadata --trunk=trunk --tags=tags --branches=branches <url> | |
git svn config --local --get user.name | |
git svn config --local svn.authorfile authors.txt |
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
# Created by https://www.gitignore.io/api/java,eclipse,maven,git | |
### Intellij ### | |
.idea/ | |
*.iml | |
### Eclipse ### |
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
package forcomp | |
import scala.collection.immutable._ | |
object Anagrams { | |
/** A word is simply a `String`. */ | |
type Word = String | |
/** A sentence is a `List` of words. */ |
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
package patmat | |
import common._ | |
/** | |
* Assignment 4: Huffman coding | |
* | |
*/ | |
object Huffman { |
OlderNewer