Skip to content

Instantly share code, notes, and snippets.

View IftekherSunny's full-sized avatar
🏠
Working from home

Iftekher Islam Sunny IftekherSunny

🏠
Working from home
View GitHub Profile
[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
<!-- 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>
<style>
.corner-btn {
padding: 4px;
display: block;
font-weight: 700 !important;
text-transform: uppercase;
}
iframe {
margin-top: 15px
$('#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>');
});
$('#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>');
});
var iframe = document.getElementById('iframe');
iframe.onload = function() {
var frameElement = document.getElementById("iframe");
var doc = frameElement.contentDocument;
doc.body.innerHTML = doc.body.innerHTML + '<style>.site-preview--landing-page .content-wrapper .col-md-4,.smartlist .content-wrapper .col-md-4{flex:0 0 100%!important;max-width:100%!important}body .col-md-4 img{display:none}body .card{width:100%}body .col-md-4.mb-4.d-flex.align-items-stretch{margin-bottom:20px!important}body .card-text{display:none}body .card-title{padding:0!important;margin:0!important;text-align: center;}body .card-body{padding:0px;}body .card-title a {padding: 20px;display:block;}.site-preview--landing-page .content-wrapper .card:hover,.smartlist .content-wrapper .card:hover{box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important;transform:scale(1.025)}</style>';
}
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
<?php
function smart_dump($arg) {
if(env("local")) {
dump($arg);
}
}
smart_dump(request()->all());
<?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;
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;