How To Fix DNS Lookup Issues on Macos Mojave 10.14.6
dscacheutil -flushcache System Preferences -> Network -> Advanced -> DNS -> Add 1.1.1.1, 8.8.4.4 and 8.8.8.8 at the top. If they are already there, CHANGE THE ORDER!
dscacheutil -flushcache System Preferences -> Network -> Advanced -> DNS -> Add 1.1.1.1, 8.8.4.4 and 8.8.8.8 at the top. If they are already there, CHANGE THE ORDER!
Problem: Running npm i gave me an UNABLE_TO_GET_ISSUER_CERT_LOCALLY error Solution:
1 |
npm config set registry http://registry.npmjs.org/ |
Full Error text:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
npm WARN package.json beat-cors-server@1.0.0 No repository field. npm http GET https://registry.npmjs.org/express npm http GET https://registry.npmjs.org/request npm http GET https://registry.npmjs.org/express npm http GET https://registry.npmjs.org/request npm http GET https://registry.npmjs.org/express npm http GET https://registry.npmjs.org/request npm ERR! Error: UNABLE_TO_GET_ISSUER_CERT_LOCALLY npm ERR! at SecurePair.<anonymous> (tls.js:1430:32) npm ERR! at SecurePair.emit (events.js:92:17) npm ERR! at SecurePair.maybeInitFinished (tls.js:1029:10) npm ERR! at CleartextStream.read [as _read] (tls.js:521:13) npm ERR! at CleartextStream.Readable.read (_stream_readable.js:341:10) npm ERR! at EncryptedStream.write [as _write] (tls.js:418:25) npm ERR! at doWrite (_stream_writable.js:226:10) npm ERR! at writeOrBuffer (_stream_writable.js:216:5) npm ERR! at EncryptedStream.Writable.write (_stream_writable.js:183:11) npm ERR! at write (_stream_readable.js:602:24) npm ERR! at flow (_stream_readable.js:611:7) npm ERR! at Socket.pipeOnReadable (_stream_readable.js:643:5) npm ERR! If you need help, you may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! <npm-@googlegroups.com> npm ERR! System Linux 4.14.181-108.257.amzn1.x86_64 npm ERR! command "node" "/usr/bin/npm" "i" npm ERR! cwd /volumes/data/www/dashboard/corsproxy npm ERR! node -v v0.10.48 npm ERR! npm -v 1.3.6 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /volumes/data/www/dashboard/corsproxy/npm-debug.log npm ERR! not ok code 0 |
1 2 3 4 |
sudo chgrp grafana /etc/letsencrypt/archive/www.yourdomain.com/privkey1.pem sudo chmod g+r /etc/letsencrypt/archive/www.yourdomain.com/privkey1.pem sudo vi /etc/grafana/grafana.ini sudo service grafana-server restart |
1 2 3 4 5 6 7 8 9 10 |
[server] # Protocol (http, https, socket) ;protocol = http protocol = https # https certs & key file ;cert_file = ;cert_key = cert_file = /etc/letsencrypt/archive/www.yourdomain.com/fullchain1.pem cert_key = /etc/letsencrypt/archive/www.yourdomain.com/privkey1.pem |
1 2 |
sudo vi /etc/grafana/grafana.ini sudo service grafana-server restart |
1 2 3 4 5 6 7 8 9 |
#################################### Anonymous Auth ###################### [auth.anonymous] # enable anonymous access ;enabled = false enabled = true # specify organization name that should be used for unauthenticated users ;org_name = Main Org. org_name = yourGrafanaOrgNameHere |
To render a panel image, you must install the Grafana Image Renderer plugin.
1 2 |
sudo grafana-cli plugins install grafana-image-renderer sudo service grafana-server restart |
1 2 3 4 5 6 |
find wordpress/wp-content/plugins -type d -exec chmod 2775 {} \; find wordpress/wp-content/plugins -type f -exec chmod 664 {} \; find wordpress/wp-content/themes -type d -exec chmod 2775 {} \; find wordpress/wp-content/themes -type f -exec chmod 664 {} \; find wordpress/wp-content/upgrade -type d -exec chmod 2775 {} \; find wordpress/wp-content/upgrade -type f -exec chmod 664 {} \; |
shell$ git log | head -1 commit a203e1bd04718bff10a3df4a3389c493c97c0432 Use the commit string as the last argument to the git revert command: shell$ git revert -m 1 a203e1bd04718bff10a3df4a3389c493c97c0432
Show commits and messages that match
1 |
git log --all --grep='SEARCH_STRING_HERE' |
Include code diffs
1 |
git log --all --grep='SEARCH_STRING_HERE' -p |
Include file names
1 |
git log --all --grep='SEARCH_STRING_HERE' --name-only |
1 2 3 4 5 6 7 8 9 10 11 12 |
my $stamp = strftime "%Y%m%d%H%M%S", gmtime time; ## in-place update for the file our $^I = ".$stamp"; local @ARGV = ($fullpath); while ( <ARGV> ) { if (/$regex/) { next; } # this print is the critical part to write the line back to the file print; } $^I = undef; |
1 2 3 |
use POSIX qw(strftime); my $stamp = strftime "%Y%m%d%H%M%S", localtime; my $stamp = strftime "%Y%m%d%H%M%S", gmtime; |