Skip to content

Instantly share code, notes, and snippets.

View pedrorodbit's full-sized avatar
🎯
Focusing

João Pedro pedrorodbit

🎯
Focusing
  • Rio de Janeiro, Brasil
View GitHub Profile
<?
# MIT license, do whatever you want with it
#
# This is my invoice.php page which I use to make invoices that customers want,
# with their address on it and which are easily printable. I love Stripe but
# their invoices and receipts were too wild for my customers on Remote OK
#
require_once(__DIR__.'/../vendor/autoload.php');
#!/bin/bash
# Bash script to create/add Let's Encrypt SSL to HestiaCP Admin Panel
# by Neto Melo (2019)
# Make sure this script is run as root
if [ '$EUID' -ne 0 ]
then
echo ''
echo 'Please run this script as root.'
exit
#!/bin/bash
# Bash script to create/add Let's Encrypt SSL to VestaCP Admin Panel
# by Neto Melo (2018)
# Make sure this script is run as root
if [ '$EUID' -ne 0 ]
then
echo ''
echo 'Please run this script as root.'
exit
@jesperorb
jesperorb / php_form_submit.md
Last active April 30, 2024 22:27
PHP form submitting with fetch + async/await

PHP Form submitting

If we have the following structure in our application:

  • 📁 application_folder_name
    • 📄 index.php
    • 📄 handle_form.php
    • 📄 main.js

And we fill our index.php with the following content just to get a basic website with a form working. You should be able to run this through a php-server of your choice.