Skip to content

Instantly share code, notes, and snippets.

View ederrafo's full-sized avatar

Eder Rafo Jose Pariwana Espinhal ederrafo

View GitHub Profile
@ederrafo
ederrafo / git reset.md
Created February 20, 2024 16:20
git eliminar commit

ver los comit que vas a eliminar

git log

elimina los ultimos 3 comit en local

git reset --hard HEAD~3
@ederrafo
ederrafo / tomcat-install-as-service.md
Last active March 19, 2024 21:20
tomcat install
  1. Install java
sudo apt -y install openjdk-8-jdk && sudo apt -y install openjdk-8-jre
  1. Configure date America/Lima
@ederrafo
ederrafo / userSnippets.md
Created September 21, 2023 15:46
snippet visual studio code

php

{
	// Place your snippets for php here. Each snippet is defined under a snippet name and has a prefix, body and 
	// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
	// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the 
@ederrafo
ederrafo / table-fixed-two-rows-scroll.html
Created September 17, 2023 19:33
html table header fixed
<style>
table.paymentGroups tbody tr.grey th {
background-color: #ddd;
}
table.paymentGroups thead tr:first-child th {
position:sticky;
top:0px;
background: white;
z-index: 2;

Sample create folder: createFolder.sh

#!/bin/sh
mkdir /tmp/created-from-script
@ederrafo
ederrafo / phpunit.md
Created August 17, 2023 16:50
test php phpunit

In laravel 5, execute specific test and name

 vendor/bin/phpunit --filter "CommissionServiceTest::testAgencyMarkupNotCoverCommission"
@ederrafo
ederrafo / ubuntu-22.md
Created June 23, 2023 02:29
ubuntu server

Error file:/cdrom jammy Release

$ sudo apt-get update
[sudo] password for costamar: 
Get:1 file:/cdrom jammy InRelease
Ign:1 file:/cdrom jammy InRelease
Get:2 file:/cdrom jammy Release
function getInvoices(Request $request)
  {
      $customerType = $request->customerType;
      $request->merge(['invoiceDateFrom' => \App\Util\DateUtil::format($request->invoiceDateFrom, 'Y-m-d')]);
      $request->merge(['invoiceDateTo'   => \App\Util\DateUtil::format($request->invoiceDateTo, 'Y-m-d')]);
      $request->merge(['accountId'       => $request->accountId]);
      if ($customerType == CustomerTypeConstants::CORPORATE) {
$response = $this-&gt;corporateService-&gt;getDetailInvoices($request);
Problem 1
- maatwebsite/excel[3.1.20, ..., 3.1.25] require phpoffice/phpspreadsheet ^1.14 -> satisfiable by phpoffice/phpspreadsheet[1.14.0, ..., 1.28.0].
- maatwebsite/excel[3.1.18, ..., 3.1.19] require phpoffice/phpspreadsheet ^1.10 -> satisfiable by phpoffice/phpspreadsheet[1.10.0, ..., 1.28.0].
- maatwebsite/excel[3.1.7, ..., 3.1.17] require phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, ..., 1.28.0].
- maatwebsite/excel[3.1.0, ..., 3.1.6] require phpoffice/phpspreadsheet ^1.4 -> satisfiable by phpoffice/phpspreadsheet[1.4.0, ..., 1.28.0].
- maatwebsite/excel[3.1.26, ..., 3.1.35] require illuminate/support 5.8.*|^6.0|^7.0|^8.0 -> satisfiable by illuminate/support[v5.8.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27].
- maatwebsite/excel[3.1.36, ..., 3.1.45] require illuminate/support 5.8.*|^6.0|^7.0|^8.0|^9.0 -> satisfiable by illuminate/support[v5.8.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v