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
<?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
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
//5! = 5*4*3*2*1
int x,i;
double result;
do{