Skip to content

Instantly share code, notes, and snippets.

@DavidWells
DavidWells / serverless-function-reference-formats.yml
Created September 19, 2020 04:41
Various ways to reference function name and ARN in serverless.yml
View serverless-function-reference-formats.yml
function:
foo:
handler: index.handler
# Ways to reference function in serverless.yml
FunctionName: !Sub arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${self:service.name}-${self:provider.stage}-foo
FunctionName: !GetAtt FooLambdaFunction.Arn
FunctionName: !Sub "${AWS::StackName}-foo"
FunctionName: ${self:service.name}-${self:provider.stage}-foo
@amishmm
amishmm / ArchOracleCloud.md
Last active February 5, 2024 06:45
Install Arch Linux on Oracle Cloud (Free Tier)
View ArchOracleCloud.md

Requirement

  • Console / Cloud Shell access (via https://cloud.oracle.com)
  • Go to the instance page and under Resources -> Console connection -> Launch Cloud Shell connection

Steps

  1. In Ubuntu OR any other Free tier Linux OS
# Download Alpine Linux and install it on disk
cd /
wget https://dl-cdn.alpinelinux.org/alpine/v3.16/releases/x86_64/alpine-virt-3.16.2-x86_64.iso
@hfinn2605
hfinn2605 / 🐘🐘🐘ซุปเปอร์ สล็อต เครดิตฟรี 50 ถอนได้ 300 ซุปเปอร์ สล็อต ซุปเปอร์สล็อต ใหม่ล่าสุด ซุปเปอร์ สล็อต ทางเข้า superslot 2024🐘🐘
Created February 5, 2024 06:33
🐘🐘🐘ซุปเปอร์ สล็อต เครดิตฟรี 50 ถอนได้ 300 ซุปเปอร์ สล็อต ซุปเปอร์สล็อต ใหม่ล่าสุด ซุปเปอร์ สล็อต ทางเข้า superslot 2024🐘🐘
View 🐘🐘🐘ซุปเปอร์ สล็อต เครดิตฟรี 50 ถอนได้ 300 ซุปเปอร์ สล็อต ซุปเปอร์สล็อต ใหม่ล่าสุด ซุปเปอร์ สล็อต ทางเข้า superslot 2024🐘🐘
🐘🐘🐘ซุปเปอร์ สล็อต เครดิตฟรี 50 ถอนได้ 300 ซุปเปอร์ สล็อต ซุปเปอร์สล็อต ใหม่ล่าสุด ซุปเปอร์ สล็อต ทางเข้า superslot 2024🐘🐘
@itsbrex
itsbrex / building-sync-systems.md
Created February 5, 2024 06:43 — forked from pesterhazy/building-sync-systems.md
Building an offline realtime sync engine
View building-sync-systems.md

So you want to write a sync system for a web app with offline and realtime support? Good luck. You might find the following resources useful.

Overview articles

@pesterhazy
pesterhazy / building-sync-systems.md
Last active February 5, 2024 06:43
Building an offline realtime sync engine
View building-sync-systems.md

So you want to write a sync system for a web app with offline and realtime support? Good luck. You might find the following resources useful.

Overview articles

@BlessingsMinga
BlessingsMinga / Contact.sol
Created February 5, 2024 06:42
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.24+commit.e11b9ed9.js&optimize=false&runs=200&gist=
View Contact.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
contract ERC20Token {
string public name;
mapping(address => uint256) public balances;
function mint() public {
balances[tx.origin] ++;
}
@roshari734
roshari734 / 👽👽สล็อต ออนไลน์ เว็บตรงไม่ต้องทำเทิร์น ค่ายใหญ่ ครบวงจร👽👽
Created February 5, 2024 05:28
👽👽สล็อต ออนไลน์ เว็บตรงไม่ต้องทำเทิร์น ค่ายใหญ่ ครบวงจร👽👽
View 👽👽สล็อต ออนไลน์ เว็บตรงไม่ต้องทำเทิร์น ค่ายใหญ่ ครบวงจร👽👽
👽👽สล็อต ออนไลน์ เว็บตรงไม่ต้องทำเทิร์น ค่ายใหญ่ ครบวงจร👽👽
@nberlette
nberlette / hook.ts
Last active February 5, 2024 06:42
`Hook`: git hooks integration with Deno's task runner
View hook.ts
const TASK_NAME_REGEXP = /^[a-z\^\$][a-z0-9\-_$:.\^]*$/i;
type TaskConfig = { [key: string]: string };
type HooksConfig<K extends MaybeHookNames = Hook.Name> = {
readonly [P in K]: string | string[];
};
type HookNames = typeof Hook.names[number];
type strings = string & { __strings__?: never };