I provide you with 3 jq lib functions that will help you in converting between snake_case and CamelCase.
I want to change keys in my json from camelcase to snake_case.
| """ | |
| in x_dim s d=3 n=2 | |
| in y_dim s d=3 n=2 | |
| in theta s d=1.0471973 n=2 | |
| in alpha s d=0. n=2 | |
| out verts v | |
| out edges s | |
| out faces s | |
| """ |
| // Only export the things that are actually needed, cut out everything else | |
| export { WebGLRenderer } from 'three/src/renderers/WebGLRenderer.js' | |
| export { ShaderLib } from 'three/src/renderers/shaders/ShaderLib.js' | |
| export { UniformsLib } from 'three/src/renderers/shaders/UniformsLib.js' | |
| export { UniformsUtils } from 'three/src/renderers/shaders/UniformsUtils.js' | |
| export { ShaderChunk } from 'three/src/renderers/shaders/ShaderChunk.js' | |
| export { Scene } from 'three/src/scenes/Scene.js' | |
| export { Mesh } from 'three/src/objects/Mesh.js' | |
| export { LineSegments } from 'three/src/objects/LineSegments.js' |
In testing environments, it is not always useful repeating tasks which can cost developers valuable time. Within a project its safe to assume that not all files are changed, so why rebuild?
This tutorial outlines a method to reduce unnecessarly build steps. Use your best judgement of course. It might be useful to add in a build on occassion to ensure third party dependencies are available and will not disrupt a production deployment.
The git plugin in Jenkins provides several useful environment variables which can be used to avoid build tasks. Make sure you setup the git plugin before going any further.
| FROM nginx:alpine AS builder | |
| # nginx:alpine contains NGINX_VERSION environment variable, like so: | |
| # ENV NGINX_VERSION 1.15.0 | |
| # Our NCHAN version | |
| ENV NCHAN_VERSION 1.1.15 | |
| # Download sources | |
| RUN wget "http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz" -O nginx.tar.gz && \ |
| #!/bin/bash | |
| # ============================================================================= | |
| # Author: Chu-Siang Lai / chusiang (at) drx.tw | |
| # Filename: teams-chat-post-for-workflows.sh | |
| # Modified: 2024-07-22 11:44 (UTC+08:00) | |
| # Description: Post a message to Microsoft Teams via "Post to a chat when a webhook request is received" workflows. | |
| # Reference: | |
| # | |
| # - https://gist.github.com/chusiang/895f6406fbf9285c58ad0a3ace13d025 | |
| # - https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/ |
jq will sort (-S) the whole file (.) and compare STDOUT (<()) with diff
diff <(jq -S . A.json) <(jq -S . B.json)
Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.
This is just a picture of this link from March 2, 2019
Originally, I had included some other solution
On my iMac 5k (iMac15,1) since the update on macOS 10.12.4 sudo is very slow.
It takes about 5 minutes to the password prompt.
The problem is not on my MacBook Pro (MacBookPro13,1) with the same operating system 10.12.4.
With 10.12.3. I had no problems on the iMac.
| /* eslint-env jest */ | |
| import _ from 'lodash' | |
| import path from 'path' | |
| import fs from 'fs' | |
| import callsites from 'callsites' | |
| import knex from 'knex' | |
| import hash from 'object-hash' | |
| import conf from '<conf>' | |
| // Get the db config. |