Skip to content

Instantly share code, notes, and snippets.

@OttlikG
OttlikG / Atom plugins
Last active April 26, 2017 19:38
Atom
https://atom.io/packages/minimap
https://atom.io/packages/blame
https://atom.io/packages/language-babel
https://atom.io/packages/git-diff-details
https://atom.io/packages/minimap-git-diff
https://atom.io/packages/highlight-selected
https://atom.io/packages/minimap-highlight-selected
@OttlikG
OttlikG / Compose .js
Last active February 4, 2018 10:56
Functional programming
export const compose = (...fn) => fn.reduce((f, g) => (...arg) => f(g(...arg)));
@OttlikG
OttlikG / Embed AWS SDK in Gatsby.js
Last active September 20, 2019 06:09
Medium post: Use AWS SES with GoDaddy and Gatsby
<Helmet>
<script
id="sdk.amazonaws"
src="https://sdk.amazonaws.com/js/aws-sdk-2.527.0.min.js"
/>
</Helmet>
@OttlikG
OttlikG / app.module.ts
Created March 18, 2023 13:40
@nestjs/elasticsearch issue
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { ElasticsearchModule } from '@nestjs/elasticsearch';
import * as fs from 'fs';
console.log('-- cert', fs.readFileSync('../http_ca.crt'));
@Module({
imports: [
ElasticsearchModule.register({