Skip to content

Instantly share code, notes, and snippets.

View joan38's full-sized avatar

Joan Goyeau joan38

View GitHub Profile
@redwrasse
redwrasse / MedianBinning.scala
Created August 12, 2016 04:06
Distributed median binning with spark
/**
* Distributed median binning
*
* See
* "Fast Computation of the Median by Successive Binning"
* https://www.stat.cmu.edu/~ryantibs/papers/median.pdf
*
* This code currently only works for an odd number of elements
* See https://github.com/goodsoldiersvejk/medianbinning
*/
@tuxfight3r
tuxfight3r / jenkins-decrypt.groovy
Created September 23, 2015 11:36
Decrypting Jenkins Password
#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'
@ashb
ashb / git-crypt-delete
Last active January 14, 2019 17:29
git-crypt-delete
#!/bin/bash -e
set -o pipefail
case "$1" in
--list|-l)
list_only=1
;;
--dry-run|-n)