This process would likely apply to other Homebrew formula also.
First search for your desired package:
brew search goYou should get a list of results that include the below. Not "go" is very unspecific so you may get a lot of results:
This process would likely apply to other Homebrew formula also.
First search for your desired package:
brew search goYou should get a list of results that include the below. Not "go" is very unspecific so you may get a lot of results:
| #!/bin/bash | |
| max=10 | |
| end="" | |
| t=" " | |
| echo "interface Bind {" | |
| echo "${t}<T extends (...args: any[]) => any>(this: T, thisArg: any): T$end" | |
| for i in `seq 1 $max`; do | |
| echo -n "${t}<T extends (" |
| #!/bin/bash | |
| # install istio, add-ons, and roles | |
| # https://cloud.google.com/kubernetes-engine/docs/tutorials/istio-on-gke | |
| ISTIO_HOME="/Applications/istio-0.4.0" | |
| # required dashboard access and istio roles | |
| kubectl apply \ | |
| -f ./other/kube-system-cluster-admin.yaml \ |
| function get(obj, path, def) { | |
| var fullPath = path | |
| .replace(/\[/g, '.') | |
| .replace(/]/g, '') | |
| .split('.') | |
| .filter(Boolean); | |
| return fullPath.every(everyFunc) ? obj : def; | |
| function everyFunc(step) { |
| var obj = {b: 3, c: 2, a: 1}; | |
| _.sortKeysBy(obj); | |
| // {a: 1, b: 3, c: 2} | |
| _.sortKeysBy(obj, function (value, key) { | |
| return value; | |
| }); | |
| // {a: 1, c: 2, b: 3} |
| // Simulating infinite-length leading lookbehind in JavaScript. Uses XRegExp. | |
| // Captures within lookbehind are not included in match results. Lazy | |
| // repetition in lookbehind may lead to unexpected results. | |
| (function (XRegExp) { | |
| function prepareLb(lb) { | |
| // Allow mode modifier before lookbehind | |
| var parts = /^((?:\(\?[\w$]+\))?)\(\?<([=!])([\s\S]*)\)$/.exec(lb); | |
| return { |
There are two modes when you don't want Certbot to edit your configuration:
Webroot is better because it doesn't need to replace Nginx (to bind to port 80) to renew certificates.
In the following, we're setting up mydomain.com to be served from /var/www/mydomain, and challenges will be served from /var/www/letsencrypt.
| # applescript | |
| # add login item | |
| osascript -e 'tell application "System Events" to make login item at end with properties {name: "Notes",path:"/Applications/Notes.app", hidden:false}' | |
| # delete login item | |
| osascript -e 'tell application "System Events" to delete login item "itemname"' | |
| # list loginitems | |
| osascript -e 'tell application "System Events" to get the name of every login item' |
| @echo off | |
| CLS | |
| FOR /F "tokens=*" %%G IN ('dir /A:-D /b *.png') DO ( | |
| MV %%G %%G.temp | |
| pngcrush.exe %%G.temp %%G | |
| DEL %%G.temp | |
| ) | |
| PAUSE |