Skip to content

Instantly share code, notes, and snippets.

View MaximFischuk's full-sized avatar
🦀

Maxim Fischuk MaximFischuk

🦀
View GitHub Profile
@MaximFischuk
MaximFischuk / README.md
Created April 25, 2023 14:25 — forked from koshatul/README.md
use Apple Keychain to store GPG Passphrases

gpg-agent setup

Need to setup gpg-agent first, on OSX I use keychain (it also does ssh-agent)

$ brew info keychain
keychain: stable 2.8.5
User-friendly front-end to ssh-agent(1)
https://www.funtoo.org/Keychain
/usr/local/Cellar/keychain/2.8.5 (7 files, 108.5KB) *
@MaximFischuk
MaximFischuk / RELEASE-NOTES.md
Created January 30, 2023 11:27 — forked from andreasonny83/RELEASE-NOTES.md
Release Notes Template

Release Notes Template

Based off https://palantir.quip.com/pzRwAVr1bpzf

Pro-tip: look through the github diff between the previous release to see what's changed. The commit titles should give an outline of what's happened.

Upgrade Steps

  • List out, as concretely as possible, any steps users have to take when they upgrade beyond just dumping the dependency.
  • Write pseudocode that highlights what code should change and how.
@MaximFischuk
MaximFischuk / main.dart
Created August 13, 2022 18:06 — forked from Roaa94/main.dart
Animated Scroll Views
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Animated Scroll View Item',
debugShowCheckedModeBanner: false,
@MaximFischuk
MaximFischuk / apache_cors_example
Created February 25, 2020 13:21 — forked from brianlmoon/apache_cors_example
CORS example for Apache with multiple domains
# Sets CORS headers for request from example1.com and example2.com pages
# for both SSL and non-SSL
SetEnvIf Origin "^https?://[^/]*(example1|example2)\.com$" ORIGIN=$0
Header set Access-Control-Allow-Origin %{ORIGIN}e env=ORIGIN
Header set Access-Control-Allow-Credentials "true" env=ORIGIN
# Always set Vary: Origin when it's possible you may send CORS headers
Header merge Vary Origin
@MaximFischuk
MaximFischuk / 15-QuorumService.yaml
Created July 6, 2019 19:46
kube-quorum-service-master
apiVersion: v1
kind: Service
metadata:
name: quorum-node
spec:
selector:
app: quorum-node
type: ClusterIP
clusterIP: 10.100.10.1
ports:
@MaximFischuk
MaximFischuk / 10-QuorumStatefulSet.yaml
Created July 6, 2019 18:40
kube-quorum-stateful-set-follower
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: quorum-node
labels:
app: quorum-node
spec:
replicas: 1
selector:
matchLabels:
@MaximFischuk
MaximFischuk / config.json
Created July 5, 2019 19:57
tessera-peers-part
{
...
"peer": [
{
"url": "http://10.100.10.1:9001"
}
],
...
}
@MaximFischuk
MaximFischuk / 15-QuorumService.yaml
Created July 4, 2019 20:00
kube-quorum-service
apiVersion: v1
kind: Service
metadata:
name: quorum-node
spec:
selector:
app: quorum-node
type: ClusterIP
clusterIP: 10.100.10.2
ports:
@MaximFischuk
MaximFischuk / 10-QuorumStatefulSet.yaml
Last active July 6, 2019 18:38
quorum-stateful-set
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: quorum-node
labels:
app: quorum-node
spec:
replicas: 1
selector:
matchLabels:
#!/bin/bash
kubectl create configmap postgres-jdbc-driver --from-file ./postgresql-42.2.5.jar