Skip to content

Instantly share code, notes, and snippets.

View gander's full-sized avatar
🏠
It’s Not a Bug, It’s a Feature.

Adam Gąsowski gander

🏠
It’s Not a Bug, It’s a Feature.
View GitHub Profile
Aspekt Before (Node.js + Bun) After (Deno + Cliffy) Status
Runtime Node.js 20+ + Bun Deno 2.0+ ✅ MIGRATED
Framework Gluegun CLI Cliffy CLI ✅ MIGRATED
Dependencies 20+ npm packages 0 packages (URL imports) ✅ CLEANED
Build System TypeScript → JS compilation Native TS execution ✅ SIMPLIFIED
Testing Vitest framework Deno native testing ✅ MIGRATED
Configuration 5+ config files 1 deno.json ✅ MINIMIZED
Binary Size ~50MB ~500MB (full runtime) ⚠️ LARGER
Security npm audit Permission-based ✅ ENHANCED

Tabela uprawnień Fine-grained Personal Access Token (PAT) w GitHub

Poniższa tabela opisuje każde z głównych uprawnień dostępnych w Fine-grained PAT, wraz z przykładami operacji, które można dzięki nim wykonać, oraz potencjalnymi zagrożeniami w przypadku wycieku tokena.

Uprawnienie Co można zrobić Zagrożenia przy ujawnieniu
Repository metadata Odczyt nazwy repozytoriów, opisów, listy współpracowników, informacj
<?php
class PimcoreTinkerwellDriver extends TinkerwellDriver
{
public function canBootstrap($projectPath): bool
{
return true;
}
public function bootstrap($projectPath): void
@gander
gander / building:service.md
Created July 17, 2024 16:56
OpenStreetMap

Trafo

operator=Stoen Operator
operator:wikidata=Q11833155
building=service
power=substation
substation=minor_distribution
voltage=15000;400
frequency=50
ref=
@gander
gander / Dockerfile
Created February 20, 2024 17:54
Pimcore Docker
# env php.ini
ENV PHP_MEMORY_LIMIT "256M"
ENV PHP_POST_MAX_SIZE "100M"
ENV PHP_UPLOAD_MAX_FILESIZE "100M"
ENV PHP_DISPLAY_STARTUP_ERRORS 1
ENV PHP_MAX_EXECUTION_TIME "30"
ENV PHP_ERROR_REPORTING "E_ALL"
# opcache settings
ENV OPCACHE_ENABLE 1

Tinkerwell Driver for Pimcore

Put file PimcoreTinkerwellDriver.php in .tinkerwell directory

TinkerwellDriver

App\Provider\RepoDataProvider:
arguments:
$githubClient: !service
class: Symfony\Component\HttpClient\CachingHttpClient
arguments:
$client: '@github.client'
$store: !service
class: Symfony\Component\HttpKernel\HttpCache\Store
arguments:
$root: '%kernel.cache_dir%/http-client-github'
[
["http://localhost", [
["connect-src", "connect-src self http://localhost:23517/"]
]]
]
// ==UserScript==
// @name Redmine: Safe Time Entry
// @include https://*/issues/*
// @include https://*/time_entries/*
// ==/UserScript==
jQuery(document).on(
"input change click focus blur",
"#time_entry_hours",
function () {