This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {throwError as observableThrowError, Observable , BehaviorSubject } from 'rxjs'; | |
import { Injectable, Injector } from '@angular/core'; | |
import { | |
HttpInterceptor, | |
HttpRequest, | |
HttpHandler, | |
HttpEvent | |
} from '@angular/common/http'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://gallery.ecr.aws/lambda/python | |
FROM public.ecr.aws/lambda/python:3.11-x86_64 | |
RUN yum install zip -y | |
RUN python3.11 -m venv /var/venv | |
ENV PATH="/var/venv/bin:$PATH" | |
RUN pip install numpy opencv-python-headless | |
RUN mkdir -p /var/layer/python/lib/python3.11/site-packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##################################### | |
install module wsgi on apache2 (https://pypi.org/project/mod-wsgi/) | |
#################################### | |
(Install apache develop package) | |
apt-get install apache2-dev | |
(install mod_wsgi) | |
python3 -m pip install mod_wsgi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Pesquisa CEP</title> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 1: Commit all your pending changes in the repo which you want to fix and push that. | |
Step 2: Now you need to remove everything from the git index in order to refresh your git repository. This is safe. Use this command: | |
git rm -r --cached . | |
Step 3: Now you need to add everything back into the repo, which can be done using this command: | |
git add . | |
Step 4: Finally you need to commit these changes, using this command: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT CONCAT("ALTER TABLE `", TABLE_SCHEMA, '`.`', TABLE_NAME,"` COLLATE utf8mb4_0900_ai_ci;") AS ExecuteTheString | |
FROM INFORMATION_SCHEMA.TABLES | |
WHERE TABLE_SCHEMA="[DATABASENAME]" | |
AND TABLE_TYPE="BASE TABLE"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kill $(ps aux | grep 'string contem no processo' | awk '{print $2}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from "@angular/core"; | |
import { HttpClient } from "@angular/common/http"; | |
import { CrudInterface } from "@app/core/crud.interface"; | |
import { environment } from "@env/environment"; | |
import { Observable } from "rxjs/Observable"; | |
@Injectable() | |
export class CRUD<T> implements CrudInterface<T>{ | |
endpoint: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch | grep -v "master\|development|qa" | xargs git branch -D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(isset($_FILES) && count($_FILES) > 0){ | |
print_r($_FILES); | |
exit(); | |
} | |
?> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> |