Skip to content

Instantly share code, notes, and snippets.

View DennisDenuto's full-sized avatar

Dennis Leon DennisDenuto

  • Sydney, Australia
View GitHub Profile
pragma solidity >=0.7.0 <0.9.0;
interface cETH {
// define functions of COMPOUND we'll be using
function mint() external payable; // to deposit to compound
function redeem(uint redeemTokens) external returns (uint); // to withdraw from compound
kubectl api-resources --verbs=list --namespaced -o name \
| xargs -n 1 kubectl get --show-kind --ignore-not-found -l <label>=<value> -n <namespace>
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDAJVSAUwLwNDPMSRBarUsGx4qON89ZPh1ugzRASsT5sRhDTor+JnbqLImvOlycBw4bD9IMiYPNtCQHDdAS4J0sMXwdvZ/JI+FcKN85e/3hPEymbRL17gMja8+97XPtAE17C50+nlIFRoI/1XZn6DNJGNrwnp0N0fWHvj635b697TJjG0kgFHCzSVLpOUiPe+EPXdsEp8Knsj0EIdEeCPgKgHLMwFDj7DnMCI4SzJGEABsLFsoXLMT/ZqeNP/VZnTU/mv7YhKd/hZJl/zyExwuctqirkrh+rWgblb/K5Qoi68TJHQcYQ79ELyxgrSrnwuvkLcYYMu4nPMRVYTyl0pzGGFteLftgsF0K9HK6GNuJPGSP7yzPTBfGRRitOXGVh0u5LazV3ZgPtFo2u6j3aCfRSNQn4OlQ+wReyJs0tUE8yoWew5t2Ks9GuMMt4cWzMOWNvZjCFepuFW6TbEnwTGiayqq6nYzLl0s5C5bR1AebYJAOJeWJLVZm8G9cVBd/OMs=
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import java.io.*;
/** Establish a SSL connection to a host and port, writes a byte and
* prints the response. See
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services
*/
public class SSLPoke {
public static void main(String[] args) {
package org.cloudfoundry.identity.uaa.cypto;
import org.bouncycastle.crypto.digests.SHA256Digest;
import org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator;
import org.bouncycastle.crypto.params.KeyParameter;
import org.junit.Test;
import javax.crypto.Cipher;
import javax.crypto.CipherInputStream;
import javax.crypto.CipherOutputStream;
@DennisDenuto
DennisDenuto / setup
Last active December 27, 2017 23:17
setup bosh-lite
mkdir -p ~/workspace/vbox
git clone https://github.com/cloudfoundry/bosh-deployment ~/workspace/bosh-deployment
git clone https://github.com/mariash/learn-bosh-release ~/workspace/learn-bosh-release
git clone https://github.com/cloudfoundry/cf-deployment ~/workspace/cf-deployment
# download and install bosh cli
https://bosh.io/docs/cli-v2.html
# download and install virtualbox
https://www.virtualbox.org/wiki/Downloads
@DennisDenuto
DennisDenuto / bosh deploy cf
Last active December 27, 2017 22:14
bosh-lite cf w/dns
bosh -d cf -e vbox deploy --no-redact -n ~/workspace/cf-deployment/cf-deployment.yml \
-o ~/workspace/cf-deployment/operations/use-compiled-releases.yml \
-o ~/workspace/cf-deployment/operations/bosh-lite.yml \
-o ~/workspace/cf-deployment/operations/experimental/use-bosh-dns-for-containers.yml \
-o ~/workspace/cf-deployment/operations/experimental/use-bosh-dns.yml \
--vars-store ~/workspace/vbox/deployment-vars.yml \
-v system_domain=bosh-lite.com
@DennisDenuto
DennisDenuto / ns_linux.go
Created November 29, 2017 18:04
possible fix for ns_linux.go
// Copyright 2015-2017 CNI authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@DennisDenuto
DennisDenuto / ns_linux_test.go
Last active November 29, 2017 18:04
Additional test for ns_linux_test.go
// Copyright 2016 CNI authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@DennisDenuto
DennisDenuto / gist:49b803f2c9c5c8f492ca055c419ea948
Created January 13, 2017 00:45
osx bosh install-dependencies
diff --git a/release/packages/nginx/packaging b/release/packages/nginx/packaging
index 757226e..b5e8229 100644
--- a/release/packages/nginx/packaging
+++ b/release/packages/nginx/packaging
@@ -22,7 +22,9 @@ pushd nginx-1.11.1
--add-module=../headers-more-nginx-module-0.30 \
--with-http_ssl_module \
--with-http_dav_module \
- --add-module=../nginx-upload-module-2.2
+ --add-module=../nginx-upload-module-2.2 \