Skip to content

Instantly share code, notes, and snippets.

View Awilum's full-sized avatar
🧙‍♂️
WORK HARD. PLAY HARD

Sergey Romanenko Awilum

🧙‍♂️
WORK HARD. PLAY HARD
View GitHub Profile
# Run phpstan
php -d memory_limit=1G ./vendor/bin/phpstan
# Run pest
php -d memory_limit=1G ./vendor/bin/pest
# Run phpcbf
./vendor/bin/phpcbf --standard=Doctrine ./src/flextype/core/Actions.php
# Start Symfony Local Server
@Awilum
Awilum / flextype-static-site-generator.php
Last active March 13, 2022 17:51
Flextype Static Site Generator
<?php
// Add this route to your Flextype Website to generate static website.
flextype()->get('/generate-static-site', function () {
// Set static site directory path
$staticSitePath = '../awilum.github.io/';
// Set static site base url
//flextype('registry')->set('flextype.settings.url', 'CUSTOM_BASE_URL');

Keybase proof

I hereby claim:

  • I am awilum on github.
  • I am awilum (https://keybase.io/awilum) on keybase.
  • I have a public key ASBuf2Fuhn_PRGA1JnWLY187vFoiKuHnemJCl9ypnSE_awo

To claim this, I am signing this object:

<?php
return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate(
$o = [
clone (($p = &\Symfony\Component\VarExporter\Internal\Registry::$prototypes)['Atomastic\\Arrays\\Arrays'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('Atomastic\\Arrays\\Arrays')),
clone $p['Atomastic\\Arrays\\Arrays'],
clone $p['Atomastic\\Arrays\\Arrays'],
clone $p['Atomastic\\Arrays\\Arrays'],
clone $p['Atomastic\\Arrays\\Arrays'],
clone $p['Atomastic\\Arrays\\Arrays'],
clone $p['Atomastic\\Arrays\\Arrays'],
<?php
return Atomastic\Arrays\Arrays::__set_state(array(
'items' =>
array (
'title' => 'Shop',
'entries' =>
array (
'fetch' =>
array (
'catalog' =>
admin:
entries:
view:
emitter:
addListener:
- name: onAdminThemeTail
properties:
value: |
<form id="delete-entry-id-{{ entry.id }}" action="{{ urlFor('admin.content.deleteProcess') }}" method="POST" style="display: none;">
{{ csrf() }}
title: Default
type: entry
icon:
set: bootstrap
name: file-text
admin:
entries:
view:
emitter:
addListener:
@Awilum
Awilum / git-commit-log-stats.md
Created April 15, 2021 07:54 — forked from eyecatchup/git-commit-log-stats.md
Some commands to get git commit log statistics for a repository on the command line.

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.




<p style="font-size: 500%; text-align: center">Total Downloads:</p>
<p id="downloads-all" style="font-size:1000%; text-align: center"></p>
<script type="text/javascript">
let userName = "flextype"; // User name of the repository
let repoName = "flextype"; // Repository name
let releaseTag = "latest"; // Using tag 'latest' for latest released download count
let url = `https://api.github.com/repos/${userName}/${repoName}/releases/${releaseTag}`;
let request = new XMLHttpRequest();
request.open('GET', url, true);
request.onload = function () {
@Awilum
Awilum / flextype-0.9.9-traditional-cms.bash
Last active August 5, 2020 14:11
Flextype Traditional CMS
#
# Flextype Traditional CMS (MacOS, Linux)
#
# Required: curl, wget, jq
#
# Will be installed
#
# Core: Flextype
# Plugins: admin, accounts, accounts-admin, acl, site, twig, form, form-admin, themes-admin, jquery, icon, phpmailer
# Themes: noir