# Welcome to Cacher
We're delighted you've chosen Cacher to be your snippet organizer! Whether you're a solo developer or a member of your team, Cacher is here to help you organize and use snippets more efficiently.
Our users create snippets to:
- Remember project-specific algorithms
- Create cheatsheets for useful libraries
- Share knowledge with colleagues
Take a few minutes to look over our **Getting Started** snippets. To view more detailed information on features, you can visit [Cacher
GOTCHA!
AppSync API Keys expire MAX 365 days.
Is in AppSync->Settings->API Keys
https://docs.aws.amazon.com/appsync/latest/devguide/security-authz.html#api-key-authorization
AppSync API key docs: API keys are configurable for up to 365 days, and you can extend an
existing expiration date for up to another 365 days from that day.
RESET HIGH COUNTRY API KEY
https://us-west-1.console.aws.amazon.com/appsync/home?region=us-west-1#/b5erzbe2cjd2zclhqio6xmqrau/v1/settings
/**
* @param {string[]} words
* @param {number[][]} queries
* @return {number[]}
*/
// Helper function to check if a character is a vowel
function isVowel(c) {
return ['a', 'e', 'i', 'o', 'u'].includes(c.toLowerCase());
};
// Helper function to check if a word starts and ends with a vowel
function startsAndEndsWithVowel(word) {
return word && isVowel(word[0]) && isVowel(word[word.length - 1]);
};
// Function to create a prefix sum array for vowel start/end words
function preprocess
<!-- ko if: name() === 'main-nav' -->
<div class="component c-navigation c-navigation--main flex flex-align-center flex-justify-center" data-bind="css: ko.observable().matchMedia('(min-width:1025px)')() ? 'c-navigation--desktop' : 'c-navigation--mobile'">
<!-- ko switch-->
<!-- ko case: ko.observable().matchMedia('(min-width:1025px)') -->
<!-- ko if: $index() === 4 -->
<div class="c-navigation__logo">
<a href="/index.aspx">
# Deploying to AppEngine fixes
When you get to the point of building and deploying instead of running `./mvnw package appengine:deploy -DskipTests` instead run `mvn clean install -DskipTests` your output should look like the following:
```bash
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< com.example:guestbook >------------------------
[INFO] Building guestbook 0.0.1-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]-------------------------
You can press SHIFT+F10 keys to open Command Prompt.
Execute `OOBE\BYPASSNRO` command then.
After this, setup will reboot the computer and after reboot, you’ll get a new option I don’t have Internet or Continue with limited setup to skip the Internet requirement.
https://github.com/unsplash/datasets?tab=readme-ov-file
https://unsplash.com/developers
images
# Install VPN using docker
Source: https://openvpn.net/as-docs/docker.html#prerequisites-169854
Download an run docker image:
```
sudo docker pull openvpn/openvpn-as
```
Run the Docker container based on the Access Server image with these parameters.
```
sudo docker run -d \
--name=openvpn-as --device /dev/net/tun \
--cap-add=MKNOD --cap-add=NET_ADMIN \
-p 943:943 \
-p 443:443 \
-p 1194:1194/udp \
-v <path to data>:/openvpn \
openvpn/openvpn-as
```
Replace <path to date> with
/**
* @param {string} s
* @return {number}
*/
var maxScore = function(s) {
// Variable to track the maximum score found
let maxScore = 0;
// Iterate through each possible split position (from 1 to s.length - 1)
for (let i = 1; i < s.length; i++) {
// Left substring contains the first i characters
let left = s.slice(0, i);
// Right substring contains the characters from i to the end of the string
let right = s.slice(i);
// Calculate the
# List Current
aws identitystore list-groups --identity-store-id <IDENTITY-STORE-ID>
aws identitystore create-group --identity-store-id <IDENTITY-STORE-ID>
aws identitystore create-group \
--identity-store-id <IDENTITY-STORE-ID> \
--display-name <GROUP-NAME>
--description <GROUP-DESCRIPTION>
# main.tf
terraform {
required_version = "~> 1.10.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.82.0"
}
random = {
source = "hashicorp/random"
version = "~> 3.6.3"
}
}
}
# Provider Configuration
provider "aws" {
region = "us-east-1"
}
provider "random" {}
# Data Source: EC2 Instance Connect Managed Prefix List
data "aws_ec2_managed_prefix_list" "ec2_instance_connect" {
name = "com.amazonaws.us-east-1.ec2-instanc
/**
* @param {number[]} days
* @param {number[]} costs
* @return {number}
*/
var mincostTickets = function(days, costs) {
// Find the maximum day of travel
const maxDay = days[days.length - 1];
// Create a DP array to store the minimum cost up to each day
const dp = new Array(maxDay + 1).fill(0);
// Create a set for quick lookup of travel days
const travelDays = new Set(days);
// Iterate through each day from 1 to maxDay
for (let i = 1; i <= maxDay; i++) {
<picture class="banner">
<source media="(min-width: 1440px)" srcset="">
<source media="(min-width: 768px)" srcset="" data-size="?w=1440">
<source media="(min-width: 0px)" srcset="" data-size="?w=768">
<img class="banner__image" src="" role="presentation" alt="Lamplighter School" />
</picture>
<script>
// create a global banner object, populate it with matrix items, and select a random image
window.banner = {};
banner.images = { items: {{ List.Items | Map: 'FieldVa
spring.application.name=sb-ecomm
# Expose more endpoints for IntelliJ integration
management.endpoints.web.exposure.include=*
management.endpoint.health.show-details=always
management.endpoint.health.probes.enabled=true
# Enable Spring Boot Admin features that IntelliJ uses
spring.application.admin.enabled=true
spring.jmx.enabled=true
| **Misspelled Word** | **Correct Spelling** |
|------------------------|------------------------|
| unpredicatable | unpredictable |
| inflaction | inflation |
| dramaticaly | dramatically |
| sigifiies | signifies |
| Fianlly | Finally |
| ged | get |
| impense | immense |
| appartment | apartm
SELECT bpp.products_id, pd.products_name, bpp.products_price FROM business_products_prices bpp inner join products_description pd on bpp.products_id = pd.products_id where bpp.customers_id = 5 and pd.language_id = 2 order by products_id asc;