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
#!/bin/bash | |
#taken from http://www.insanelymac.com/forum/topic/308533-how-to-create-a-bootable-el-capitan-iso-fo-vmware/ | |
# Mount the installer image | |
hdiutil attach /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app | |
# Create the ElCapitan Blank ISO Image of 7316mb with a Single Partition - Apple Partition Map | |
hdiutil create -o /tmp/ElCapitan.cdr -size 7316m -layout SPUD -fs HFS+J |
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
#!/bin/bash | |
INIT_LIST=$(git submodule status | grep "\-[a-z0-9]\{40\}" | sed 's#\(\-[a-z0-9]\{40\} \)##g') | |
IFS=$'\n'; for l in $INIT_LIST; do git submodule update --init $l; done |
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
# other | |
*.anim filter=lfs diff=lfs merge=lfs -text | |
*.cubemap filter=lfs diff=lfs merge=lfs -text | |
*.exr filter=lfs diff=lfs merge=lfs -text | |
*.fbx filter=lfs diff=lfs merge=lfs -text | |
*.otf filter=lfs diff=lfs merge=lfs -text | |
# images | |
*.bmp filter=lfs diff=lfs merge=lfs -text | |
*.jpg filter=lfs diff=lfs merge=lfs -text |
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
Get-ChildItem -Recurse -Directory -Hidden -Filter .git | ForEach-Object { & git --git-dir="$($_.FullName)" --work-tree="$(Split-Path $_.FullName -Parent)" pull origin master } |
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
#!/bin/bash | |
git branch | grep -v "master" | xargs git branch -D |
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
Jenkins.instance.nodes.each { | |
if (it.computer.isOffline()){ | |
println(it.name) | |
it.computer.doDoDelete() | |
} | |
} |
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
// installs single hardcoded plugin | |
import jenkins.model.* | |
import java.util.logging.Logger | |
def logger = Logger.getLogger("") | |
def installed = false | |
def initialized = false | |
def pluginParameter="apache-httpcomponents-client-4-api" // this could be a parameter if we wanted | |
def plugins = pluginParameter.split() | |
logger.info("" + plugins) |
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
Jenkins.instance.updateCenter.getAvailables().each{ | |
println "${it.name}:${it.version}" | |
} | |
Jenkins.instance.pluginManager.plugins.each{ | |
println "${it}:${it.version}" | |
} |
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
// promote all update center plugins | |
import com.cloudbees.plugins.updatecenter.PluginData | |
// Example of an update center "myUpdateCenter" at root level, could be parameter to this job | |
def updateCenterFullName = "myUpdateCenter" | |
jenkins.model.Jenkins.instance.getItemByFullName("${updateCenterFullName}").getPluginsData().each { PluginData pluginData -> | |
if(pluginData.getVersions() != null && !pluginData.getVersions().isEmpty()) { | |
println "Promoting '${pluginData.getName()}' to version '${pluginData.getVersions().lastKey()}'" | |
pluginData.setPromotedVersion("${pluginData.getVersions().lastKey()}") |
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
// cancel all builds in queue called | |
import hudson.model.* | |
def q = Jenkins.instance.queue | |
q.items.each { | |
println (it) | |
if (it =~ /my.job.to.kill/) { | |
q.cancel(it.task) | |
} |
OlderNewer