Skip to content

Instantly share code, notes, and snippets.

View YoucefMegoura's full-sized avatar
:octocat:
Working from home

Youcef Megoura YoucefMegoura

:octocat:
Working from home
View GitHub Profile

Exporting and importing postgres database


Exporting

Access to wallix server

  • Connect to Wallix X2Go .
  • Connect to server via ssh
# ssh -t [userName]@server
curl --request POST \
--url https://pruebas-ticketbai.araba.eus/TicketBAI/v1/facturas/ \
--header 'Content-Type: application/xml;charset=UTF-8' \
--data '<?xml version="1.0" encoding="UTF-8" standalone="no"?><ns3:TicketBai xmlns:ns3="urn:ticketbai:emision" xmlns:ns2="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/XMLSchema ticketbai.xsd">
<Cabecera>
<IDVersionTBAI>1.2</IDVersionTBAI>
</Cabecera>
<Sujetos>
<Emisor>
<NIF>B62933593</NIF>
@YoucefMegoura
YoucefMegoura / LinkedList.ts
Last active December 25, 2022 12:23
Linked List TypeScript
class LinkedListNode {
constructor(public value: any, public next: object){}
}
class LinkedList {
public head: LinkedListNode | any;
public tail: LinkedListNode | any;
public length: number;
constructor(value: any) {
this.head = new LinkedListNode(value, null);
@YoucefMegoura
YoucefMegoura / InvoiceGenerateV2.java
Last active April 2, 2021 17:07
Worked but still AP problem !!!
/******************************************************************************
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *