Note Please make sure the eks kubernetes version you are using is 1.23 I had issues with the latest one(1.27)
brew install awscli
App is listening on http://localhost:5500 | |
Fetching stock data... | |
[2024-02-04T02:34:28.059Z] Warning: Error from HTTP request. AggregateError | |
[2024-02-04T02:34:28.059Z] Error: Failed to complete negotiation with the server: AggregateError | |
[2024-02-04T02:34:28.059Z] Error: Failed to start the connection: AggregateError | |
Connection error: AggregateError | |
at internalConnectMultiple (node:net:1114:18) | |
at afterConnectMultiple (node:net:1667:5) { | |
code: 'ECONNREFUSED', | |
[errors]: [ |
# Variables | |
filename='.env-list.txt' | |
backupdir='~/Documents/backups__/envfiles' | |
rm -rf $filename | |
find . -name '*.env' >> $filename | |
while IFS="" read -r p || [ -n "$p" ] | |
do | |
if [[ "._" == *"$p"* ]]; then |
import { HttpErrorResponse } from '@angular/common/http'; | |
import { throwError } from 'rxjs/internal/observable/throwError'; | |
export function errorHandler(error: HttpErrorResponse) { | |
return throwError(error); | |
} |
// module dependencies | |
var http = require('http'), | |
url = require('url'); | |
/** | |
* UrlReq - Wraps the http.request function making it nice for unit testing APIs. | |
* | |
* @param {string} reqUrl The required url in any form | |
* @param {object} options An options object (this is optional) |
sudo amazon-linux-extras install -y docker && sudo service docker start && \
sudo usermod -a -G docker ec2-user && \
sudo chkconfig docker on && \
sudo yum install -y git && \
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) \
-o /usr/local/bin/docker-compose && \
sudo chmod +x /usr/local/bin/docker-compose && \
docker-compose version && \
sudo reboot
import { ReactNode, useRef } from 'react' | |
import { Button, FormControl, FormErrorMessage, FormLabel, Icon, InputGroup } from '@chakra-ui/react' | |
import { useForm, UseFormRegisterReturn } from 'react-hook-form' | |
import { FiFile } from 'react-icons/fi' | |
type FileUploadProps = { | |
register: UseFormRegisterReturn | |
accept?: string | |
multiple?: boolean | |
children?: ReactNode |
#!/bin/bash | |
# | |
# NVM lazy loading script | |
# | |
# NVM takes on average half of a second to load, which is more than whole prezto takes to load. | |
# This can be noticed when you open a new shell. | |
# To avoid this, we are creating placeholder function | |
# for nvm, node, and all the node packages previously installed in the system | |
# to only load nvm when it is needed. |
{ | |
"color_scheme": "Packages/ayu/ayu-dark.sublime-color-scheme", | |
"font_face": "Operator Mono Medium", | |
"font_size": 13, | |
"hot_exit": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"open_files_in_new_window": false, |
/* | |
(c) by Thomas Konings | |
Random Name Generator for Javascript | |
*/ | |
function capFirst(string) { | |
return string.charAt(0).toUpperCase() + string.slice(1); | |
} | |
function getRandomInt(min, max) { |