This file contains 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
#!/usr/bin/env node | |
// config.xml => <hook src="hooks/020_build_version.js" type="after_prepare" /> | |
// This plugin replaces text in a file with the app version from config.xml. | |
module.exports = function(ctx) { | |
var wwwFileToReplace = "js/index.js"; | |
//var fs = require('fs'); | |
var fs = ctx.requireCordovaModule('fs'), | |
path = ctx.requireCordovaModule('path'), |
This file contains 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 | |
# Add my ssh-key to ubuntu root user and active ssh root login | |
# Login as root or run with sudo | |
# wget -q -O - "https://gist.github.com/faytekin/474ba0104165924b8850eb7385f7fcc6/raw" | bash - | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi |
This file contains 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 | |
namespace App\Services; | |
use Laravel\Telescope\IncomingEntry; | |
use Laravel\Telescope\Telescope; | |
use Laravel\Telescope\Watchers\Watcher; | |
use RicorocksDigitalAgency\Soap\Facades\Soap; | |
use RicorocksDigitalAgency\Soap\Request\Request; | |
use RicorocksDigitalAgency\Soap\Response\Response; |
This file contains 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 | |
namespace App\Rules; | |
use Illuminate\Contracts\Validation\Rule; | |
use Illuminate\Support\Facades\Http; | |
class RecaptchaRule implements Rule | |
{ | |
public static function make(): static |