This file contains hidden or 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 branch -r --merged master | grep -v master | grep -v develop | grep -w "origin" | awk '{print gensub(/origin\//,"","g",$1)}' | xargs git push origin --delete | |
| git remote prune origin |
This file contains hidden or 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
| function remove_remote_branch() { | |
| branch=$1 | |
| git push origin --delete $branch | |
| } | |
| function remove_local_branch() { | |
| branch=$1 | |
| git branch -d $branch | |
| } |
This file contains hidden or 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
| # add this to the end of .profile file in your home directory | |
| export LC_LANG="en_US.UTF8" |
This file contains hidden or 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
| import java.awt.datatransfer.*; | |
| import java.awt.Toolkit; | |
| /* | |
| * Export Freeplane mindmap branch to nested list in textile format e.g. for use in Redmine wiki | |
| * - Save as <filename>.groovy in <freeplane directory>/scripts/ | |
| - Select node and start script from menu: Tools -> Scripts -> <filename> | |
| * | |
| * (c) 2014 Fabian Kretzer https://dhf.sk/freeplane-mindmap-to-redmine-wiki/ | |
| * (c) 2016 62mkv |
This file contains hidden or 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/bash | |
| CONVERT="convert-tmp" | |
| FILELIST=$(find . -maxdepth 2| xargs file | grep WAVE | awk -F':' '{ print $1}' | awk -F'/' '{ print $2, $3}') | |
| while read -r line; do | |
| FOLDER=$(echo $line | awk '{print $1}') | |
| FILE=$(echo $line | awk '{print $2}') | |
| INFILE="$FOLDER/$FILE" |
This file contains hidden or 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
| from md5 import md5 | |
| # header from 401 response on REGISTER | |
| # Authorization: Digest username="883140776410950", realm="gw_youmagic", algorithm=MD5, uri="sip:GW_Youmagic", nonce="1476157437:0a1418a40f8ee1c9a55f1587ab931c14", response="3ff479ccc24874f66aae45dac889d099" | |
| login = '883140776410950' | |
| uri = 'sip:GW_Youmagic' | |
| nonce = '1476157437:0a1418a40f8ee1c9a55f1587ab931c14' | |
| realm = 'gw_youmagic' | |
| password = '----------' |
This file contains hidden or 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
| def branch_config = [ master: [target: 'assembleStoreRelease'], qa: [target: 'assembleQaDebug']] | |
| node { | |
| def branch = env.gitlabSourceBranch | |
| stage 'checkout' | |
| checkout([$class: 'GitSCM', branches: [[name: "origin/$branch"]], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'cbd4ea7d-0718-48ae-a1dd-9dea23ac65bc', url: '[email protected]:group/android.git']]]) | |
| stage 'build' |
This file contains hidden or 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
| Select-XML -XPath "response/action/provider/@fullName" -Path providers.xml | Select-Object -ExpandProperty Node |
This file contains hidden or 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
| du -BM -s * | sort |
This file contains hidden or 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/bash | |
| curl -v http://u.rl/path/; echo $? | |
| # -v prints headers; $? is an exit code of last called command |
OlderNewer