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:
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"
},
#!/bin/bash
NOW=$(date +"%m_%d_%Y_%s")
if [[ "$1" == "CORE" ]]; then
cd /home/Project/CORE
else
cd /home/Project/www/$1
fi
#sudo -u administrator
<?php
$json = file_get_contents('php://input');
$data = json_decode($json, true);
$branch = $data['ref'];
$repo = isset($_GET['repo']) ? $_GET['repo'] : '';
$fs = fopen('commit_logs/' . $repo . '-commit.' . date('ymdhis') . '.log', 'a');