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
[Unit] | |
Description=Caddy HTTP/2 web server | |
Documentation=https://caddyserver.com/docs | |
After=network-online.target | |
Wants=network-online.target systemd-networkd-wait-online.service | |
; Do not allow the process to be restarted in a tight loop. If the | |
; process fails to start, something critical needs to be fixed. | |
StartLimitIntervalSec=14400 | |
StartLimitBurst=10 |
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
<!-- Begin Mailchimp Signup Form --> | |
<link href="//cdn-images.mailchimp.com/embedcode/classic-10_7.css" rel="stylesheet" type="text/css"> | |
<style type="text/css"> | |
#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; } | |
/* Add your own Mailchimp form style overrides in your site stylesheet or in this style block. | |
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */ | |
</style> | |
<div id="mc_embed_signup"> | |
<form action="MAILCHIMP_URL" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate> |
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
<style> | |
.corner-btn { | |
padding: 4px; | |
display: block; | |
font-weight: 700 !important; | |
text-transform: uppercase; | |
} | |
iframe { | |
margin-top: 15px |
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
$('#iframe').on("load", function() { | |
$("#iframe").contents().find("head").append('<style>body{background:url("https://media.giphy.com/media/SWuSJPnb6UGrK9SKP4/giphy.gif") no-repeat center center fixed; background-size: cover;}.header-wrapper {background-image: unset !important}.site-preview--landing-page .header-wrapper .header-opacity, .smartlist .header-wrapper .header-opacity { background: #333 !important;opacity: .8 !important;}</style>'); | |
}); |
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
$('#iframe').on("load", function() { | |
$("#iframe").contents().find("head").append('<style>body{background:url("https://media.giphy.com/media/lEDJkiw48A9kA/giphy.gif") no-repeat center center fixed; background-size: cover;}.header-wrapper {background-image: unset !important}.site-preview--landing-page .header-wrapper .header-opacity, .smartlist .header-wrapper .header-opacity { background: #333 !important;opacity: .8 !important;}</style>'); | |
}); |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "PublicReadGetObject", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "s3:GetObject", |
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 | |
function smart_dump($arg) { | |
if(env("local")) { | |
dump($arg); | |
} | |
} | |
smart_dump(request()->all()); |
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 | |
$unsort = [1,5,2,22,12,39,3]; | |
for($i = count($unsort) - 1; $i > 0; $i--) { | |
for($j = count($unsort) - 1; $j > 0; $j--) { | |
if($unsort[$j-1] > $unsort[$j]) { | |
$temp = $unsort[$j-1]; | |
$unsort[$j-1] = $unsort[$j]; | |
$unsort[$j] = $temp; |
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
CREATE TABLE broadcast_queues_temp | |
LIKE broadcast_queues; | |
INSERT INTO broadcast_queues_temp | |
SELECT * | |
FROM broadcast_queues | |
GROUP BY subscriber_id; | |
DROP TABLE broadcast_queues; | |
NewerOlder