Top N things you should do after installing or upgrading to your new Fedora 36 workstation.
| import boto3 | |
| # Specify the region where the EC2 instances reside | |
| region = 'us-east-1' | |
| # Specify the tag key and value to filter the EC2 instances | |
| tag_key = 'env' | |
| tag_value = 'prod' | |
Vault secures, stores, and tightly controls access to tokens, passwords, certificates, API keys, and other secrets in modern computing. Vault is primarily used in production environments to manage secrets. Vault is a complex system that has many different pieces. There is a clear separation of components that are inside or outside of the security barrier. Only the storage backend and the HTTP API are outside, all other components are inside the barrier.
Figure 1: Architecture of Vault and Spring App (Click to enlarge)
The storage backend is untrusted and is used to durably store encrypted data. When the Vault server is started, it must be provided with a storage backend so that data is available across restarts. The HTTP API similarly must be started by the Vault server on start so that clients can interact with it.
- Modify /etc/nginx/nginx.conf file
- Modify /etc/nginx/sites-available/site.conf file
- Create /etc/nginx/useragent.rule file
Where to find user agent strings?
https://explore.whatismybrowser.com/useragents/explore/software_name/facebook-bot/
Test:
[rubin@reaper ~]$ curl -A "instagram" -I https://plrm.podcastalot.com
Each day at our company, developers are required to document their activities, painstakingly jotting down their daily work and future plans. A monotonous chore that I just really dislike.
So now, there's a scribe for that :
| // I'm tired of extensions that automatically: | |
| // - show welcome pages / walkthroughs | |
| // - show release notes | |
| // - send telemetry | |
| // - recommend things | |
| // | |
| // This disables all of that stuff. | |
| // If you have more config, leave a comment so I can add it!! | |
| { |
| version: '3' | |
| services: | |
| elasticsearch: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:8.0.0-SNAPSHOT | |
| container_name: elasticsearch | |
| environment: | |
| - network.host=0.0.0.0 | |
| - discovery.type=single-node | |
| - cluster.name=docker-cluster | |
| - node.name=cluster1-node1 |
| $env:Path.split(";") | ForEach-Object { | |
| Get-ChildItem -Path $_ -ErrorAction SilentlyContinue | |
| } | Where-Object { $env:PATHEXT.ToLower() -match $_.Extension.ToLower() } | Select-Object FullName |
| function video_to_gif { | |
| local input_video_path="$1" | |
| local output_gif_path="$2" | |
| local fps="${3:-10}" | |
| local scale="${4:-1080}" | |
| local loop="${5:-0}" | |
| ffmpeg -i "${input_video_path}" -vf "setpts=PTS/1,fps=${fps},scale=${scale}:-2:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop $loop "${output_gif_path}" | |
| } |
| # Save the transcripts using the "Save Page WE" Chrome Extension | |
| # This script was generated by ChatGPT | |
| import sys | |
| from bs4 import BeautifulSoup | |
| # Check if a file was provided as a command line argument | |
| if len(sys.argv) < 2: | |
| print("Please provide an HTML file as a command line argument.") | |
| sys.exit(1) |

