-
Getting help
- podman --help
- podman <subcommand> --help
- man podman
- man podman-<subcommand>
-
Searching, pulling & listing images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function rmdirRecursive(string $dir) { | |
$iter = new RecursiveDirectoryIterator($dir, FilesystemIterator::SKIP_DOTS); | |
$it = new RecursiveIteratorIterator($iter, RecursiveIteratorIterator::CHILD_FIRST); | |
foreach($it as $file) { | |
if ($file->isDir()) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Removes old revisions of snaps | |
#CLOSE ALL SNAPS BEFORE RUNNING THIS | |
set -eu | |
LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' | | |
while read snapname revision; do | |
snap remove "$snapname" --revision="$revision" | |
done | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tested with jQuery v3.3.1 | |
$( document ).ready(function() { | |
var doVisualUpdates = true; | |
document.addEventListener('visibilitychange', function(){ | |
doVisualUpdates = !document.hidden; | |
}); | |
// code below changes the background every 10 seconds for the div with id back-overlay-slider |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This script is intended to fix the php built-in server issue with urls that | |
// contain a .something at the end. The built-in server tries to always treat | |
// such urls as static assets when sometimes they are routes meant to be | |
// forwarded to the index.php. See below for more info: | |
// | |
// https://bugs.php.net/bug.php?id=61286 | |
// https://github.com/slimphp/Slim/issues/359 | |
// https://gonzalo123.com/2012/10/15/how-to-rewrite-urls-with-php-5-4s-built-in-web-server/ | |
// https://gist.github.com/aenglander/8e2f83c4526fccdcdead |
Make sure you have installed debugbar via composer.
Copy this script to the root folder of you application and run it from there.
In your template file, which will usually be located in ./src/layout-templates, add the code below inside the head section of the template:
<link rel="stylesheet" type="text/css" href="<?= s3MVC_MakeLink('/css/debugbar-css-assets.css'); ?>">
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For use in apps built with https://github.com/rotexsoft/slim3-skeleton-mvc-app | |
// Copy script to the root folder of the project and run from there. | |
// Works with "maximebf/debugbar" version "^1.16 | |
// This script copies the fonts folder from the debugbar composer vendor folder | |
// to the ./public/fonts folder. It also dumps all the css and js assets | |
// needed by debugbar into ./public/css/debugbar-css-assets.css and | |
// ./public/js/debugbar-js-assets.js respectively |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include_once './vendor/autoload.php'; | |
use jc21\CliTable; | |
use jc21\CliTableManipulator; | |
// HOW TO USE: | |
// copy script ( linux-disk-usage.php ) to a folder on your system and cd to that folder | |
// composer require jc21/clitable | |
// php linux-disk-usage.php |
- https://insight.symfony.com/
- https://github.com/Roave/Dont
- https://github.com/Roave/you-are-using-it-wrong
- https://github.com/vimeo/psalm
- https://github.com/hirak/prestissimo
- https://github.com/rectorphp/rector
- https://github.com/thephpleague/pipeline
- https://github.com/lstrojny/functional-php
- https://github.com/ziadoz/awesome-php/blob/master/README.md#testing (Testing Tools: PHPUnit preferred)
- https://github.com/ziadoz/awesome-php/blob/master/README.md#continuous-integration (CI Tools: Travis preferred)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>TODO supply a title</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
</head> | |
<body> | |
<form method="post" id="add-edit-form" class="add-edit-form" enctype="multipart/form-data" action="http://localhost:8887/listing-types/edit/2"> | |
<label for="name">Name<span style="color: red;"> *</span></label> |
NewerOlder