Skip to content

Instantly share code, notes, and snippets.

View szepeviktor's full-sized avatar
🍓
Guess I'm the lone ranger keeping it all running.

Viktor Szépe szepeviktor

🍓
Guess I'm the lone ranger keeping it all running.
View GitHub Profile
@szepeviktor
szepeviktor / interfood.js
Last active January 30, 2024 22:23
Összpontosítás az Interfoodra https://www.interfood.hu/etlap-es-rendeles/
// Nagy betűk
document.querySelectorAll(".food-etlap-szoveg").forEach(function (text) {text.style.fontSize="16px"; text.style.lineHeight=1.2;});
// Teljes szélességű táblázat
document.querySelectorAll(".food-table.top").forEach(function (element) {element.style.width="100%";});
document.querySelectorAll(".row").forEach(function (element) {element.style.maxWidth="none";});
// A kis adagos menük elrejtése
document.querySelectorAll("[id^='sorszuro_id-'][id$='K']").forEach(function (menuRow) {menuRow.style.display="none";});
@felixarntz
felixarntz / server-timing-extra.php
Last active August 9, 2023 05:23
Mini WordPress plugin that uses the Server Timing API of the Performance Lab plugin (also see https://github.com/WordPress/performance/pull/553) to capture additional metrics
<?php
/**
* Plugin Name: Server Timing Extra
* Plugin URI: https://gist.github.com/felixarntz/63c05392dbf7d51cc7f8f4a424b1ff39
* Description: Exposes additional Server-Timing metrics using the Performance Lab plugin's Server Timing API.
* Requires at least: 6.1
* Requires PHP: 5.6
* Version: 0.1.0
* Author: Felix Arntz
* Author URI: https://felix-arntz.me
@szepeviktor
szepeviktor / éléskamra.md
Last active October 18, 2024 00:23
Éléskamra 🍇 🍈 🍉 🍊 🍋 🍌 🍍 🥭 🍎 🍏 🍐 🍑 🍒 🍓 🥝 🍅 🥥 🥑 🥔 🥕 🌽 🌶️ 🥒 🥬 🥦 🧄 🧅

Éléskamra

Meleg étel

  • Hikari enjuku koji miso soup (円熟こうじみそ) 155,2 g 🇯🇵
  • Pizzás csiga 70 g
  • Sajttal szórt stangli 80 g
  • Dr. Willi Knoll zsemlegombóc 200 g
  • Mug Shot Mac & Cheese instant tészta 68 g
  • Nissin Cup Noodles marhahúsos 64 g
@szepeviktor
szepeviktor / Robust.md
Last active June 12, 2022 11:44
Miből áll az üzembiztonság?

Mivel lehet elérni az üzembiztonságot?

A hibák az emberekből jönnek.

  • vezető és vízió
  • szakértő (szakosodott) munkatársak
  • cégszervezés, cégen belüli kommunikáció
  • szolgáltató választás (specializált szolgáltatók)
  • Szolgáltató Gazda, Szolgáltató Gazdaasszony (szolgáltatók ismerete és adminisztrálása, felhasználókezelés, hozzáférés a céges email fiókhoz, bankkártyához, telefonhoz, 2FA eszközhöz)
  • technológia és szoftver választás
@szepeviktor
szepeviktor / facebook-dc.md
Last active October 30, 2024 18:31
Facebook Data Center locations
@szepeviktor
szepeviktor / Principles.md
Last active May 10, 2021 19:19
Principles for manufacturing web applications

Principles

All problems come from humans.

TL;DR

You need a vision and a leader.

Team behaviour

@szepeviktor
szepeviktor / viktor-pricelist.md
Last active June 8, 2021 12:33
Price list of viktor🤖

Prices

I make your web application's life happy.

Hourly rate ⏲️

€29/hour

I take small jobs rarely.

@szepeviktor
szepeviktor / Onboarding-fast-lane.md
Last active February 5, 2021 14:01
Fast lane! 💺 Fasten your seatbelts.

Infrastructure and application setup for new clients

Welcome to the process of setting up your infrastructure and your application!

Requirements

  1. One person able to consider things, decide and act
  2. If moving: access to accounts at all providers below
  3. Company details (registered name, registration number, address)
  4. Access to company email account
<?php
class SecureJSON
{
public $array;
public $key;
public function __construct(array $array)
{
@szepeviktor
szepeviktor / google-search-ads-old-style.js
Last active August 21, 2020 07:45
Google Search ads old green style
// ==UserScript==
// @name Google Search old green ads
// @description Mark ads with green "Ad" tag
// @author https://gist.github.com/szepeviktor/83f8f1f12a10fb17bc222710d50b4452
// @icon https://www.google.com/favicon.ico
// @version 0.7.0
// @grant none
// @run-at document-idle
// @include https://www.google.*/search?*
// ==/UserScript==