Skip to content

Instantly share code, notes, and snippets.

View rodrigocnascimento's full-sized avatar
🐯
i'm a turtle

Rodrigo Nascimento rodrigocnascimento

🐯
i'm a turtle
View GitHub Profile
export interface MockDataOptions {
customData?: Record<string, any>;
quantityToGenerate?: number;
}
function customObjectPropertyOverload(index: any, customData: any, mockedData: any) {
const dataPropertyKeys = Object.keys(customData || {});
for (const dataIndex of dataPropertyKeys) {
const dataSubProperties = Object.keys(customData[dataIndex]);
npm WARN @agm/core@1.1.0 requires a peer of @angular/common@^6.0.0 || ^7.0.0 || ^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @agm/core@1.1.0 requires a peer of @angular/core@^6.0.0 || ^7.0.0 || ^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/common@11.2.14 requires a peer of rxjs@^6.5.3 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/core@11.2.14 requires a peer of rxjs@^6.5.3 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/forms@11.2.14 requires a peer of rxjs@^6.5.3 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/router@11.2.14 requires a peer of rxjs@^6.5.3 but none is installed. You must install peer dependencies yourself.
npm WARN ng-apexcharts@1.5.9 requires a peer of @angular/common@>=9.0.0 <11.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ng-apexcharts@1.5.9 requires a pee
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions ma
npm WARN using --force Recommended protections disabled.
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: @angular/common@11.2.14
npm WARN node_modules/@angular/common
npm WARN @angular/common@"~11.2.13" from the root project
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @angular/common@"^6.0.0 || ^7.0.0 || ^8.0.0" from @agm/core@1.1.0
npm WARN node_modules/@agm/core
npm WARN @agm/core@"^1.1.0" from the root project
# npm resolution error report
2021-06-12T12:51:44.021Z
While resolving: angular-material-admin@1.0.5
Found: rxjs@7.0.0
node_modules/rxjs
rxjs@"7.0.0" from the root project
Could not resolve dependency:

#DIRETRIZES DE SEGURANÇA PARA WORDPRESS

###IMEDIATAS

  • Criar senhas únicas de autenticação e salt: https://api.wordpress.org/secret-key/1.1/salt/
  • Não usar 'admin' como usuário e senhas fáceis. De preferência senhas com caracteres minúsculos, maiúsculos e, quando possível, caracteres especiais.
  • Permissões corretas em diretórios e arquivos
  • todos os aquivos - 644
  • diretórios 755
  • themes 555
Dm
eu
Am
tão isósceles
E
você ângulo
hipóteses
Am
sobre o meu tesão
Dm

If you want to delete all your commit history but keep the code in its current state it is very safe to do it as in the following:

Checkout

git checkout --orphan latest_branch

Add all the files

{
"name": "wiremock",
"version": "0.1.0",
"description": "wiremock",
"config": {
"wiremock_url": "http://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-standalone/2.6.0/wiremock-standalone-2.6.0.jar"
},
"watch": {
"wiremock:reload": "{__files,mappings}/*.json"
},
@rodrigocnascimento
rodrigocnascimento / gist:8547108
Created January 21, 2014 19:53
Gerando XML com ASP
'GERANDO XML ------------------------------------------------------------------------------------------------
ArquivoXML = "lance_a_lance.xml" 'adicionando um nome no arquivo
timestamp = DateAdd("h", 3, Time)
Set FSO = CreateObject("Scripting.FileSystemObject") 'criando o objeto FSO
Set Linhas = FSO.CreateTextFile(Server.MapPath(ArquivoXML), True) 'salvando o arquivo no servidor através do método "CreateTextFile"
'gerando linas
Linhas.WriteLine("<?xml version=""1.0""?>")
Linhas.WriteLine("<LANCE_A_LANCE>")
Linhas.WriteLine("<TEMPO_JOGO>"&titulo&"</TEMPO_JOGO>" )