See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs
package main | |
import ( | |
"context" | |
"fmt" | |
"github.com/docker/cli/cli/connhelper" | |
"github.com/docker/docker/api/types" | |
"github.com/docker/docker/client" | |
"net/http" | |
"os" |
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
# Windows (receiver) side: | |
.\ffplay.exe -nodisp -ac 2 -acodec pcm_u8 -ar 48000 -analyzeduration 0 -probesize 32 -f u8 -i udp://0.0.0.0:18181?listen=1 | |
# Linux (transmitter) side: | |
pactl load-module module-null-sink sink_name=remote | |
ffmpeg -f pulse -i "remote.monitor" -ac 2 -acodec pcm_u8 -ar 48000 -f u8 "udp://RECEIVER:18181" | |
pavucontrol # Change the default output to the Null sink or move single applications to this "output" device. |
# Create a pscustomobject from a hashtable | |
$object = [pscustomobject]@{ Key1 = 'Val1' ; Key2 = 'Val2' } | |
# Grab all noteproperty members | |
$objMembers = $object.psobject.Members | where-object membertype -like 'noteproperty' | |
foreach ($member in $objMembers) { | |
# Now you can do what you want with the name and value. | |
$Member.name | |
$Member.Value |
import 'package:flutter/material.dart'; | |
import 'listanable_repo.dart'; | |
extension IterableExtensions<T> on Iterable<T> { | |
T? firstWhereOrNull(bool Function(T element) test) { | |
for (final element in this) { | |
if (test(element)) return element; | |
} | |
return null; | |
} |
See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs
# This file contains pin mappings for the Anycubic i3 Mega with | |
# Ultrabase from 2017. (This config may work on an Anycubic i3 Mega v1 | |
# prior to the Ultrabase if you comment out the definition of the | |
# endstop_pin in the stepper_z1 section.) To use this config, the | |
# firmware should be compiled for the AVR atmega2560. | |
# See the example.cfg file for a description of available parameters. | |
[stepper_x] | |
step_pin: PF0 |
[Environment variables][7] are a set of dynamic named values that can affect the way running processes will behave on a computer. The variables can be used both in scripts and on the command line. Environment variables makes it easy when certain standard directories and parameters need to be referenced but where the actual locations or names can vary from computer to computer.
This tutorial will show you a complete list of environment variables that can be used to reference standard directories and parameters in Windows 10.
# Extended python -m http.serve with --username and --password parameters for | |
# basic auth, based on https://gist.github.com/fxsjy/5465353 | |
from functools import partial | |
from http.server import SimpleHTTPRequestHandler, test | |
import base64 | |
import os | |
class AuthHTTPRequestHandler(SimpleHTTPRequestHandler): |