cat introspection_query.json
{
"query": "query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }| #!/bin/bash | |
| # This script, executed at the root of a git repository, deletes traces of every old file in this repository, index + blob on all branches | |
| # It can take 10-30 minutes to run and will print regular warning stating than some references are unchanged | |
| # time ./clear_git_repositor.bash >cleaning.log | |
| # We need several passes to clean files renamed multiple times (git log --find-renames prevents its deletion for each renaming) | |
| # MAXIMUM_PASSES should be more than the maximum number of renamings/movings for any file, if not then we might keep some traces of former files | |
| MAXIMUM_PASSES=10 # Maximum number of passes |
| #To Decrypt Jenkins Password from credentials.xml | |
| #<username>jenkins</username> | |
| #<passphrase>your-sercret-hash-S0SKVKUuFfUfrY3UhhUC3J</passphrase> | |
| #go to the jenkins url | |
| http://jenkins-host/script | |
| #In the console paste the script | |
| hashed_pw='your-sercret-hash-S0SKVKUuFfUfrY3UhhUC3J' |
If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.
Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.
The simplest way to add an alias for a specific git command is to use a standard bash alias.
# .bashrc| apply plugin: 'scala' | |
| repositories { | |
| mavenCentral() | |
| } | |
| ext { | |
| versions = [ | |
| scala: '2.9.2', | |
| scalatest: '2.0.M3', |
| #!/bin/bash | |
| function usage { | |
| echo "USAGE: git merge-svn <from> [<to>]" | |
| echo "" | |
| echo " from The branch name to be merged FROM" | |
| echo " to Optional branch name to be merged onto. Default: HEAD" | |
| echo "" | |
| } |
| git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.*\((.*?)\s*[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n |