Skip to content

Instantly share code, notes, and snippets.

View progress44's full-sized avatar
Drinking coffee

Ani Sinanaj progress44

Drinking coffee
View GitHub Profile
@progress44
progress44 / wp_config.php
Last active October 12, 2019 08:21 — forked from butlerblog/wp_config.php
Configure WordPress wp_mail function to send through SMTP server http://b.utler.co/Y3
<?php
/*
* Set the following constants in wp-config.php
* These should be added somewhere BEFORE the
* constant ABSPATH is defined.
*/
define( 'SMTP_USER', '[email protected]' ); // Username to use for SMTP authentication
define( 'SMTP_PASS', 'smtp password' ); // Password to use for SMTP authentication
@progress44
progress44 / S3FileStream.php
Created April 26, 2020 09:47
Laravel response class to handle S3 file stream
<?php
namespace App\Http\Responses;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
class S3FileStream
{
/**
@progress44
progress44 / VideoStream.php
Created April 26, 2020 09:54
Php Class that streams video files
<?php
/**
* Description of VideoStream.
*
* @author Rana
*
* @see http://codesamplez.com/programming/php-html5-video-streaming-tutorial
*/
namespace App\Http;
@progress44
progress44 / analytics.conf
Created August 16, 2020 11:25 — forked from jirutka/analytics.conf
Add Google Analytics tracking code to HTML via nginx
#
# Add Google Analytics tracking code to HTML response
#
# Usage:
# set $tracking_id 'UA-12345678-9';
# include incl/analytics.conf;
#
# It needs nginx compiled with option --with-http_sub_module.
# Uses optimized GA code from: http://mathiasbynens.be/notes/async-analytics-snippet
#
@progress44
progress44 / downloaded.json
Created September 2, 2020 20:20
Downloading files test script (plain js)
[]
#include <WiFi.h>
#include <NetworkClientSecure.h>
#include <WiFiClientSecure.h>
#include <ssl_client.h>
#include <esp_chip_info.h>
#include <PubSubClient.h>
#include "soc/soc.h"
#include "soc/rtc_cntl_reg.h"
void initialize() {