Using Golang
Golang alternative using webview (modern, simple and lightweigth).
Install
go get github.com/webview/webviewUsing Golang
Golang alternative using webview (modern, simple and lightweigth).
Install
go get github.com/webview/webview| <?php | |
| /** @noinspection ? */ | |
| // PhpUndefinedGotoLabelInspection Undefined goto label | |
| // PhpUndefinedVariableInspection Undefined variable | |
| // PhpUndefinedMethodInspection Undefined method | |
| // PhpUndefinedNamespaceInspection Undefined namespace | |
| // PhpUndefinedClassInspection Undefined class | |
| // PhpUndefinedFunctionInspection Undefined function |
| # if using bash | |
| echo 'export WORKRDIR="$HOME/my/workdir"' >> ~/.bashrc | |
| # if using zsh | |
| echo 'export WORKRDIR="$HOME/my/workdir"' >> ~/.zshrc | |
| # download script | |
| sudo curl https://bit.ly/3G9oEZk --output /bin/script | |
| # permission |
| name: 15-minute-schedule | |
| on: | |
| schedule: | |
| - cron: '*/15 * * * *' | |
| jobs: | |
| cron: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Call your API route | |
| run: | |
| <?php | |
| // File: app/Console/Commands/ServeCommand.php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use Symfony\Component\Console\Input\InputOption; | |
| class ServeCommand extends Command { |
| #!/bin/sh | |
| set -eu | |
| snap list --all | awk '/disabled/{print $1, $3}' | | |
| while read snapname revision; do | |
| sudo snap remove "$snapname" --revision="$revision" | |
| done |
| <?php | |
| function checkFormatDateTime(string $datetime, string $format): bool | |
| { | |
| $d = \DateTime::createFromFormat($format, $datetime); | |
| return $d !== false ? $d->format($format) == $datetime : false; | |
| } | |
| # Create new from old | |
| git tag new old | |
| # Remove old tag | |
| git tag -d old | |
| # Sync changes from old tag to remote | |
| git push origin :refs/tags/old |