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 declare(strict_types=1); | |
| ini_set('auto_detect_line_endings', true); | |
| // Utility code | |
| interface Processor | |
| { | |
| /** | |
| * @param resource|string $source | |
| */ |
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 declare(strict_types=1); | |
| namespace App\Templating; | |
| use Nette\Application\UI\Presenter; | |
| use Nette\Utils\FileSystem; | |
| class TemplateHelper | |
| { |
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
| const VodafoneUrl = "http://192.168.0.1"; | |
| const Username = "admin"; | |
| const Password = "password"; | |
| const { | |
| fill, | |
| createBrowser, | |
| elementExists, | |
| waitAndClick, | |
| } = require("./puppeteer"); |
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
| for bin in *; do ln -s "/opt/jdk-17.0.2+8/bin/$bin" "/usr/bin/$bin"; 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
| ls /var/lib/initramfs-tools | \ | |
| sudo xargs -n1 /usr/lib/dkms/dkms_autoinstaller start |
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
| const encore = require("@symfony/webpack-encore"); | |
| const fs = require("fs"); | |
| const path = require("path"); | |
| const frontend = path.join(__dirname, "frontend/"); | |
| const output = path.join(__dirname, "public", "build"); | |
| // Checks whether NODE_ENV is set to dev/development, otherwise defaults to production. | |
| const env = ["dev", "development"].includes(String(process.env.NODE_ENV).toLowerCase()) | |
| ? "development" |
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
| /** | |
| * Script that deploys the application to an FTP/SFTP server. | |
| */ | |
| const {params, credentials, deploy: deployConfig} = require("./utils") | |
| const {exec} = require("better-exec"); | |
| const {Deploy} = require("@vottuscode/deploy-script"); | |
| const {SftpFileRemote} = require("@remotefull/file"); | |
| const {SshCmdRemote} = require("@remotefull/commander"); | |
| const deploy = new Deploy( |
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
| const {BaseCmdRemote} = require("@remotefull/commander/dist/remote/BaseCmdRemote") | |
| class AptCommandError extends Error { | |
| /** | |
| * Raw command output. | |
| * @type {string[]|null} | |
| */ | |
| rawOut; | |
| /** |
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
| rm ~/.config/JetBrains/PhpStorm*/options/other.xml | |
| rm ~/.config/JetBrains/PhpStorm*/eval/* | |
| rm -rf .java/.userPrefs |
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/sh | |
| set -eux | |
| v="$1" | |
| mkdir -p build | |
| cd build | |
| npm init --yes | |
| npm i "pkg" --dev |
NewerOlder