Skip to content

Instantly share code, notes, and snippets.

@megahirt
megahirt / Docker with XDebug.md
Last active May 1, 2024 23:16
Debugging PHP with XDebug v3 inside Docker using VSCode

Debugging PHP with XDebug v3 inside Docker using VSCode

Assumptions / Prerequisites

  • 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

Objective

@WerySkok
WerySkok / MediaWiki.conf
Created October 8, 2023 20:26
NGINX config for MediaWiki
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
@leocomelli
leocomelli / git.md
Last active May 1, 2024 23:16
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

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
@steven2358
steven2358 / ffmpeg.md
Last active May 1, 2024 23:11
FFmpeg cheat sheet
@flaksp
flaksp / README.md
Last active May 1, 2024 23:06
Convert BitWarden JSON export file to Apple iCloud Keychain CSV import file saving TOTP and notes

BitWarden to Apple iCloud Keychain passwords converter

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:// or https://.
  • It normalizes all TOTP tokens, e.g. wskg vtqa h5kl bhb4 v4v2 ybyo woc6 qme2 will be converted to otpauth://totp/example.com:dude@foo.bar?secret=WSKGVTQAH5KLBHB4V4V2YBYOWOC6QME2&issuer=example.com&algorithm=SHA1&digits=6&period=30.
@MagicJohnJang
MagicJohnJang / Prerequisites.md
Last active May 1, 2024 23:05
D3-Sankey on Angular component + Typescript

(It's not a file, do this before using)

  1. Have D3.js v4 implement in your project first.
  2. npm install --save d3-sankey

npm install --save @types/d3-sankey

@Achleshwar
Achleshwar / __init__.py
Created May 1, 2024 22:07
Modified __init__ file for Panopli Lifting Trainer
# 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
@Achleshwar
Achleshwar / train_panopli_tensorf.py
Created May 1, 2024 22:02
Modified trainer code for Panopli Lifting to support training with PyTorch Ligthning>2.0.0
# 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
@PARC6502
PARC6502 / OpenSourceBaas.md
Last active May 1, 2024 23:03
List of open source, self hosted BaaS - Backend as a service

Backend as a Service

Supabase - ~52K stars

  • Designed explicitly as an open source firebase alternative
  • Typescript based
  • Docker support

Appwrite - ~32K stars

  • Written in JavaScript and PHP
  • Docker based
  • Realtime support across all services