sudo apt update && sudo apt upgrade
#!/usr/bin/env bash | |
set -e | |
# Creates webp / avif images for images that don't already exist and places them in the public folder | |
# This script can take a while to run | |
# Install deps | |
# sudo apt-get install -f webp ffmpeg opusenc | |
# MacOS deps |
import { useCalendar } from '@h6s/calendar'; | |
import { useMachine } from '@xstate/react'; | |
import { Button as AriaButton } from 'ariakit/button'; | |
import clsx from 'clsx'; | |
import { isSunday, isSameDay, addMonths, isFuture, isPast, setDate } from 'date-fns'; | |
import format from 'date-fns/format'; | |
import isWithinInterval from 'date-fns/isWithinInterval'; | |
import { FC, useCallback, useMemo } from 'react'; | |
import Select from '@components/forms/components/Select'; |
- Created doc while stumbling upon this PR / issue in https://github.com/night/betterttv
- Also kudos Chrome network panel
# Tip: You can just define all environment variables used here in a | |
# .env file in the same directory so as not to expose secrets | |
# docker-compose will load it automatically | |
services: | |
s3fs: | |
privileged: true | |
image: efrecon/s3fs:1.86 | |
restart: always | |
environment: | |
- AWS_S3_BUCKET=${AWS_S3_BUCKET} |
Google is extremely transparent about the Location History it has on you. You can check it out on the timeline feature in the Google Maps application on the phone, or on https://www.google.com/maps/timeline It is possible that you have that turned off, and in that case, consider yourself lucky.
If there is data there, you can view it online, or Download and Analyze it yourself.
- To extract that data, you can go to takeout.google.com and request for the Location History data from there.
- This gets generated as a JSON file which you should download.
- You can then convert that JSON file to a CSV, by using https://gist.github.com/devdattaT/c9dcae2107622215ff2e798dd185087e
- Finally load that data in https://kepler.gl/#/demo to view locations on a Map
Note: The conversion script has been updated on 2024-06-24, to match the updated format which is now generated by Google Takeout
Documenting this here, as I often forget (what I have found) is the best way to do this at the moment.
For example, you have a list of two existing security groups given to a stack and wish to create (and use) a third - attaching all to an ALB:
AWSTemplateFormatVersion: '2010-09-09'
Description: Example template
I came across HikariCP
and I was amazed by the benchmarks and I wanted to try it instead of my default choice C3P0
and to my surprise I struggled to get the configurations
right probably because the configurations differ based on what combination of tech stack you are using.
I have setup Spring Boot
project with JPA, Web, Security
starters (Using [Spring Initializer][1]) to use PostgreSQL
as a database with HikariCP
as connection pooling.
I have used Gradle
as build tool and I would like to share what worked for me for the following assumptions:
- Spring Boot Starter JPA (Web & Security - optional)
- Gradle build tool
- PostgreSQL running and setup with a database (i.e. schema, user, db)
This gist is related to SO post https://stackoverflow.com/questions/26490967/how-do-i-configure-hikaricp-in-my-spring-boot-app-in-my-application-properties-f
Find the original here article here: Devops Best Practices
DevOps started out as "Agile Systems Administration". In 2008, at the Agile Conference in Toronto, Andrew Shafer posted an offer to moderate an ad hoc "Birds of a Feather" meeting to discuss the topic of "Agile Infrastructure". Only one person showed up to discuss the topic: Patrick Debois. Their discussions and sharing of ideas with others advanced the concept of "agile systems administration". Debois and Shafer formed an Agile Systems Administrator group on Google, with limited success. Patrick Debois did a presentation called "Infrastructure and Operations" addressing