Skip to content

Instantly share code, notes, and snippets.

View msoutopico's full-sized avatar

Manuel Souto Pico msoutopico

View GitHub Profile
#!/bin/bash
### Some permanent variables used for each created project/repository
ORG="capstanlqc-pisa"
THIS_STEP="trend-prepp"
TEAM="translators"
### omegat.project contents is stored in OMTPOJ variable:
IFS='' read -r -d '' OMTPOJ <<"EOF"
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<!DOCTYPE omegat [
@0x49D1
0x49D1 / syslog_wsl_windows10_problem.md
Created November 15, 2019 12:03
rsyslog restart problem in WSL. No syslog logs in /var/log
@mgdelacroix
mgdelacroix / gist:2397424
Created April 16, 2012 10:04
Rename a file in Groovy
def file = new File("/tmp/image.jpg")
println ">> Nombre del fichero: ${file.name}"
println "HACEMOS EL RENAME"
def string = "/tmp/${file.name[0..-5]}_thumb.jpg"
def newFile = new File(string)
file.renameTo(newFile)
println ">> Nombre del fichero: ${newFile.name}"