I hereby claim:
- I am httpsomkar on github.
- I am httpsomkar (https://keybase.io/httpsomkar) on keybase.
- I have a public key ASBNhI36wkdNBJoCcNlqDo86DxtmUitBBN6i1Kgutke4two
To claim this, I am signing this object:
| server { | |
| ... | |
| listen 443 ssl; | |
| ssl_protocols TLSv1.2; | |
| ... | |
| } |
| add_header Strict-Transport-Security: max-age=31536000 ; includeSubDomains; | |
| # TODO: Change hash more info https://owasp.org/www-project-secure-headers/ | |
| add_header Public-Key-Pins: pin-sha256="d6qzRu9zOECb90Uez27xWltNsj0e1Md7GkYYkVoZWmM="; pin-sha256="E9CZ9INDbd+2eRQozYqqbQ2yXLVKB9+xcprMF+44U1g="; report-uri="http://example.com/pkp-report"; max-age=10000; includeSubDomains; | |
| # disable it until it is a special requirement | |
| add_header X-Frame-Options: deny | |
| # If you have report url then =http://[YOURDOMAIN]/your_report_URI | |
| add_header X-XSS-Protection "1; mode=block" always; | |
| # Prevent the browser from interpreting files as a different MIME type | |
| add_header X-Content-Type-Options "nosniff" always; | |
| # Customize Content-Security-Policy according to your need to make it more strict for better effect. |
| export function ExampleForm() { | |
| const [intitialValue, setIntitalValue] = useState(null); | |
| useEffect(() => { | |
| setTimeout(() => { | |
| setIntitalValue({ | |
| email: 'This is my async email', | |
| }); | |
| }, 3000); |
| version: '3.6' | |
| services: | |
| postgres: | |
| image: postgres | |
| restart: always | |
| environment: | |
| POSTGRES_DB: keycloak | |
| POSTGRES_USER: keycloak | |
| POSTGRES_PASSWORD: keycloak |
I hereby claim:
To claim this, I am signing this object:
| # | |
| # Enable CEPH repos as described at http://ceph.com/docs/master/install/get-packages/#rpm | |
| # Install ceph-deploy package | |
| # | |
| apt update | |
| apt install ceph-deploy -y | |
| export DATA_DEV=vdb | |
| export FS_TYPE=xfs |
| #!/bin/bash | |
| sudo apt-get update | |
| sudo apt-get install \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| gnupg-agent \ | |
| software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
| // npm i papaparse --save | |
| const FILE_NAME = 'FILE_PATH'; | |
| const data = require('papaparse').parse(require('fs').readFileSync(FILE_NAME).toString(), { header: true }).data; | |
| fs.writeFileSync('test.json', JSON.stringify(data)); |
| #include <algorithm> | |
| #include <iostream> | |
| #include <string> | |
| #include <vector> | |
| using namespace std; | |
| int main() { | |
| int number_of_words; | |
| cout << "Enter the number of words: "; |
| import { Injectable } from '@angular/core'; | |
| @Injectable() | |
| export class ScriptLoaderService { | |
| constructor() { } | |
| loadScript(url: string) { | |
| return this.load(url, 'script'); | |
| } |