Skip to content

Instantly share code, notes, and snippets.

View soerenmartius's full-sized avatar
🎯
focused

Sören Martius soerenmartius

🎯
focused
View GitHub Profile
@Glutnix
Glutnix / _slug.vue
Created July 15, 2020 06:47
nuxt + nuxt-composition-api + typescript + @nuxt/content
<template>
<div>
nuxt.js + nuxt-composition-api + typescript + @nuxt/content to work with meta generated by $content in setup,
and have it generate the appropriate tags at generation time!
<journal-post v-if="journal" :post="journal" />
</div>
</template>
<script lang="ts">
import {
@soerenmartius
soerenmartius / asciidoc-syntax-quick-reference.adoc
Created January 5, 2020 19:02 — forked from mojavelinux/asciidoc-syntax-quick-reference.adoc
AsciiDoc Syntax Quick Reference (sample document)

AsciiDoc Syntax Quick Reference

@npearce
npearce / install-docker.md
Last active April 19, 2024 12:35
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
@holms
holms / terraform.tf
Created November 13, 2018 00:44
Terraform modules depends_on workaround
# File fancy-app-module/variables.tf
variable depends_on { default = [], type = "list"}
# File my-app.tf
module "app" {
source = "modules/fancy-app-module"
@quiver
quiver / iam-policy.json
Last active October 17, 2023 14:21
How to connect to Amazon RDS PostgreSQL with IAM credentials
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"rds-db:connect"
],
"Resource": [
"arn:aws:rds-db:region:account-id:dbuser:dbi-resource-id/database-user-name"
@xola139
xola139 / Invalid Host Header NGROK
Created February 19, 2018 19:17
When Invalid Host Header when ngrok tries to connect to Angular or React dev server
When Invalid Host Header when ngrok tries to connect to Angular or React dev server use this form for run ngrok.
ngrok http 8080 -host-header="localhost:8080"
ngrok http --host-header=rewrite 8080
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 19, 2024 13:50
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@nagelflorian
nagelflorian / buckets.tf
Last active February 12, 2024 07:44
Terraform config for static website hosting on AWS
# AWS S3 bucket for static hosting
resource "aws_s3_bucket" "website" {
bucket = "${var.website_bucket_name}"
acl = "public-read"
tags {
Name = "Website"
Environment = "production"
}
@dcode
dcode / GitHub Flavored Asciidoc (GFA).adoc
Last active April 3, 2024 20:13
Demo of some useful tips for using Asciidoc on GitHub

GitHub Flavored Asciidoc (GFA)

@dmorosinotto
dmorosinotto / rollup.config.js
Created September 21, 2016 13:56
Roolup configuration for Typescript + CommonJS + production Uglify
// Rollup plugins to install as npm --save-dev
import typescript from "rollup-plugin-typescript";//used for typescript compilation
import resolve from "rollup-plugin-node-resolve"; //used for enabel NPM modules +
import commonjs from "rollup-plugin-commonjs"; //with probably use commonjs
import replace from "rollup-plugin-replace"; //used for replacing ENV varible in code
import uglify from "rollup-plugin-uglify"; //used for production minification
// import angular from "rollup-plugin-angular"; //used for Angular2 application see https://www.npmjs.com/package/rollup-plugin-angular
// Rollup configuration inspired by https://www.youtube.com/watch?v=ICYLOZuFMz8
export default {
entry: "path/to/main.ts", //entrypoint to traverse app