Skip to content

Instantly share code, notes, and snippets.

View michalisantoniou6's full-sized avatar

Michalis Antoniou michalisantoniou6

View GitHub Profile
@michalisantoniou6
michalisantoniou6 / bookmarklet.js
Created January 13, 2021 16:47 — forked from hraban/bookmarklet.js
Expand all resolved conversations on a GitHub PR
// create a bookmark with this value, or paste it directly in the address bar and press return
javascript:(() => {document.querySelector('[data-disable-with^=Loading]')?.click(); setTimeout(()=> document.querySelectorAll('.Details-content--closed').forEach(x => x.click()), 4000)})()
@michalisantoniou6
michalisantoniou6 / log query
Last active January 7, 2021 22:28 — forked from viezel/log query
Laravel Vapor - Cloudwatch insights logs
fields @timestamp, @message
# Lambda
| filter @message not like "START RequestId"
| filter @message not like "END RequestId"
| filter @message not like "REPORT RequestId"
| filter @message not like "Injecting secret"
| filter @message not like "[Scout] Agent is starting"
# FPM
@michalisantoniou6
michalisantoniou6 / RunScheduler.php
Created November 26, 2019 10:35 — forked from robbydooo/RunScheduler.php
Heroku Laravel Scheduler
<?php
/**
This Scheduler will run once every minute unlike the Heroku scheduler which only runs every 10 mintues.
To use this scheduler with Laravel 5.4+ add this file to /app/Console/Commands/RunScheduler.php
Register this file in app/Console/Kernel.php
# CircleLink Health
# EHR Patient data template
# The sample below shows 5 test patients. It does not contain any PHI.
# This file will be read line by line.
# Each line should contain a valid json string. Special characters should be escaped.
# ONLY include ACTIVE patients in the report
# All dates should be in UTC format. Example `2018-09-12T15:08:56.349Z`
# Phone numbers should not contain extensions.
@michalisantoniou6
michalisantoniou6 / gist:408f69baf93214e2bd42bed5dabbdc0e
Last active June 8, 2018 11:29
Deploy a laravel application to deploybot
# Create a shared vendor directory and symlink it to the project root
mkdir -p $SHARED/vendor
ln -s $SHARED/vendor $RELEASE/vendor
# Create a shared storage directory and symlink it to the project root
if [ ! -d "$SHARED/storage" ]; then
mkdir -p $SHARED/storage
mv storage/* $SHARED/storage/
chmod -R 775 $SHARED/storage