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
#!/usr/bin/env bash | |
main() { | |
declare account="$1" uuid="$2" field="${3:-password}" | |
/opt/homebrew/bin/op read --account "$account" "op://Employee/$uuid/$field" | |
} | |
main "$@" |
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
#!/usr/bin/env bash | |
if [[ -z "$GITHUB_PRIVATE_KEY" || -z "$GITHUB_APP_ID" ]]; then | |
echo "Error: Required environment variables are not set." >&2 | |
echo "Ensure GITHUB_PRIVATE_KEY and GITHUB_APP_ID are set." >&2 | |
exit 1 | |
fi | |
if [[ -f "$GITHUB_PRIVATE_KEY" ]; then | |
GITHUB_PRIVATE_KEY="$(cat "$GITHUB_PRIVATE_KEY")" |
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
$icon-size: 16px; | |
$icon-sizes: ( | |
sm: $icon-size / 1.5; | |
md: $icon-size; | |
lg: $icon-size * 1.5; | |
) |
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
[default] | |
aws_access_key_id = | |
aws_secret_access_key = |
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
From: Puck <[email protected]> | |
Newsgroups: alt.pl.fan.gopher | |
Subject: Re: Czy aby Hakiery :)) (fwd) | |
Date: Thu, 01 Aug 2002 09:13:42 +0200 | |
Message-ID: <[email protected]> | |
Oto rezultat stukania w klawisze przez osobę, pragnącą być | |
identyfikowana jako "Adam `Gophi' Wysocki" <[email protected]>: | |
> > > Adam informuje Cie grzecznie, ze masz kurs do Gdanska. |
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
describe('ConnectionIdentifierLabelFactory', () => { | |
// test cases declarations using gherkin syntax: | |
test('call pstn number', () => { | |
when_i_call('+48500100100'); | |
then_i_expect_label_to_be('+48 500 100 100'); | |
}); | |
test('call task by id with prefix', () => { | |
const id = uuid(); |
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 | |
// region $sut = new WaitingScriptFactory() | |
$sut = new WaitingScriptFactory( | |
new CallerContextFactory( | |
new StaticWaitingMusicRepository(self::MUSIC_URL), | |
new StaticLinePositionAnnouncementConfiguration(), | |
new StaticAnnouncementFactory($this->announcement), | |
), | |
new StaticResponseBuilderFactory($this->responseBuilder), |
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
public function findUpcomingForPatient(Patient $patient): ?Visit | |
{ | |
- return $this->cache->fetch($patient->getId()) | |
- ?: $this->visits->findUpcomingForPatient($patient); | |
+ $key = $patient->getId(); | |
+ if ($this->cache->contains($key)) { | |
+ return $this->cache->fetch($key); | |
+ } | |
+ | |
+ return $this->visits->findUpcomingForPatient($patient); |
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
EXECUTABLES = php aws curl awk | |
K := $(foreach exec,$(EXECUTABLES),\ | |
$(if $(shell which $(exec)),,$(error "No $(exec) in PATH"))) | |
all: vendor app.php | |
php app.php > conferences.ical | |
aws s3 cp --acl public-read --content-type "text/calendar" conferences.ical s3://polish-it-conferences/conferences.ical --profile polish-it-conferences | |
vendor: composer composer.json composer.lock | |
./composer install |
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
version: "3" | |
services: | |
www: | |
build: .docker/php | |
command: gulp browser-sync --proxy http://backend | |
working_dir: /app | |
ports: | |
- 3000:3000 |
NewerOlder