Steps:
- helm repo add opsmx https://helmcharts.opsmx.com/
- helm install my-spinnaker opsmx/spinnaker --version 2.2.7
References :
import psycopg2 | |
try: | |
connection = psycopg2.connect("postgres://postgres:@localhost:5432/postgres") | |
cursor = connection.cursor() | |
# create_table_query = '''CREATE TABLE mobile | |
# (ID INT PRIMARY KEY NOT NULL, | |
# MODEL TEXT NOT NULL, |
import { useState, useEffect } from 'react'; | |
import { Storage } from '@ionic/storage'; | |
const storage = new Storage(); | |
storage.create(); | |
export const useIonicStorage = (key, defaultValue) => { | |
const [value, setValue] = useState(defaultValue); | |
useEffect(() => { |
To prevent wall messages from messing up all of your open terminals: | |
sudo systemctl stop systemd-ask-password-wall.service | |
sudo systemctl stop systemd-ask-password-wall.path | |
To make this change persistent over boot: | |
sudo systemctl mask systemd-ask-password-wall.service | |
sudo systemctl mask systemd-ask-password-wall.path |
Steps:
References :
Notes: Install halyard, kubernetes (eg. docker-desktop from docker). Also need an aws account for storage (unless using minio)
class SuperTrend(bt.Indicator): | |
lines = ('super_trend',) | |
params = ( | |
('multiplier', 12.0), | |
('atr_period', 3), | |
) | |
def __init__(self): | |
self.isDownTrend = -1 | |
self.isUpTrend = 1 |
//@version=5 | |
indicator("HTF Candle R1.2 by JustUncleL", shorttitle="HTF Candle", overlay=true) | |
// | |
// Author: JustUncleL | |
// Date: 9-Nov-2017 | |
// Version: R1.2 | |
// | |
// Description: |
#!/usr/bin/env bash | |
# source: https://gist.github.com/justlaputa/a6da84981eca963817e652b5f2452cfc | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
STARS_PAGE_COUNT=20 | |
STARS_FILE=stars.txt | |
DELETE_SLEEP_TIME=.5 |
// go to this link https://www.youtube.com/feed/channels | |
// run code below in browser console | |
(async () => { | |
const delay = (ms) => new Promise(res => setTimeout(res, ms)); | |
let buttons = document.querySelectorAll('ytd-subscribe-button-renderer yt-button-shape button'); | |
for (let button of buttons) { | |
if (button.innerText.trim().toLowerCase() === "subscribed") { |
resource "aws_config_config_rule" "account_part_of_organizations" { | |
name = "account-part-of-organizations" | |
description = "Rule checks whether AWS account is part of AWS Organizations. The rule is NON_COMPLIANT if the AWS account is not part of AWS Organizations or AWS Organizations master account ID does not match rule parameter MasterAccountId." | |
source { | |
owner = "AWS" | |
source_identifier = "ACCOUNT_PART_OF_ORGANIZATIONS" | |
} |