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
pnpm create sst ember-sst-example |
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
function replay_lambda() { | |
local profile=$1 | |
local fn=$2 | |
sqs_message="initialising..." | |
dlq_arn=$(aws --profile=$profile lambda get-function --function-name "$fn" | jq -r '.Configuration.DeadLetterConfig.TargetArn') | |
dlq=$(aws --profile=$profile sqs get-queue-url --queue-name "$(echo ${dlq_arn##*:})" --output=text) | |
while [ ! -z "$sqs_message" ]; do |
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
.App-header { | |
padding: 1em; | |
background-color: #282c34; | |
min-height: 200px; | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
justify-content: center; | |
font-size: calc(10px + 2vmin); | |
color: white; |
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
"scripts": { | |
"start:firefox": "web-ext-react run | xargs -L1 web-ext run -u http://www.example.org/ -s", | |
"start:chrome": "web-ext-react run | xargs -L1 web-ext run -u http://www.example.org/ -t chromium -s", | |
} |
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
{ | |
"description": "Bundle ReactJS as web extension", | |
"manifest_version": 2, | |
"name": "web-ext-react-hello", | |
"version": "1.0", | |
"homepage_url": "https://github.com/mrloop/web-ext-react-hello", | |
"icons": { | |
"192": "logo192.png" | |
}, |
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
if (document.isBrowserAction) { | |
ReactDOM.render( | |
<React.StrictMode> | |
<App /> | |
</React.StrictMode>, | |
document.getElementById("root") | |
) | |
} |
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
yarn add -D web-ext web-ext-react |
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
npx create-react-app web-ext-react-hello | |
cd web-ext-react-hello | |
npm start |
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
#!/bin/sh | |
# | |
# PROVIDE: AdGuardHome | |
# REQUIRE: networking | |
# KEYWORK: | |
# | |
# see https://redbyte.eu/en/blog/supervised-freebsd-init-script-for-go-deamon/ | |
# remember to add `adguardhome_enable='YES` to `/etc/rc.conf` | |
. /etc/rc.subr |
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
var part = function (spec) { | |
var that = { | |
getName: function (){ | |
return spec.name | |
}, | |
toString: function () { | |
var str = this.getName() + '\n' + this.getCents() + '\n'; | |
return str + this.map(spec.parts, function(part){ | |
return part.toString(); |
NewerOlder