Skip to content

Instantly share code, notes, and snippets.

@yasinai
yasinai / gist:ce3d25808c026423ffe7a54487eafc9f
Created December 13, 2017 09:46 — forked from kabronkline/gist:6581453
PowerShell SVN Checkout / Export
# SVN Export Script
#
# Given an SVN URL and local directory path, this script copies all files from
# SVN into the specified local directory.
#
# Uses SharpSVN DLL v1.7002.1998 (Documentation : http://docs.sharpsvn.net/current/)
#
# Takes two command line arguments, an SVN URL and a local directory path.
param ([string]$svnUrl = $(read-host "Please specify the path to SVN"),
[string]$svnLocalPath = $(read-host "Please specify the local path"),
@yasinai
yasinai / jenkins-decrypt.groovy
Created November 26, 2017 12:06 — forked from tuxfight3r/jenkins-decrypt.groovy
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'
@yasinai
yasinai / jenkins-git-backup.sh
Created November 21, 2017 08:16 — forked from abayer/jenkins-git-backup.sh
Example of a script for backing up Jenkins config in git.
#!/bin/bash
#
# Copies certain kinds of known files and directories from a given Jenkins master directory
# into a git repo, removing any old ones, adds 'em, commits 'em, pushes 'em.
#
set -ex
if [ $# -ne 2 ]; then
echo usage: $0 root_dir jenkins_master