This file contains 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
MERCURE_URL=${MERCURE_URL:=https://github.com/dunglas/mercure/releases/download/v0.10.4/mercure_0.10.4_Linux_x86_64.tar.gz} | |
JWT_KEY=${JWT_KEY:=!ChangeMe!} | |
MERCURE_FILE=${MERCURE_URL##*/} | |
# Settings perms | |
echo "Creating mercure user..." | |
groupadd --system mercure | |
useradd --system \ | |
--gid mercure \ | |
--create-home \ |
This file contains 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
export {} | |
declare global { | |
interface Date { | |
addDays(days: number, useThis?: boolean): Date; | |
isToday(): boolean; | |
clone(): Date; | |
isAnotherMonth(date: Date): boolean; | |
isWeekend(): boolean; | |
isSameDate(date: Date): boolean; |
This file contains 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 | |
/*::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/ | |
/*:: :*/ | |
/*:: This routine calculates the distance between two points (given the :*/ | |
/*:: latitude/longitude of those points). It is being used to calculate :*/ | |
/*:: the distance between two locations using GeoDataSource(TM) Products :*/ | |
/*:: :*/ | |
/*:: Definitions: :*/ | |
/*:: South latitudes are negative, east longitudes are positive :*/ |
This file contains 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
// | |
// AserFormViewController.swift | |
// Aser RMS | |
// | |
// Created by Romeu Godoi on 28/08/17. | |
// Copyright © 2017 Aser Security. All rights reserved. | |
// | |
import UIKit | |
import Eureka |
This file contains 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
input | |
plen(17); | |
fast(0.666); | |
slow(0645); | |
var | |
mTrueRange : float; | |
Oval : Float; | |
Hval : Float; |
This file contains 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
// | |
// UIWindow+Transitions.swift | |
// Logics Software | |
// | |
// Created by Romeu Godoi | |
// Copyright © 2020 Oconcurs. All rights reserved. | |
import Foundation | |
import UIKit |
This file contains 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
# SQL Server Command Line Tools - custom image | |
# From Alpine 3.11 (~5 MBs) | |
FROM alpine:3.11 | |
LABEL maintainer="@dbamastery" | |
# Installing system utilities | |
RUN apk add --no-cache curl gnupg | |
# Adding custom MS repository for mssql-tools and msodbcsql | |
RUN curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.5.2.1-1_amd64.apk |
This file contains 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 Axelvkn\AppBundle\Filter; | |
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter; | |
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface; | |
use ApiPlatform\Core\Exception\InvalidArgumentException; | |
use Doctrine\ORM\QueryBuilder; | |
class OrSearchFilter extends SearchFilter |
This file contains 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 | |
declare(strict_types=1); | |
namespace App\Filter\API; | |
use ApiPlatform\Core\Bridge\Doctrine\Common\Filter\OrderFilterTrait; | |
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\OrderFilter as BaseOrderFilter; | |
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface; | |
use Doctrine\Common\Persistence\ManagerRegistry; |
This file contains 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 | |
declare(strict_types=1); | |
namespace App\Filter; | |
use ApiPlatform\Core\Bridge\Doctrine\Common\Filter\OrderFilterTrait; | |
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\OrderFilter as BaseOrderFilter; | |
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface; | |
use Doctrine\Common\Persistence\ManagerRegistry; |
NewerOlder