This file contains hidden or 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
/** | |
* Simple green pass decoder inspired by https://git.gir.st/greenpass.git/blob_plain/master:/greenpass.py | |
* | |
* 2021 Lorenzo Millucci | |
* | |
* Before usage install following dependecies `npm install base45 cbor jpeg-js jsqr pako` | |
*/ | |
const base45 = require('base45'); | |
const cbor = require('cbor'); |
This file contains hidden or 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 | |
namespace LMillucci\CivicSIP\Facades; | |
use Illuminate\Support\Facades\Facade; | |
/** | |
* @method static \Blockvis\Civic\Sip\Client exchangeToken(string $jwtToken) | |
* | |
* @see \Blockvis\Civic\Sip\Client |
This file contains hidden or 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 | |
namespace LMillucci\CivicSIP\Providers; | |
use Illuminate\Support\ServiceProvider; | |
class CivicServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Bootstrap any application services. |
This file contains hidden or 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
"extra": { | |
"laravel": { | |
"providers": [ | |
"LMillucci\\CivicSIP\\Providers\\CivicServiceProvider" | |
], | |
"aliases": { | |
"Civic": "LMillucci\\CivicSIP\\Facades\\CivicFacade" | |
} | |
} | |
} |
This file contains hidden or 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
"autoload": { | |
"psr-4": { | |
"LMillucci\\CivicSIP\\": "src/" | |
} | |
} |
This file contains hidden or 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
<?xml version="1.0"?> | |
<ruleset name="Blog"> | |
<arg name="encoding" value="UTF-8" /> | |
<!-- Include the whole PSR-2 standard --> | |
<rule ref="PSR2"/> | |
<!-- Make it more strict with additional rules --> | |
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/> |
This file contains hidden or 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
FROM nginx:latest | |
WORKDIR /var/www |
This file contains hidden or 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
server { | |
listen 80; | |
index index.php index.html; | |
root /var/www/blog/public; | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; | |
} | |
location ~ \.php$ { |
This file contains hidden or 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
FROM postgres:10.2-alpine | |
ENV POSTGRES_DB laravel_app | |
EXPOSE 5432 |
This file contains hidden or 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
FROM php:7.2-fpm | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
curl \ | |
libmemcached-dev \ | |
libz-dev \ | |
libpq-dev \ | |
libjpeg-dev \ | |
libpng-dev \ |
NewerOlder