Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🛩 Running your application

Viktor Szépe szepeviktor

💭
🛩 Running your application
View GitHub Profile
@szepeviktor
szepeviktor / Web-Application-Start.md
Created Nov 25, 2020
Start a Web Application with a clean slate
View Web-Application-Start.md

Start a Web Application with a clean slate

Define a clean vision. Make sure it is valid. Italics

@szepeviktor
szepeviktor / Principles.md
Last active Nov 26, 2020
Principles for manufacturing web applications
View Principles.md

Principles

All problems come from humans.

TL;DR

You need a vision and a leader.

Team behaviour

@szepeviktor
szepeviktor / viktor-pricelist.md
Last active Nov 21, 2020
Price list of viktor🤖
View viktor-pricelist.md

Prices

I make your web application's life happy.

Hourly rate ⏲️

€22/hour

I take small jobs rarely.

@szepeviktor
szepeviktor / step0.html
Last active Oct 9, 2020
Proper JavaScript loading of Facebook Pixel API
View step0.html
<!-- Source: https://developers.facebook.com/docs/facebook-pixel/implementation -->
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
@szepeviktor
szepeviktor / Onboarding-fast-lane.md
Last active Sep 22, 2020
Fast lane! 💺 Fasten your seatbelts.
View Onboarding-fast-lane.md

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
@szepeviktor
szepeviktor / CV.md
Last active Oct 25, 2020
🌶 Fresh, hot and experimental introduction!
View CV.md
@szepeviktor
szepeviktor / marseus-hp.sh
Last active Jul 20, 2020
Marseus.hu HP WorkStation figyelő
View marseus-hp.sh
#!/bin/bash
EXPECTED_HASH=1c9f2c2b7e9879a5a5cda6cb550710f55b3caa48
Get_product_titles()
{
# Download page, fix ampersands, convert to XML, parse product titles
wget -qO- https://www.marseus.hu/hu/szamitogep/workstation/hp/ \
| sed -e 's/&\([a-z_]\+\=\)/\&amp;\1/g' \
| xmlstarlet fo --html --recover 2>/dev/null \
@szepeviktor
szepeviktor / signal-without-smartphone.md
Last active Nov 21, 2020
Install Signal without a smartphone
View signal-without-smartphone.md
@szepeviktor
szepeviktor / cached-object-count.php
Last active Jul 11, 2020
PhpFastCache object analyzer with Redis Driver
View cached-object-count.php
<?php
// https://github.com/PHPSocialNetwork/phpfastcache/blob/master/lib/Phpfastcache/Core/Pool/ExtendedCacheItemPoolInterface.php#L49-L64
const DATA_WRAPPER_INDEX = 'd';
// https://github.com/phpredis/phpredis#get
$redis = new Redis();
$redis->connect('127.0.0.1', 6379);
$redis->setOption(Redis::OPT_SCAN, Redis::SCAN_RETRY);
View csodálatos-input.php
<?php
// ezzel kéne működjön
// https://symfony.com/doc/current/components/http_foundation.html#accessing-request-data
// https://github.com/symfony/symfony/blob/5.1/src/Symfony/Component/HttpFoundation/ParameterBag.php
namespace Csodálatos
class Input
{
You can’t perform that action at this time.