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
| diff --git a/docs/USER_RECORD.md b/docs/USER_RECORD.md | |
| index 5335e145b5..9d6d8c1d03 100644 | |
| --- a/docs/USER_RECORD.md | |
| +++ b/docs/USER_RECORD.md | |
| @@ -273,9 +273,6 @@ This must be a string, and should follow the semantics defined in the | |
| It's probably wise to use a location string processable by geo-location subsystems, but this is not enforced nor required. | |
| Example: `Berlin, Germany` or `Basement, Room 3a`. | |
| -`birthDate` → A string in ISO 8601 calendar date format (`YYYY-MM-DD`) indicating the user's date | |
| -of birth. The earliest representable year is 1900. This field is optional. |
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
| # Check server process is using jemalloc | |
| # ref. [Japanese] https://tech.studyplus.co.jp/entry/2019/09/09/094140 | |
| class AppController < ActionController::Base | |
| def show | |
| r = `strings /proc/#{Process.pid}/maps | grep jemalloc` | |
| render plain: "<h1>#{ENV['LD_PRELOAD'].presence || 'empty'}</h1><pre>#{r}</pre>" | |
| end | |
| end |
AWS S3 now uses JSON for CORS configuration and cors.json is minimal configuration for Rails 7 direct uploads.
-
Install Termux, an Android terminal emulator that provides a Linux execution environment and various tools.
-
Update system packages in Termux:
$ pkg update -y
- Scaling k8s daemonset down to zero
kubectl -n kube-system patch daemonset myDaemonset -p '{"spec": {"template": {"spec": {"nodeSelector": {"non-existing": "true"}}}}}'
- Scaling up k8s daemonset
kubectl -n kube-system patch daemonset myDaemonset --type json -p='[{"op": "remove", "path": "/spec/template/spec/nodeSelector/non-existing"}]'
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
| After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work. | |
| The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0." | |
| Database files have to be updated before starting the server, here are the steps that had to be followed: | |
| # need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default | |
| brew unlink postgresql | |
| brew install postgresql@9.6 | |
| brew unlink postgresql@9.6 | |
| brew link postgresql |
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
| import { | |
| HttpInterceptor, | |
| HttpRequest, | |
| HttpResponse, | |
| HttpHandler, | |
| HttpEvent | |
| } from '@angular/common/http'; | |
| import 'rxjs/add/operator/map'; | |
| @Injectable() |
NewerOlder
