-
remove /etc/initramfs-tools/conf.d/resume
-
sudo update-initramfs -u
-
alternatively you can Interrupt GRUB by pressing any key, then press E to edit the currently-selected boot entry, find the line starting with the word linux and add noresume as a separate word to the end of that line. This is only for test purposes. Tha changes are not persisted.
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
readonly class Money | |
{ | |
private function __construct(private string $amount, private Currency $currency) | |
{} | |
public static function eur(string $amount): self | |
{ | |
return new static($amount, Currency::eur()); | |
} |
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
final class Money | |
{ | |
public function __construct(private string $amount, private Currency $currency) | |
{} | |
public function amount(): string | |
{ | |
return $this->amount; | |
} |
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
final class Money | |
{ | |
private string $amount; | |
private string $currency; | |
public function __construct(private string $amount, private string $currency) | |
{ | |
if (!is_numeric($amount)) { | |
throw new InvalidAmountException::notNumeric($amount); | |
} |
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
final class Money | |
{ | |
public function __construct(private string $amount, private string $currency) | |
{ | |
if (!is_numeric($amount)) { | |
throw new InvalidAmountException::notNumeric($amount); | |
} | |
if (!in_array(strtoupper($currency), ['EUR', 'USD'])) { | |
throw new InvalidCurrencyException::notInTheAcceptedCurrencies($currency); |
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
final class Money | |
{ | |
public function __construct(private string $amount, private string $currency) | |
{ | |
if (!is_numeric($amount)) { | |
throw new InvalidAmountException::notNumeric($amount); | |
} | |
$this->amount = $amount; | |
$this->currency = $currency; |
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
{ | |
"customColorSchemes": [ | |
[ | |
{ | |
"fill": "#ffcc00", | |
"stroke": "none" | |
}, | |
{ | |
"fill": "#ccffff", | |
"stroke": "none" |
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
FROM php:7-fpm | |
RUN apt-get update && \ | |
apt-get install -y \ | |
zlib1g-dev \ | |
libfreetype6-dev \ | |
libjpeg62-turbo-dev \ | |
libmcrypt-dev \ | |
libpng12-dev |
- For your local dev, create a
Dockerfile
that is based on your production image and simply installxdebug
into it. Exemple:
FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
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
; Ender 3 Custom End G-code | |
G4 ; Wait | |
M220 S100 ; Reset Speed factor override percentage to default (100%) | |
M221 S100 ; Reset Extrude factor override percentage to default (100%) | |
G91 ; Set coordinates to relative | |
G1 F1800 E-3 ; Retract filament 3 mm to prevent oozing | |
G1 F3000 Z20 ; Move Z Axis up 20 mm to allow filament ooze freely | |
G90 ; Set coordinates to absolute | |
G1 X0 Y{machine_depth} F1000 ; Move Heat Bed to the front for easy print removal | |
M106 S0 ; Turn off cooling fan |
NewerOlder