Skip to content

Instantly share code, notes, and snippets.

View devfelipereis's full-sized avatar

Felipe Gonçalves dos Reis devfelipereis

View GitHub Profile
# Get the K8S_URL and Token from Rancher Cluster level Kubeconfig (logged in as the CI user)
export K8S_URL=https://<rancherurl>/k8s/clusters/<clusterid>
export TOKEN=<RANCHERTOKEN>
export NAMESPACE=<kubernetes-namespace>
# Typically these are identical. Check from the YAML file of your deployment.
export DEPLOYMENT=<deployment-name>
export CONTAINER=<container-name>
# The docker-image-version must be updated every time you built a new container.
@nashfive
nashfive / hexStringToUint16.dart
Created December 10, 2019 14:14
Convert a hexadecimal string to a Uint16
import 'dart:typed_data';
/// Converts [input] to a Uint16.
///
/// For example, _decodeToUint16("734c") slices [input] into 2 substrings
/// of 2 hexa characters ('73' and '4c') and create a Uint8 list from their
/// respective decimal representation (i.e. [115, 76]).
///
/// Finally, it returns an unsigned 16-bits integer representation (little endian)
/// by using a [ByteData] view (i.e. '19571').
@vicenterusso
vicenterusso / flutter_beamer_cheat_sheet.md
Last active March 30, 2025 21:03
Flutter Beamer Cheat Sheet

Flutter Beamer Navigation Cheat Sheet

Dont forget:
  • beamingHistory is a collection of BeamLocations.
  • pop() goes back from stack ("inside" the current BeamLocation)
  • Back button should appear only when there are >1 page in the stack of current BeamLocation.

1. Beamer.of(context).beamTo