Skip to content

Instantly share code, notes, and snippets.

@suya55
suya55 / check_row_size.sh
Created April 16, 2020 13:27
mysql row size checker
#!/bin/bash
#
# usage: mysqldump --no-data | check_row_size.sh
#
#
#
# https://dev.mysql.com/doc/refman/8.0/en/column-count-limit.html#row-size-limits
#
@suya55
suya55 / execute_groovy_jenkins_sample.groovy
Created May 25, 2020 04:50 — forked from rhuss/execute_groovy_jenkins_sample.groovy
How to execute some shell scripting on Groovy with environment variables and redirection
def exec(cmd) {
println cmd
def process = new ProcessBuilder([ "sh", "-c", cmd])
.directory(new File("/tmp"))
.redirectErrorStream(true)
.start()
process.outputStream.close()
process.inputStream.eachLine {println it}
process.waitFor();
return process.exitValue()