Download Autodesk EAGLE from https://www.autodesk.com/products/eagle/free-download and extract it to /opt
cp eagle.desktop $HOME/.local/share/applications/eagle.desktop
cd your_path/eagle-9.6.2/lib
rm libxcb*
Download Autodesk EAGLE from https://www.autodesk.com/products/eagle/free-download and extract it to /opt
cp eagle.desktop $HOME/.local/share/applications/eagle.desktop
cd your_path/eagle-9.6.2/lib
rm libxcb*
First, clone the repository of the project :
mkdir /tmp/project-name
git clone ...
Create a packages.json file in the root, containing the following :
<?php | |
use Aws\S3\S3Client; | |
use Aws\S3\Exception\S3Exception; | |
$temp_file ="mydoc.pdf"; | |
$client = new S3Client([ | |
"version" => "latest", | |
"region" => getenv("BIZ_ACCESS_REGION"), |
<?php | |
use Aws\S3\S3Client; | |
use Aws\S3\Exception\S3Exception; | |
$key = "myfolder/myfile.ext"; | |
$client = new S3Client([ | |
"version" => "latest", | |
"region" => getenv("BIZ_ACCESS_REGION"), |
## From a post on the ML, apropos this: | |
## http://lowlatencyweb.wordpress.com/2012/03/20/500000-requestssec-modern-http-servers-are-fast. | |
## For sysctl.conf | |
net.ipv4.tcp_slow_start_after_idle = 0 | |
echo "1768 64512" > /proc/sys/net/ipv4/ip_local_port_range | |
echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle | |
echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse |
//events - a super-basic Javascript (publish subscribe) pattern | |
var events = { | |
events: {}, | |
on: function (eventName, fn) { | |
this.events[eventName] = this.events[eventName] || []; | |
this.events[eventName].push(fn); | |
}, | |
off: function(eventName, fn) { | |
if (this.events[eventName]) { |
Assuming that you have already installed Node.js on your system. If you haven't visit https://nodejs.org/en/download/package-manager/
sudo nano /lib/systemd/system/mygreatestapp.service
Put the following contents in it;
[Unit]
# === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) === | |
# | |
# by Fotis Evangelou, developer of Engintron (engintron.com) | |
# | |
# ~ Updated December 2021 ~ | |
# | |
# | |
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores. | |
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage. | |
# |
location /Folder { | |
add_header 'Access-Control-Allow-Origin' '*' always; | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' "*" always; | |
add_header 'Access-Control-Allow-Credentials' 'true' always; | |
add_header 'Access-Control-Allow-Headers' "Authorization, Origin, X-Requested-With, Content-Type, Accept" always; | |
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS'; | |
add_header 'Access-Control-Max-Age' 1728000; |
// Function to create JSON Object from <form> values | |
$.fn.serializeObject = function() | |
{ | |
var o = {}; | |
var a = this.serializeArray(); | |
$.each(a, function() { | |
if (o[this.name] !== undefined) { | |
if (!o[this.name].push) { | |
o[this.name] = [o[this.name]]; | |
} |