Create file /etc/systemd/system/[email protected]
[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.service
#!/usr/bin/env bash | |
trap ctrl_c INT | |
function ctrl_c() { | |
echo "** Trapped Ctrl+C **" | |
exit 0 # Exit the script with exit code 0 (successful termination) | |
} | |
input_dir=$1 |
terraform { | |
required_version = ">= 0.12" | |
required_providers { | |
aws = "~> 2.0" | |
} | |
} | |
provider "aws" { | |
region = "eu-central-1" |
from lxml import html | |
import requests | |
import os | |
root_url = "https://hnarayanan.github.io/springer-books/" | |
category = "Computer Science" | |
download_path = f"{os.getcwd()}/downloads/{category.lower().replace(' ', '_')}" | |
headers = { | |
"Host": "link.springer.com", | |
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:77.0) Gecko/20100101 Firefox/77.0", |
Create file /etc/systemd/system/[email protected]
[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.service
AWSTemplateFormatVersion: '2010-09-09' | |
Description: VPC Network Stack | |
Metadata: {} | |
Mappings: {} | |
Conditions: {} | |
Outputs: {} | |
Parameters: | |
CidrBlock: | |
AllowedPattern: '((\d{1,3})\.){3}\d{1,3}/\d{1,2}' | |
Default: 10.0.0.0/16 |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
func main() { | |
inputJSON := `{"environment": "production", "runbook":"http://url","message":"there is a problem"}` | |
out := map[string]interface{}{} |
How to configure Bash Completion on Mac for Docker and Docker-Compose
Run:
brew install bash-completion
Add the following lines to your ~/.bash_profile:
if [ -f $(brew --prefix)/etc/bash_completion ]; then
I hereby claim:
To claim this, I am signing this object:
about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar.
Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and
rendering normally. Some settings may also make firefox unstable.
Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"time" | |
) | |
type SnsMessage struct { | |
Type string `json:type` |