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
| #!/bin/sh | |
| jq -n ' | |
| inputs | |
| | {"object": . , "filename": input_filename, "lineNumber": input_line_number} | |
| ' \ | |
| $(find extensions -maxdepth 2 -type f -name package.json) \ | |
| | jq -ns 'inputs' \ | |
| | jq ' | |
| .[] |
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
| # Specify "Wireless" for wireless card and "Ethernet" for wired card | |
| lshw -class network -json 2>/dev/null \ | |
| | jq --raw-output --monochrome-output ' | |
| .[] | |
| | select(.claimed and has("businfo")) | |
| | select(.description | contains("Wireless")) | |
| | .configuration.ip // "" | |
| ' |
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
| String emojiString = '๐ ๐ ๐ ๐ ๐ ๐ ๐คฃ ๐ ๐ ๐ ๐ ๐ ๐ ๐ฅฐ ๐ ๐คฉ ๐ ๐ โบ๏ธ โบ ๐ ๐ ๐ฅฒ ๐ ๐ ๐ ๐คช ๐ ๐ค ๐ค ๐คญ ๐คซ ๐ค ๐ค ๐คจ ๐ ๐ ๐ถ ๐ ๐ ๐ ๐ฌ ๐คฅ ๐ ๐ ๐ช ๐คค ๐ด ๐ท ๐ค ๐ค ๐คข ๐คฎ ๐คง ๐ฅต ๐ฅถ ๐ฅด ๐ต ๐คฏ ๐ค ๐ฅณ ๐ฅธ ๐ ๐ค ๐ง ๐ ๐ ๐ โน๏ธ โน ๐ฎ ๐ฏ ๐ฒ ๐ณ ๐ฅบ ๐ฆ ๐ง ๐จ ๐ฐ ๐ฅ ๐ข ๐ญ ๐ฑ ๐ ๐ฃ ๐ ๐ ๐ฉ ๐ซ ๐ฅฑ ๐ค ๐ก ๐ ๐คฌ ๐ ๐ฟ ๐ โ ๏ธ โ ๐ฉ ๐คก ๐น ๐บ ๐ป ๐ฝ ๐พ ๐ค ๐บ ๐ธ ๐น ๐ป ๐ผ ๐ฝ ๐ ๐ฟ ๐พ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ โฃ๏ธ โฃ ๐ โค๏ธ โค ๐งก ๐ ๐ ๐ ๐ ๐ค ๐ค ๐ค ๐ฏ ๐ข ๐ฅ ๐ซ ๐ฆ ๐จ ๐ณ๏ธ ๐ณ ๐ฃ ๐ฌ ๐๏ธโ๐จ๏ธ ๐โ๐จ๏ธ ๐๏ธโ๐จ ๐โ๐จ ๐จ๏ธ ๐จ ๐ฏ๏ธ ๐ฏ ๐ญ ๐ค ๐ ๐๐ป ๐๐ผ ๐๐ฝ ๐๐พ ๐๐ฟ ๐ค ๐ค๐ป ๐ค๐ผ ๐ค๐ฝ ๐ค๐พ ๐ค๐ฟ ๐๏ธ ๐ ๐๐ป ๐๐ผ ๐๐ฝ ๐๐พ ๐๐ฟ โ โ๐ป โ๐ผ โ๐ฝ โ๐พ โ๐ฟ ๐ ๐๐ป ๐๐ผ ๐๐ฝ ๐๐พ ๐๐ฟ ๐ ๐๐ป ๐๐ผ ๐๐ฝ ๐๐พ ๐๐ฟ ๐ค ๐ค๐ป ๐ค๐ผ ๐ค๐ฝ ๐ค๐พ ๐ค๐ฟ ๐ค ๐ค๐ป ๐ค๐ผ ๐ค๐ฝ ๐ค๐พ ๐ค๐ฟ โ๏ธ โ โ๐ป โ๐ผ โ๐ฝ โ๐พ โ๐ฟ ๐ค ๐ค๐ป ๐ค๐ผ ๐ค๐ฝ ๐ค๐พ ๐ค๐ฟ ๐ค ๐ค๐ป ๐ค๐ผ ๐ค๐ฝ ๐ค๐พ ๐ค๐ฟ ๐ค ๐ค๐ป ๐ค๐ผ ๐ค๐ฝ ๐ค๐พ ๐ค๐ฟ ๐ค ๐ค๐ป ๐ค๐ผ ๐ค๐ฝ ๐ค๐พ ๐ค๐ฟ ๐ ๐๐ป ๐๐ผ ๐๐ฝ ๐๐พ ๐๐ฟ ๐ ๐๐ป ๐๐ผ ๐๐ฝ ๐๐พ ๐๐ฟ ๐ ๐๐ป ๐๐ผ ๐๐ฝ ๐๐พ ๐๐ฟ ๐ ๐๐ป ๐๐ผ ๐๐ฝ ๐๐พ ๐๐ฟ ๐ ๐๐ป ๐๐ผ ๐๐ฝ ๐๐พ ๐๐ฟ โ๏ธ โ โ๐ป โ๐ผ โ๐ฝ โ๐พ โ๐ฟ ๐ ๐๐ป ๐๐ผ ๐๐ฝ ๐๐พ ๐๐ฟ ๐ ๐๐ป ๐๐ผ ๐๐ฝ ๐๐พ ๐๐ฟ โ โ๐ป โ๐ผ โ๐ฝ โ๐พ โ๐ฟ ๐ ๐๐ป ๐๐ผ ๐๐ฝ ๐๐พ ๐๐ฟ ๐ค ๐ค๐ป ๐ค๐ผ ๐ค๐ฝ ๐ค๐พ ๐ค๐ฟ ๐ค ๐ค๐ป ๐ค๐ผ ๐ค๐ฝ ๐ค๐พ ๐ค๐ฟ ๐ ๐๐ป ๐๐ผ ๐๐ฝ ๐๐พ ๐๐ฟ ๐ ๐๐ป ๐๐ผ ๐๐ฝ ๐๐พ ๐๐ฟ ๐ ๐๐ป ๐๐ผ ๐๐ฝ ๐๐พ ๐๐ฟ ๐คฒ ๐คฒ๐ป ๐คฒ๐ผ ๐คฒ๐ฝ ๐คฒ๐พ ๐คฒ๐ฟ ๐ค ๐ ๐๐ป ๐๐ผ ๐๐ฝ ๐๐พ ๐๐ฟ โ๏ธ โ โ๐ป โ๐ผ โ๐ฝ โ๐พ โ๐ฟ ๐ ๐ ๐ป ๐ ๐ผ ๐ ๐ฝ ๐ ๐พ ๐ ๐ฟ ๐คณ ๐คณ๐ป ๐คณ๐ผ ๐คณ๐ฝ ๐คณ๐พ ๐คณ๐ฟ ๐ช ๐ช๐ป ๐ช๐ผ ๐ช๐ฝ ๐ช๐พ ๐ช๐ฟ ๐ฆพ ๐ฆฟ ๐ฆต ๐ฆต๐ป ๐ฆต๐ผ ๐ฆต๐ฝ ๐ฆต๐พ ๐ฆต๐ฟ ๐ฆถ ๐ฆถ๐ป ๐ฆถ๐ผ ๐ฆถ๐ฝ ๐ฆถ๐พ ๐ฆถ๐ฟ ๐ ๐๐ป ๐๐ผ ๐๐ฝ ๐๐พ ๐๐ฟ ๐ฆป ๐ฆป๐ป ๐ฆป๐ผ ๐ฆป๐ฝ |
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
| String hook = 'https://outlook.office.com/webhook/REDACTED/IncomingWebhook/REDACTED' | |
| Map payload = [ | |
| '@type': 'MessageCard', | |
| '@context': "http://schema.org/extensions", | |
| themeColor: "0076D7", | |
| summary: "Testing Teams web hooks", | |
| sections: [[ | |
| activityTitle: "Teams web-hook pinged by Jenkins", | |
| activitySubtitle: "Jenkins server", |
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
| #!/bin/sh | |
| git log --format=%s \ | |
| | sed --quiet \ | |
| --regexp-extended \ | |
| --expression 's/ *\].+$//' \ | |
| --expression 's/^ *\[ *//p' \ | |
| | sort --ignore-case \ | |
| | uniq --count \ | |
| | sort --numeric-sort --reverse |
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
| #!/bin/sh | |
| # this works fine both in Bash/ZSH and in POSIX mode of bash (bash --posix) | |
| join() { | |
| local IFS=$1 | |
| __="${*:2}" | |
| } | |
| # this works fine in Bash and Zsh but in POSIX mode leaks IFS to outer scope: | |
| join() { |
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
| interface Mappable { | |
| Map asMap() | |
| } | |
| abstract class AbstractMappableImpl implements Mappable { | |
| Set options | |
| Set getOptions() { |
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
| import static java.util.logging.Level.* | |
| import java.util.logging.Level | |
| import java.util.logging.Logger | |
| @groovy.transform.Field | |
| Level level = INFO | |
| @NonCPS | |
| void myLogger(String message) { |