Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Example: echo "Hello" | telegram.sh
#
message="$@"
apiToken=395177535:AAEDYijg_MMbPComaJVdplFfLX43ytdjEyc
chatId=-233825489
send() {
curl -s \
insert into CM_SPLICE_MACHINE
select ID, MACHINE_ID from CM_SPLICE;
@nikmonkov
nikmonkov / gist:d5ba68af0592ce5d9b385481b40b0417
Created July 26, 2017 02:10 — forked from kastork/gist:5118301
Add a Liferay user via JSON Web Service
@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