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
| files: | |
| "/etc/cron.d/mycron": | |
| mode: "000644" | |
| owner: root | |
| group: root | |
| content: | | |
| * * * * * root /usr/local/bin/myscript.sh | |
| "/usr/local/bin/myscript.sh": | |
| mode: "000755" |
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 | |
| tail -f /path_to_error_log/php_error.log|while read LINE;do | |
| if grep -q "PHP (Parse|Fatal) error" <(echo $LINE); then | |
| ( | |
| echo "From: server@example.com" | |
| echo "To: me@example.com" | |
| echo "Subject: PHP Error" | |
| echo $LINE | |
| ) | sendmail -t | |
| fi |
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
| $('#summernote').summernote({ | |
| height: 300, | |
| minHeight: null, | |
| maxHeight: null, | |
| callbacks: { | |
| onImageUpload: function(files) { | |
| for(var i=0; i < files.length; i++) { | |
| uploadCMSFile($('#summernote'), files[i]); | |
| } | |
| } |
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 | |
| namespace Akane\Controller; | |
| use Akane\Core\Database; | |
| use Akane\Helper\Common; | |
| class UserController extends BaseController | |
| { | |
| public function do_registerAction() |
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
| lokasi app/Http/Controllers/Auth/LoginController.php | |
| <?php | |
| namespace App\Http\Controllers\Auth; | |
| use App\Http\Controllers\Controller; | |
| use Illuminate\Foundation\Auth\AuthenticatesUsers; | |
| class LoginController extends Controller |
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
| var gulp = require('gulp'); | |
| var concat = require('gulp-concat'); | |
| var uglify = require('gulp-uglify'); | |
| var sass = require('gulp-sass'); | |
| var src = { | |
| js: [ | |
| 'resources/js/*.js' | |
| ], | |
| 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 | |
| $data = 'C,J'; | |
| $data_harga = '80000,100000'; | |
| // $data = 'C'; | |
| // $data_harga = '100000'; | |
| $subclass = explode(',', $data); | |
| $harga = explode(',', $data_harga); |
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
| <form method="post"> | |
| <input type="checkbox" name="akomodasi[]" value="transport" /> Transport<br> | |
| <input type="checkbox" name="akomodasi[]" value="hotel" /> Hotel<br> | |
| <input type="checkbox" name="akomodasi[]" value="guide" /> Guide<br> | |
| <input type="checkbox" name="akomodasi[]" value="rental" /> Rental<br> | |
| <input type="checkbox" name="akomodasi[]" value="souvenir" /> Souvenir<br> | |
| <button type="submit" name="submit" value="submit">Submit</button> | |
| </form> | |
| <?php | |
| if (isset($_POST['submit'])) |
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 | |
| $url = 'http://localhost/api/public/artikel'; | |
| $ch = curl_init($url); | |
| curl_setopt($ch, CURLOPT_URL, $url); | |
| curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
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
| # /etc/nginx/sites-available/example.com | |
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server ipv6only=on; | |
| root /usr/share/nginx/html/php; | |
| index index.php index.html index.htm; | |
| server_name example.com; |