- Windows 10/11 with WSL 2 and your Laravel project working under WSL.
- Chocolatey installed on Windows (for easy Caddy install).
- A
.test(or similar) hostname mapped to127.0.0.1(we’ll set that up below).
Discover gists
| // Please find the full, tested version in | |
| // https://github.com/influxdata/influxdb_iox/blob/fe155e15fb2ad166aee66b0458e63c24a8128dd4/query/src/exec/task.rs#L101-L118 | |
| pub struct DedicatedExecutor { | |
| state: Arc<Mutex<State>>, | |
| } | |
| /// Runs futures (and any `tasks` that are `tokio::task::spawned` by | |
| /// them) on a separate Tokio Executor | |
| struct State { |
I recently got myself a Yubikey and wanted to set up the Yubico Authenticator with all the OTPs I had in Google Authenticator. Unfortunately Yubico Authenticator doesn't support scanning the QR-code that the Google Authenticator generates when you export the OTP-keys, and it seemed like quite the daunting task to log in to every service to generate new OTP-keys. So I decided to have a look at the contents of the QR code, to see if I could import the keys into Yubico Authenticator in one go. Luckily I found a blog post by Alex Bakker that describes the data format.
Unfortunately, but likely for the best, the security policy of Google Authenticator won't allow you to take a screenshot of
This document describes xnu's use of the ARMv8.3-PAuth extension. Specifically, xnu uses ARMv8.3-PAuth to protect against Return-Oriented-Programming (ROP) and Jump-Oriented-Programming (JOP) attacks, which attempt to gain control flow over a victim program by overwriting return addresses or function pointers
https://code-boxx.com/html-video-player-with-playlist/
- No videos are provided, download your own.
- Edit
video.js, set the videos inlet playlist = [...].
Copyright by Code Boxx
I want to solve the following problem, but I’m stuck.
Please act as a “cognitive centrifuge.”
- Break the problem into exactly four numbered sub-problems.
- For each sub-problem, give me one concrete micro-action I can do in under 2 minutes that will either (a) make the problem smaller, or (b) give me new information.
- After the four micro-actions, add a one-line “momentum booster” I can say out loud to prime my brain to keep going.
- Format the whole thing so I can read it in <15 seconds.
Problem:
- Add a filter to git config by running the following command in bash inside the repo:
git config filter.strip-notebook-output.clean 'jupyter nbconvert --ClearOutputPreprocessor.enabled=True --to=notebook --stdin --stdout --log-level=ERROR'
-
Create a
.gitattributesfile inside the directory with the notebooks -
Add the following to that file:
| const timer = ms => new Promise(res => setTimeout(res, ms)); | |
| // Unretweet normally | |
| const unretweetTweet = async (tweet) => { | |
| await tweet.querySelector('[data-testid="unretweet"]').click(); | |
| await timer(250); | |
| await document.querySelector('[data-testid="unretweetConfirm"]').click(); | |
| console.log('****// Unretweeted Successfully //****') | |
| } |
| import json | |
| import collections | |
| json_string = """ | |
| { | |
| "a": 1, | |
| "a": 2, | |
| "b": [1,2,3], | |
| "b": "foo", | |
| "c": {"x":1, "y":2, "z":3, "a":4} |
