How to configure your Mac to use DNS over TLS in five easy steps:
-
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby -
Edit the configuration file:
| brew unlink thrift | |
| brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/9d524e4850651cfedd64bc0740f1379b533f607d/Formula/thrift.rb |
| from hashlib import md5 | |
| from base64 import b64decode | |
| from base64 import b64encode | |
| from Crypto.Cipher import AES | |
| # Padding for the input string --not | |
| # related to encryption itself. | |
| BLOCK_SIZE = 16 # Bytes | |
| pad = lambda s: s + (BLOCK_SIZE - len(s) % BLOCK_SIZE) * \ |
| """ | |
| Middleware to log all requests and responses. | |
| Uses a logger configured by the name of django.request | |
| to log all requests and responses according to configuration | |
| specified for django.request. | |
| """ | |
| # import json | |
| import logging | |
| from django.utils.deprecation import MiddlewareMixin |
| FROM python:3.4 | |
| ADD . /app/ | |
| WORKDIR /app/ | |
| RUN pip install -r requirements.txt | |
| CMD ["echo", "hello"] |
| const axios = require('axios') | |
| /* ... */ | |
| const params = new URLSearchParams() | |
| params.append('name', 'Akexorcist') | |
| params.append('age', '28') | |
| params.append('position', 'Android Developer') | |
| params.append('description', 'birthdate=25-12-1989&favourite=coding%20coding%20and%20coding&company=Nextzy%20Technologies&website=http://www.akexorcist.com/') | |
| params.append('awesome', true) |
| version: "3" | |
| networks: | |
| monitoring: | |
| services: | |
| cadvisor: | |
| image: google/cadvisor:${CADVISOR_VERSION:-v0.26.1} | |
| networks: | |
| - monitoring |
How to configure your Mac to use DNS over TLS in five easy steps:
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby
Edit the configuration file:
| use std::thread; | |
| use std::sync::mpsc; | |
| use std::sync::Arc; | |
| use std::sync::Mutex; | |
| enum Message { | |
| NewJob(Job), | |
| Terminate, | |
| } |
| /** | |
| * useScroll React custom hook | |
| * Usage: | |
| * const { scrollX, scrollY, scrollDirection } = useScroll(); | |
| */ | |
| import { useState, useEffect } from "react"; | |
| export function useScroll() { | |
| const [lastScrollTop, setLastScrollTop] = useState(0); |
| from oauth2client.service_account import ServiceAccountCredentials | |
| import httplib2 | |
| import json | |
| import pandas as pd | |
| # https://developers.google.com/search/apis/indexing-api/v3/prereqs#header_2 | |
| JSON_KEY_FILE = "json_key_file_downloaded_after_creating_your_google_service_account_see_above_details_on_how_to_do.json" | |
| SCOPES = ["https://www.googleapis.com/auth/indexing"] |