Skip to content

Instantly share code, notes, and snippets.

View djoudi's full-sized avatar
🏠
Working from home

Abdelouahab Djoudi djoudi

🏠
Working from home
View GitHub Profile
@djoudi
djoudi / metabase-setup.md
Created July 23, 2024 08:41 — forked from r0lodex/metabase-setup.md
Metabase Setup

Installing and Setting Up Metabase with Postgres

This guide is written for installation of Metabase on Ubuntu 18.04. Instead of using H2 as the application database, we will be using Postgres. You can opt to use MySQL as well. Please follow the steps below:

  • Update and install Java with proper configuration
sudo apt-get update
<?php
include "inc/header.php";
?>
<div class="productForm">
<form method="POST" action="addOk.php" enctype="multipart/form-data">
<?php
session_start();
if (!isset($_SESSION["ecoin"])) {
header("Location:connect.php");
}
include "inc/header.php";
?>
<div>
<h1>Welcom To Admin</h1>
<?php
setcookie("zoom","dev web",time()+60);
echo $_COOKIE['zoom'];
?>
package org.example;
public class Linux {
public String kernel;
public String boot(){
return kernel;
}
}
// variable with type
// const
// operation
// comparisation
// condition
//loop
//function
// ds
//dsfdfsdfdsf
// variable with type
// const
// operation
// comparisation
// condition
//loop
//function
// ds
//dsfdfsdfdsf
@djoudi
djoudi / download-file.js
Created January 20, 2023 00:11 — forked from javilobo8/download-file.js
Download files with AJAX (axios)
axios({
url: 'http://localhost:5000/static/example.pdf',
method: 'GET',
responseType: 'blob', // important
}).then((response) => {
const url = window.URL.createObjectURL(new Blob([response.data]));
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', 'file.pdf');
document.body.appendChild(link);
nano /etc/systemd/system/idempiere.service
-----------------------------------
[Unit]
Description=Description for sample script goes here
After=local-fs.target
[Service]
Run as sudo:
sudo -i
Update server:
yum update -y
aapanel install command:
yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh