- XDebug v3+ inside Docker (e.g. php:7.3-apache Docker image)
- Running Docker v20.10+
- VSCode with PHP Debug Extension (Felix Becker)
- Using Docker Compose for orchestration
Discover gists
This file contains 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
server { | |
listen 80; | |
server_name example.wiki; | |
# this config assumes that MediaWiki is installed into /opt/mediawiki/w, | |
# so LocalSettings.php would be located at /opt/mediawiki/w/LocalSettings.php | |
root /opt/mediawiki; | |
index index.php; | |
# allow larger file uploads and longer script runtimes |
This file contains 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
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP | |
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K | |
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP | |
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S | |
SFZHH-2Y246-Z483L-EU92B-LNYUA | |
GSZVS-5W4WA-T9F2E-L3XUX-68473 | |
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS | |
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4 | |
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU | |
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS |
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
This Python scripts allows you to move your passwords from BitWarden to Apple iCloud.
You need to know:
- It ignores secure notes, credit cards and other types that are not passwords.
- It ignores BitWarden entries without usernames, passwords and URLs.
- It also ignores URLs that do not start with
http://
orhttps://
. - It normalizes all TOTP tokens, e.g.
wskg vtqa h5kl bhb4 v4v2 ybyo woc6 qme2
will be converted tootpauth://totp/example.com:dude@foo.bar?secret=WSKGVTQAH5KLBHB4V4V2YBYOWOC6QME2&issuer=example.com&algorithm=SHA1&digits=6&period=30
.
(It's not a file, do this before using)
- Have D3.js v4 implement in your project first.
- npm install --save d3-sankey
npm install --save @types/d3-sankey
This file contains 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
# Copyright (c) Meta Platforms, Inc. All Rights Reserved | |
import math | |
import os | |
import signal | |
import sys | |
import traceback | |
from pathlib import Path | |
from random import randint | |
import datetime |
This file contains 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
# Copyright (c) Meta Platforms, Inc. All Rights Reserved | |
import math | |
import numpy as np | |
import scipy | |
import torch.multiprocessing | |
from pathlib import Path | |
import torch | |
import hydra |
NewerOlder