sw_vers— Print Mac OS X operating system version informationsystem_profiler— Reports system hardware and software configuration.system_profiler SPHardwareDataType— Hardware overview.hostinfo— Host information.nvram -p— Print all of the firmware variables.getconf DARWIN_USER_CACHE_DIR— Retrieve standard configuration variables/usr/libexec/path_helper— Helper for constructing PATH environment variable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Copyright 2020 The gRPC Authors | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // run in chrome -> sources -> snippets at | |
| // chrome-extension://[extension-id]/window.html | |
| async function storageGet(storageType, space = 2) { | |
| let storage_fn; | |
| if (storageType === 'local') { | |
| storage_fn = chrome.storage.local; | |
| } else if (storageType === 'sync') { | |
| storage_fn = chrome.storage.sync; | |
| } else { |
l | tail +2— Skip first line of stdoutl | head -n-1— Skip last line of stdout (GNU version only)echo "test" | head -c-1— Remove last newlinecomm -12 <(echo 1; echo 2) <(echo 1; echo 2; echo 3)— Shows intersection (here1 2).cat template.txt | envsubst— substitutes environment variables in fileecho 123abc | od -c -t d1— Show decimal dumpecho 123abc | xxd— Show a hexdump (or do the reverse)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package hello; | |
| import io.grpc.ManagedChannel; | |
| import io.grpc.ManagedChannelBuilder; | |
| import io.grpc.stub.ClientCallStreamObserver; | |
| import io.grpc.stub.StreamObserver; | |
| import java.util.concurrent.TimeUnit; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; acceleration_enabled = {acceleration_enabled} | |
| ; acceleration_infill = {acceleration_infill} | |
| ; acceleration_ironing = {acceleration_ironing} | |
| ; acceleration_layer_0 = {acceleration_layer_0} | |
| ; acceleration_prime_tower = {acceleration_prime_tower} | |
| ; acceleration_print = {acceleration_print} | |
| ; acceleration_print_layer_0 = {acceleration_print_layer_0} | |
| ; acceleration_roofing = {acceleration_roofing} | |
| ; acceleration_skirt_brim = {acceleration_skirt_brim} | |
| ; acceleration_support = {acceleration_support} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright 2015 The gRPC Authors | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS IS" BASIS, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sqlite3 ~/Library/Safari/CloudTabs.db "SELECT device.device_name, tab.url FROM cloud_tabs AS tab JOIN cloud_tab_devices AS device ON tab.device_uuid=device.device_uuid" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env zsh | |
| # ------------------------------------------------------------------------------ | |
| # Prompt for the Zsh shell: | |
| # * One line. | |
| # * VCS info on the right prompt. | |
| # * Only shows the path on the left prompt by default. | |
| # * Crops the path to a defined length and only shows the path relative to | |
| # the current VCS repository root. | |
| # * Wears a different color wether the last command succeeded/failed. | |
| # * Shows user@hostname if connected through SSH. |
NewerOlder