https://serverfault.com/questions/617398/is-there-a-way-to-see-the-execution-tree-of-systemd
On NixOS:
> systemctl get-default
multi-user.target
https://serverfault.com/questions/617398/is-there-a-way-to-see-the-execution-tree-of-systemd
On NixOS:
> systemctl get-default
multi-user.target
The standard way of understanding the HTTP protocol is via the request reply pattern. Each HTTP transaction consists of a finitely bounded HTTP request and a finitely bounded HTTP response.
However it's also possible for both parts of an HTTP 1.1 transaction to stream their possibly infinitely bounded data. The advantages is that the sender can send data that is beyond the sender's memory limit, and the receiver can act on
| #!/usr/bin/env bash | |
| set -o pipefail | |
| slow_compute_hash() { | |
| find "$1" -type f -exec md5sum {} \; | sort -k 2 | md5sum | |
| } | |
| fast_compute_hash() { | |
| find "$1" -type f -print0 | sort -z | xargs -0 md5sum | md5sum | |
| } |
lnav -i https://gist.github.com/80d1d179c5706f85b281a5558217a5fe.git
# or
lnav -i [email protected]:80d1d179c5706f85b281a5558217a5fe.git| <div x-data="{ openTab: 1 }" class="flex flex-col-reverse"> | |
| <div class="hidden mt-6 w-full max-w-2xl mx-auto sm:block lg:max-w-none"> | |
| <div class="grid grid-cols-4 gap-6" aria-orientation="horizontal" role="tablist"> | |
| @foreach ($product->productImages as $productImage) | |
| <button x-on:click="{ openTab = {{ $loop->iteration }} }" id="tabs-1-tab-{{ $loop->iteration }}" | |
| class="relative h-24 bg-white rounded-md flex items-center justify-center text-sm font-medium uppercase text-gray-900 cursor-pointer hover:bg-gray-50 focus:outline-none focus:ring focus:ring-offset-4 focus:ring-opacity-50" | |
| aria-controls="tabs-1-panel-{{ $loop->iteration }}" | |
| :tabindex="openTab === {{ $loop->iteration }} ? 0 : -1" | |
| :aria-selected="openTab === {{ $loop->iteration }} ? 'true' : 'false'" | |
| role="tab" |
| // function | |
| function getYoutubeUrlId (url) { | |
| const urlObject = new URL(url); | |
| let urlOrigin = urlObject.origin; | |
| let urlPath = urlObject.pathname; | |
| // Örneğin url https://youtu.be/V-uynt7UXXI ise | |
| if (urlOrigin.search('youtu.be') > -1) { | |
| // substr yapma sebebimiz, youtube kısaltma linklerinde id path'de olur ve pathname başında "/" olur. | |
| // Örneğin "/V-uynt7UXXI" ise "V-uynt7UXXI" return eder. |
| <?php | |
| namespace App\Events; | |
| use Illuminate\Contracts\Broadcasting\ShouldBroadcast; | |
| use Illuminate\Queue\SerializesModels; | |
| class NewMessage extends Event implements ShouldBroadcast | |
| { | |
| #!/bin/bash | |
| ### MySQL Server Login Info ### | |
| MUSER="root" | |
| MPASS="root_password" | |
| MHOST="localhost" | |
| MYSQL="$(which mysql)" | |
| MYSQLDUMP="$(which mysqldump)" | |
| BAK="/path/to/export" | |
| # USE THIS CODE TO BACKUP ONLY ONE SPECIFIC DB |
If you're coming to this page in search of jq related AWS commands, but come from xpath or e4x (jsonpath) domains, then you may find this article helpful: https://github.com/stedolan/jq/wiki/For-JSONPath-users.
Another good learning site: https://shapeshed.com/jq-json/
The jq playground (live testing): https://jqplay.org
A lovely tutorial: https://programminghistorian.org/lessons/json-and-jq