sudo nano /etc/postgresql/11/main/pg_hba.conf
> host all all x.x.x.x/xx md5
psql -U postgres
> SELECT pg_reload_conf();
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
// | |
// AnimatedBackground.swift | |
// Playground | |
// | |
// Created by Colin Harris on 23/5/24. | |
// | |
import SwiftUI | |
struct AnimatedBackground: View { |
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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
annotations: | |
deployment.kubernetes.io/revision: "3" | |
creationTimestamp: "2019-09-09T08:15:43Z" | |
generation: 3 | |
labels: | |
app.kubernetes.io/instance: faktory | |
app.kubernetes.io/managed-by: Tiller |
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
# Redis Notes | |
*Config Path:* `/etc/redis/redis.conf` | |
Configure Slave: | |
``` | |
redis-cli -h <host or IP> SLAVEOF <master ip> 6379 | |
``` |
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
{ | |
"bridge": { | |
"name": "Homebridge", | |
"username": "", | |
"port": 51826, | |
"pin": "" | |
}, | |
"description": "My test homebridge config", |
I've decided to dive into golang. I usually learn best when I try to build something so I've decided to re-write a Telegram bot I created a few years ago called the WhosInBot. It gets used by quite a few groups here in Singapore ano who know where else. I've had a few issues with the server it's running on recently so the idea of converting it to an AWS Lambda function (which recently released support for golang!) was appealing.
I've had some experience using the serverless framework in the past and found it pretty nice so I thought I'd start there.
Links:
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
``` | |
CREATE ROLE postgres WITH LOGIN PASSWORD ''; | |
ALTER ROLE postgres SUPERUSER; | |
ALTER ROLE postgres CREATEDB; | |
ALTER ROLE postgres CREATEROLE; | |
``` | |
Reference: | |
https://www.codementor.io/engineerapart/getting-started-with-postgresql-on-mac-osx-are8jcopb |
NewerOlder