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
if [ -z "$1" ] | |
then | |
echo "Usage: create_credentials.sh <number_of_credentials>" | |
exit 1 | |
fi | |
for i in `seq 1 $1`; | |
do | |
name=$(openssl rand -base64 32 | tr -d /=+ | cut -c -16) | |
credhub generate -t password -n $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
if [ "$#" -ne 2 ]; then | |
echo "Usage: bump_version <version_number> <message>" | |
exit 1 | |
fi | |
VERSION=$1 | |
MESSAGE=$2 | |
# Update package.json | |
sed -i '' "s/\"version\": \"[[:digit:]]*.[[:digit:]]*.[[:digit:]]*\"/\"version\": \"${VERSION}\"/g" package.json |
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
public ByteString encrypt(ByteString input){ | |
System.out.println("Encrypting..."); | |
try { | |
Object lunaSlotManager = Class.forName("com.safenetinc.luna.LunaSlotManager").getDeclaredMethod("getInstance").invoke(null); | |
lunaSlotManager.getClass().getMethod("login", String.class, String.class).invoke(lunaSlotManager, PARITION_NAME, PARITION_PASSWORD); | |
Provider provider = (Provider) Class.forName("com.safenetinc.luna.provider.LunaProvider").newInstance(); | |
Security.addProvider(provider); | |
Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding", provider); |
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
[groups] | |
labels = ["nodejs"] | |
buildpacks = [ | |
{ id = "org.cloudfoundry.buildpacks.nodejs", version = '0.0.1' }, | |
{ id = "org.cloudfoundry.buildpacks.npm", version = '0.0.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
setInterval(() => { | |
[...document.getElementsByClassName("succeeded")].forEach((e) => { | |
e.style.background = '#328856'; | |
}); | |
[...document.getElementsByClassName("inner")].forEach((e) => { | |
e.style.whiteSpace = 'initial'; | |
e.style.fontSize = '40px'; | |
}); | |
}, 1000) |
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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
pingchan := make(chan string) | |
// Have a channel per callout group |
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
git clone "https://github.com/cloudfoundry/node-engine-cnb" | |
git clone "https://github.com/cloudfoundry/npm-cnb" | |
git clone "https://github.com/cloudfoundry/yarn-cnb" | |
git clone "https://github.com/cloudfoundry/python-cnb" | |
git clone "https://github.com/cloudfoundry/pip-cnb" | |
git clone "https://github.com/cloudfoundry/pipenv-cnb" | |
git clone "https://github.com/cloudfoundry/go-compiler-cnb" | |
git clone "https://github.com/cloudfoundry/go-mod-cnb" | |
git clone "https://github.com/cloudfoundry/dep-cnb" | |
git clone "https://github.com/cloudfoundry/openjdk-cnb" |
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
$ ./src/check.cr {source: {}, version: {}} | |
$./src/in.cr dest {"source":{"name":"ruby","type":"ruby","version_filter":"2.4.X"},"version":{"ref":"2.4.6"}} | |
STDOUT => {"ref":"2.4.6","url":"https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.6.tar.gz","sha256":"de0dc8097023716099f7c8a6ffc751511b90de7f5694f401b59f2d071db910be"} | |
RESOURCE => /dest/ruby-2.4.6.tar.gz |
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
package main | |
import ( | |
"fmt" | |
"os" | |
) | |
func main() { | |
exit(run()) | |
} |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
func main() { | |
type Animal struct { | |
Name string `json:"name"` |