Skip to content

Instantly share code, notes, and snippets.

View jprivet-dev's full-sized avatar

J.P. RIVET jprivet-dev

View GitHub Profile
@jprivet-dev
jprivet-dev / composer-generate-a-github-oauth-token.md
Last active December 9, 2021 15:58
Composer: Generate a Github Oauth token for privately hosted packages and repositories

Composer: Generate a Github Oauth token for privately hosted packages and repositories

Generate your personal access token

. Generate a new personal access token https://github.com/settings/tokens/new . Copy your token ghp_mytoken

Generate your auth.json

@jprivet-dev
jprivet-dev / README-with-toc-and-back-to-top.adoc
Last active March 25, 2024 09:33
README.adoc for GitHub project (startup Asciidoctor template)
:toc: macro
:toc-title: Summary
:toclevels: 3
:numbered:
ifndef::env-github[:icons: font]
ifdef::env-github[]
:status:
:outfilesuffix: .adoc
:caution-caption: :fire:
@jprivet-dev
jprivet-dev / kde-memento.adoc
Last active July 22, 2022 12:22
KDE Memento
:toc: macro
:toc-title: Summary
:toclevels: 3
:numbered:
ifndef::env-github[:icons: font]
ifdef::env-github[]
:status:
:outfilesuffix: .adoc
:caution-caption: :fire:
@jprivet-dev
jprivet-dev / StringUtil.php
Last active January 12, 2023 21:32
PHP - Tips
<?php
declare(strict_types=1);
namespace App\Util;
abstract class StringUtil
{
/**
* Replace the accents in a string.
@jprivet-dev
jprivet-dev / emulated-devices.md
Last active May 27, 2024 14:35
Emulated Devices - Customised devices for testing responsive behaviour in Chrome or Firefox devtools.

Emulated Devices

Customised devices for testing responsive behaviour in Chrome or Firefox devtools.

Chrome Emulated Device Label Viewport Width (px) Viewport Height (px) Physical Width (px) Physical Height (px) Device Pixel Ratio Type Dual Screen Ratio W/H
01. Bootstrap 375px - xs <576px (iPhone 6/7/8/X) 375 1000 375 1000 1.0 Mobile FALSE 0.38
02. Bootstrap 575px - xs <576px 575 1000 575 1000 1.0 Desktop FALSE 0.58
03. Bootstrap 576px - sm ≥576px 576 1000