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
// Run in Grails context inside grails console | |
// Below will be helpful to create "application.groovy" from "application.yml" in Grails 3 | |
// which will be an easy porting experiance from Grails 2.* to Grails 3 | |
// In future, this can be added to a grails command and/or added to a Grails profile. | |
import org.springframework.beans.factory.config.YamlMapFactoryBean | |
import org.springframework.core.io.ClassPathResource | |
import org.springframework.core.io.Resource | |
YamlMapFactoryBean factory = new YamlMapFactoryBean() |
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
=== CONSOLE FALLBACK: SERIAL PORT, SINCE NO HDMI SUPPORT IS PROVIDED IN THIS BUILD === | |
Tinkerboard Kernel console serial port: UART2. | |
Using: Raspberry Pi as a console client. Disable local console so it can be used by minicom: | |
# systemctl mask serial-getty@ttyAMA0.service | |
==PINOUTS== | |
RASPI: PIN 6 (GND, GREEN), PIN 8 (TX, WHITE), PIN 10 (RX, BLUE) | |
TINKERBOARD: ====== Uses UART2 and NOT UART0!!!!!!!! ====== | |
PIN30 (GND, GREEN), PIN 32 (TX, BLUE), PIN 33 (RX, WHITE) |
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
<% | |
String markDownServerPath = request.getServletPath().toString().replace(".gsp",".md"); | |
String filepathBase = 'C:/sites/devnet_content/dpslate/source'; | |
String markDownMachinePath = filepathBase + markDownServerPath; | |
def file = new File(markDownMachinePath); | |
if(file.exists()){ | |
println markdown.renderHtml(['text' : file.text]) | |
}else{ | |
println "You need to make a file: markDownServerPath" |