Skip to content

Instantly share code, notes, and snippets.

View adrianescutia's full-sized avatar
💭
🐳 Simplifying Kubernetes and Experimenting

Adrian Escutia Soto adrianescutia

💭
🐳 Simplifying Kubernetes and Experimenting
View GitHub Profile
@adrianescutia
adrianescutia / openshift-role4logs-only.yaml
Last active April 6, 2022 19:02
Role and RoleBinding for OpenShift (and Kubernetes) to get the pods and logs ONLY
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: logging-user:list-and-logs
namespace: YOUR-NAMESPACE
rules:
- apiGroups:
- ''
resources:
@adrianescutia
adrianescutia / ProposalNamesForConstructor.sol
Last active August 14, 2020 00:35
Smart Contract to create the array needed to test Remix example of 3_Ballot.sol, with this array you would be able of deployment & run Ballot
pragma solidity >=0.6.6 <0.7.0;
/**
* @title ProposalNamesForConstructor
* @dev Implements a Contract to create the array to test 3_Ballot.sol deployment & runs it
* Based on stackexchange answer: https://ethereum.stackexchange.com/a/59172
*/
contract ProposalNamesForConstructor {
function getBytes32ArrayForInput() pure public returns (bytes32[3] memory b32Arr) {
b32Arr = [bytes32("candidate1"), bytes32("c2"), bytes32("c3")];