Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
// html | |
<div>This is my post</div> | |
<!-- Just put this div at the bottom of your template somewhere--> | |
<!-- Notice that its hidden by default, so if it doesnt get used, thats fine--> | |
<div class="modal hide"></div> | |
//JS | |
$.ajax({ | |
type: 'post', // or post? |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
from django.contrib import admin | |
from django.contrib.auth.admin import UserAdmin | |
from django.utils.translation import ugettext_lazy as _ | |
from .models import User | |
class CustomUserAdmin(UserAdmin): | |
fieldsets = ( | |
(None, {'fields': ('email', 'password')}), |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> | |
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js"></script><link rel='stylesheet' href='styles.css' type='text/css' media='all' /> |
arn=arn:aws:sns:... | |
p12=/path/to.p12 | |
aws sns set-platform-application-attributes --platform-application-arn "$arn" --attributes PlatformCredential="\"$(openssl pkcs12 -in "$p12" -nodes -nocerts)\"",PlatformPrincipal="\"$(openssl pkcs12 -in "$p12" -nodes -nokeys)\"" |
// Create mailable, e.g. MailableTest | |
php artisan make:mail MailableTest --markdown=emails.mailable-test | |
// Run horizon or queue worker | |
// Open tinker | |
$mailable = (new \App\Mail\MailableTest())->onQueue('queue-name'); | |
Mail::to('somemail@example.com')->send($mailable); |
/** | |
* Requirements: | |
* - jQuery (http://jquery.com/) | |
* - DataTables (http://datatables.net/) | |
* - BootboxJS (http://bootboxjs.com/) | |
* --------------------------------------------------------------------------- | |
* Credits to https://gist.github.com/flackend/9517696 | |
* --------------------------------------------------------------------------- | |
* This monitors all AJAX calls that have an error response. If a user's | |
* session has expired, then the system will return a 401 status, |
<?php | |
namespace App\Http\Livewire\Components; | |
use Livewire\Component; | |
class PdfViewer extends Component | |
{ | |
public $openModal = false; | |
public $titleModal = "PDF Viewer"; |
<?php | |
//============ ============ ============ ============ | |
// Convert html table to aray | |
// | |
// @auth: ViHoangSon | |
// @since: 20160704092752 | |
// | |
// Using: | |
// $contents = "<table><tr><td>Row 1 Column 1</td><td>Row 1 Column 2</td></tr><tr><td>Row 2 Column 1</td><td>Row 2 Column 2</td></tr></table>"; | |
// $array = ConvertHelper::getdata($contents); |
import '~tabler/dist/js/tabler.min.js'; | |
import './bootstrap'; | |
import '../sass/app.scss'; |