Skip to content

Instantly share code, notes, and snippets.

View UnderDogg's full-sized avatar
💭
Setting up local Frontend for Vue.js with Docker

UnderDogg

💭
Setting up local Frontend for Vue.js with Docker
View GitHub Profile
@UnderDogg
UnderDogg / index.html
Created January 3, 2021 07:46
Tailwind Spotify Album Page with Tailwind CSS
<div class="bg-black text-gray-300 min-h-screen p-10">
<!-- header -->
<div class="flex">
<img class="mr-6" src="https://placekitten.com/g/200/200">
<div class="flex flex-col justify-center">
<!-- content -->
<h4 class="mt-0 mb-2 uppercase text-gray-500 tracking-widest text-xs">Playlist</h4>
<h1 class="mt-0 mb-2 text-white text-4xl">Spotify Album Page with Tailwind CSS</h1>
@UnderDogg
UnderDogg / longpolling.php
Created March 5, 2019 12:53 — forked from tathagata/longpolling.php
Long Polling using PHP and JQuery
<?php
include 'init.php';
if (!logged_in()){header('Location: index.php'); exit();}
include 'template/header.php';
?>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript" ></script>
<script src="http://cdn.jquerytools.org/1.2.6/jquery.tools.min.js"></script>
<style type="text/css" media="screen">
.msg{ background:#aaa;padding:.2em; border-bottom:1px #99FF99 solid}
{"lastUpload":"2022-01-04T16:33:20.244Z","extensionVersion":"v3.4.3"}
@UnderDogg
UnderDogg / Dockerfile
Created August 1, 2018 13:44 — forked from paulredmond/Dockerfile
A Dockerfile for a Laravel PHP Application with Caddy Server
FROM php:7.1-fpm
LABEL maintainer="Paul Redmond <[email protected]>"
# Install application dependencies
RUN curl --silent --show-error --fail --location \
--header "Accept: application/tar+gzip, application/x-gzip, application/octet-stream" -o - \
"https://caddyserver.com/download/linux/amd64?plugins=http.expires,http.realip&license=personal" \
| tar --no-same-owner -C /usr/bin/ -xz caddy \
&& chmod 0755 /usr/bin/caddy \
&& /usr/bin/caddy -version \
@UnderDogg
UnderDogg / docker-compose.yml
Created August 1, 2018 13:43 — forked from paulredmond/docker-compose.yml
A Docker Compose file for an example Laravel project
version: '3'
services:
app:
build:
context: .
dockerfile: .docker/Dockerfile
image: laravel-docker
ports:
- 8080:80
volumes:
@UnderDogg
UnderDogg / BackupController.php
Created July 23, 2018 12:56
Laravel + Spatie Backup controller & views to see and manage DB backup files in the browser
<?php
namespace App\Http\Controllers;
use Alert;
use App\Http\Requests;
use Artisan;
use Log;
use Storage;
@UnderDogg
UnderDogg / example1.php
Created April 10, 2016 14:15 — forked from clouddueling/example1.php
Long polling class
public function get_check($queue_id = 0)
{
$options = array(
'queue_id' => $queue_id
);
$status = Polling::forResult(function($options) {
$queue = Queue::find($options['queue_id']);
has_access($queue);
@UnderDogg
UnderDogg / checkin.js
Created April 10, 2016 14:15 — forked from clouddueling/checkin.js
laravel long pulling only allows 1 pull to be going at any time by utilizing the file system.
var Checkin = (function(window, document, undefined) {
var s = {
contact: {}
},
showing = false;
function init() {
bindVerify();
bindDeny();
waitForMsg();