A simple hexdump module for Python.
The preferred installation method is:
pip install simple-hexdump
function Get-AccessToken | |
{ | |
param | |
( | |
[Parameter()] | |
[System.Diagnostics.Process[]] | |
$Process | |
) | |
begin |
É uma linguagem formal que, através de uma série de instruções, permite que um programador escreva um conjunto de ordens, ações consecutivas, dados e algoritmos para criar programas que controlam o comportamento físico e lógico de uma máquina.
from collections import defaultdict | |
import boto3 | |
""" | |
A tool for retrieving basic information from the running EC2 instances. | |
""" | |
# Connect to EC2 | |
ec2 = boto3.resource('ec2') |
kubectl get pods --all-namespaces --sort-by='.metadata.name' -o jsonpath='{.items[*].spec.containers[*].resources.limits.memory}' | |
kubectl get pod --all-namespaces --sort-by='.metadata.name' -o json | jq -r '[.items[] | {pod_name: .metadata.name, containers: .spec.containers[] | [ {container_name: .name, memory_requested: .resources.requests.memory, cpu_requested: .resources.requests.cpu} ] }]' |
Patch mode allows you to stage parts of a changed file, instead of the entire file. This allows you to make concise, well-crafted commits that make for an easier to read history. This feature can improve the quality of the commits. It also makes it easy to remove parts of the changes in a file that were only there for debugging purposes - prior to the commit without having to go back to the editor.
It allows you to see the changes (delta) to the code that you are trying to add, and lets you add them (or not) separately from each other using an interactive prompt. Here's how to use it:
from the command line, either use
#!/bin/sh | |
VERSION=$1 | |
MODULES=`node -e "console.log(require('./package.json').workspaces.join(' '))"` | |
for MODULE in $MODULES; do | |
echo "Building $MODULE" | |
pushd $MODULE | |
npm version $VERSION --save | |
NAME=`node -e "console.log(require('./package.json').name)"` |