terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "4.23.0"
}
}
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
| $script = { | |
| $cpu = Get-WmiObject Win32_Processor | |
| $flags = $cpu.Caption + " " + $cpu.Name + " " + $cpu.Description | |
| function Check-Flag { | |
| param([string]$flag) | |
| return $flags -match $flag | |
| } | |
| if ((Check-Flag "AVX512F") -and (Check-Flag "AVX512BW") -and (Check-Flag "AVX512CD") -and (Check-Flag "AVX512DQ") -and (Check-Flag "AVX512VL")) { |
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
| # This code is licensed under the terms of the MIT license https://opensource.org/license/mit | |
| # Copyright (c) 2021 Marat Reymers | |
| # Golden config for golangci-lint v1.55.2 | |
| # Original gist: https://gist.github.com/maratori/47a4d00457a92aa426dbd48a18776322 | |
| # Gist: https://gist.github.com/LucJosin/5ebd9f6df6b60253e615c0995e597850 | |
| run: | |
| # Timeout for analysis, e.g. 30s, 5m. | |
| # Default: 1m |
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
| package sqs | |
| import ( | |
| "context" | |
| "github.com/cloudevents/sdk-go/pkg/cloudevents" | |
| ) | |
| // EventRouter can be used to route events to subscribe handlers to a specific event type | |
| type EventRouter struct { |
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
| ### The best way to start is to use the "Delete all test data" button at https://dashboard.stripe.com/test/developers | |
| ### Setup: | |
| import stripe | |
| test = 'sk_test_51IXXXyoursecretkey' | |
| prod = 'sk_live_51IXXXyoursecretkey' |
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
| /* 0. extract fonts into `JetBrainsMono` folder */ | |
| /* 1. check fonts `urls` with your directory structure */ | |
| /* normal fonts */ | |
| @font-face { | |
| font-family: JetBrainsMono; | |
| font-style: normal; | |
| font-weight: 100; | |
| src: url("../fonts/JetBrainsMono/ttf/JetBrainsMono-Thin.ttf") format("truetype"); |
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
| # ================================================================================================== | |
| # | |
| # NOTICE | |
| # | |
| # This gist is no longer maintained. It was moved to repo: | |
| # | |
| # https://github.com/maratori/golangci-lint-config | |
| # | |
| # Full history and all v2 releases are preserved in the repo. | |
| # |
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
| # macOS regularly enters a bad state where audio doesn't play at all or the sound levels are miscalibrated and the | |
| # speakers are quiet even at high volume settings. Various sites suggest different approaches, some of which worked for me | |
| # and some which didn't. | |
| # | |
| # Restarting the audio daemon is ideal since you don't need to restart your computer and fortunately it has worked in | |
| # several scenarios for me. | |
| # This works for me the most when my audio doesn't work on video calls or when my sound levels are miscalibrated | |
| sudo launchctl stop com.apple.audio.coreaudiod | |
| sudo launchctl start com.apple.audio.coreaudiod |
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
| /* | |
| * MIT License | |
| * | |
| * Copyright (c) 2023-2024 Fabio Lima | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
Also works across git branches if you keep the intermediate build images around, e.g. those <none> images in the docker images output.
FROM golang:1.12 AS builder
# enable Go modules support
ENV GO111MODULE=on
WORKDIR $GOPATH/src/github.com/myrepo/myappNewerOlder