- autoscaling全般についてはなします
- terraformのコードがいっぱい出てきます
- application autoscaling
| # Lightning talk @ DjangoCon EU 2022 | |
| # Afonso Cerejeira <github.com/ajcerejeira> | |
| # Intro | |
| # ===== | |
| # | |
| # - Makefiles are a set of rules for building targets based on prerequisites; | |
| # - Usually both targets and prerequisites represent filenames; | |
| # - Makefiles define dependency graphs; |
| terraform { | |
| required_providers { | |
| aws = { | |
| source = "hashicorp/aws" | |
| version = "~> 4.0" | |
| } | |
| } | |
| } | |
| provider "aws" { |
From scratch:
Remove homebrew from Catalina-Mojave:
https://osxdaily.com/2018/08/12/how-uninstall-homebrew-mac/
```
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
| # Standard Library | |
| import re | |
| # Third Party Stuff | |
| from django.db import models | |
| from django.contrib.postgres.indexes import GinIndex | |
| from django.contrib.postgres.search import ( | |
| SearchQuery, | |
| SearchRank, | |
| SearchVector, |
| /* | |
| Copy this into the console of any web page that is interactive and doesn't | |
| do hard reloads. You will hear your DOM changes as different pitches of | |
| audio. | |
| I have found this interesting for debugging, but also fun to hear web pages | |
| render like UIs do in movies. | |
| */ | |
| const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
| # disable the file picker | |
| driver.execute_script(""" | |
| HTMLInputElement.prototype.click = function () { | |
| if (this.type !== 'file') { | |
| HTMLElement.prototype.click.call(this); | |
| } | |
| else if (!this.parentNode) { | |
| this.style.display = 'none'; | |
| this.ownerDocument.documentElement.appendChild(this); |
| -- taken from https://rob.conery.io/2014/05/28/a-better-id-generator-for-postgresql/ | |
| create schema idgen; | |
| create sequence idgen.global_id_sequence; | |
| CREATE OR REPLACE FUNCTION idgen.id_generator( | |
| myts timestamp, | |
| OUT result bigint) AS $$ | |
| DECLARE | |
| our_epoch bigint := 1314220021721; |
Petty things that annoy a Sysadmin, also a How-To avoid madding yourself by remembering Petty things that will annoy you.
sysadmin says: My .bashrc file is not loading!
You could make a sysadmin expend hours trying to debug a .bashrc just by creating and empty
.bash_profile in the home directory, this will override the loading of .bashrc and load the instructions
in the .bash_profile instead.