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 | |
# Example: echo "Hello" | telegram.sh | |
# | |
message="$@" | |
apiToken=395177535:AAEDYijg_MMbPComaJVdplFfLX43ytdjEyc | |
chatId=-233825489 | |
send() { | |
curl -s \ |
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
insert into CM_SPLICE_MACHINE | |
select ID, MACHINE_ID from CM_SPLICE; |
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
@Grab(group='com.github.groovy-wslite', module='groovy-wslite', version='0.7.2') | |
import wslite.rest.* | |
import wslite.http.auth.* | |
println "This is the add user script" | |
def client = new RESTClient("http://localhost:8080/api/jsonws/") | |
client.authorization = new HTTPBasicAuthorization("test@liferay.com", "test") | |
client.httpClient.sslTrustAllCerts = true |