This file contains hidden or 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
{ | |
"$ref": "#/definitions/Coredns", | |
"$schema": "http://json-schema.org/draft-06/schema#", | |
"definitions": { | |
"Coredns": { | |
"additionalProperties": false, | |
"properties": { | |
"affinity": { | |
"default": { | |
"affinity": { |
This file contains hidden or 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
curl -X POST -H "Content-Type: text/xml; charset=utf-8" -H "SOAPAction:<SOAPACTION>" -d@<xml_payload> <url> > output.xml |
This file contains hidden or 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
python esptool.py --port COM3 write_flash -fs 1MB -fm dout 0x0 tosmota.bin |
This file contains hidden or 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
python esptool.py --port COM3 read_flash 0x00000 0x100000 sonoff_t1_backup.bin |
This file contains hidden or 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
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>sql-maven-plugin</artifactId> | |
<dependencies> | |
<dependency> | |
<groupId>com.h2database</groupId> | |
<artifactId>h2</artifactId> | |
<version>1.4.197</version> | |
</dependency> | |
</dependencies> |
This file contains hidden or 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
#Will print from an xml file the values from 2 tags like value1: value2 | |
find . -name *xml -exec xml_grep --cond '#SOME XPATH#' --cond '#SOME OTHER XPATH#' {} \; | awk 'NR%2{printf "%s: ",$0;next;}1' |
This file contains hidden or 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
# CERTS for NODE | |
set NODE_EXTRA_CA_CERTS=[path to certs] | |
# CERTS for AWS CLI | |
set AWS_CA_BUNDLE=[path to certs] | |
# CERTS for Python | |
set REQUESTS_CA_BUNDLE=[path to certs] |
This file contains hidden or 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
aws logs describe-log-groups | jq '.logGroups[].logGroupName' | sed s/\"//g | while read line; do aws logs delete-log-group --log-group-name $line; done | |
## Powershell friendly | |
aws logs describe-log-groups --query 'logGroups[*].[logGroupName]' --output text | foreach { aws logs delete-log-group --log-group-name $_ } |
This file contains hidden or 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
# this script uses syntax for bitbucket server. | |
# For bitbucket cloud see https://confluence.atlassian.com/bitbucket/use-the-bitbucket-cloud-rest-apis-222724129.html | |
# | |
# Note: replace username, password and PROJECTNAME with your values | |
USERNAME=xxxx | |
PASSWORD=xxxx | |
PROJECTNAME=xxxxx | |
HOST=xxxxx |