Skip to content

Instantly share code, notes, and snippets.

Working from home

Claudio Costa streamer45

Working from home
  • Italy
View GitHub Profile
fm4dd / gcc compiler optimization for arm
Last active Apr 14, 2022
GCC compiler optimization for ARM-based systems
View gcc compiler optimization for arm

GCC compiler optimization for ARM-based systems

2017-03-03 fm4dd

The gcc compiler can optimize code by taking advantage of CPU specific features. Especially for ARM CPU's, this can have impact on application performance. ARM CPU's, even under the same architecture, could be implemented with different versions of floating point units (FPU). Utilizing full FPU potential improves performance of heavier operating systems such as full Linux distributions.

-mcpu, -march: Defining the CPU type and architecture

These flags can both be used to set the CPU type. Setting one or the other is sufficient.

sergejmueller / nginx.conf
Last active May 10, 2018
OCSP stapling PEM file for RapidSSL certificates used on Nginx. Details:üller/posts/Vq1Hf1AZ2vY
View nginx.conf
ssl_stapling on;
ssl_stapling_verify on;
ssl_trusted_certificate /usr/share/ssl/cert/rapidssl.pem;
jlong / uri.js
Created Apr 20, 2012
URI Parsing with Javascript
View uri.js
var parser = document.createElement('a');
parser.href = "";
parser.protocol; // => "http:"
parser.hostname; // => ""
parser.port; // => "3000"
parser.pathname; // => "/pathname/"; // => "?search=test"
parser.hash; // => "#hash"; // => ""