Skip to content

Instantly share code, notes, and snippets.

@jeijei4
jeijei4 / nginx.conf
Created August 29, 2023 21:58 — forked from v0lkan/nginx.conf
Configuring NGINX for Maximum Throughput Under High Concurrency
user web;
# One worker process per CPU core.
worker_processes 8;
# Also set
# /etc/security/limits.conf
# web soft nofile 65535
# web hard nofile 65535
# /etc/default/nginx
@jeijei4
jeijei4 / fedora-LXQT-install-xrdp.md
Created December 29, 2021 02:51 — forked from valorad/fedora-LXQT-install-xrdp.md
Fedora LXQT set up Remote Desktop (xrdp)

Fedora LXQT set up Remote Desktop (xrdp)

Install pacakge

sudo dnf install xrdp xorgxrdp
@jeijei4
jeijei4 / json.php
Created September 27, 2021 16:54 — forked from itspriddle/json.php
Pure PHP json library
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* Converts to and from JSON format.
*
* JSON (JavaScript Object Notation) is a lightweight data-interchange
* format. It is easy for humans to read and write. It is easy for machines
* to parse and generate. It is based on a subset of the JavaScript
* Programming Language, Standard ECMA-262 3rd Edition - December 1999.
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Unidades de medida</title>
<style type="text/css">
body {
@jeijei4
jeijei4 / jsonToTable.php
Created October 15, 2019 18:00 — forked from stilliard/jsonToTable.php
JSON to HTML table
<?php
/**
* JSON data to html table
*
* @param object $data
*
*/
function jsonToTable ($data)
{
@jeijei4
jeijei4 / Chart.js.html
Created December 6, 2018 15:52
Demo Chart.js.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Chart.js Demo</title>
<style>
canvas {
-moz-user-select: none;
-webkit-user-select: none;
@jeijei4
jeijei4 / funcs.js
Last active December 5, 2018 21:36 — forked from artemean/funcs.js
Ejecutar una función con un nombre dado || Run a function with a given name
"use strict";
function login(a, b) {
console.log("login " + a + b);
}
function logout(a) {
console.log("logout " + a);
}
function display(a) {
console.log("display " + a);
}
@jeijei4
jeijei4 / DisableSslv3.ps1
Created June 26, 2018 19:50 — forked from markthiessen/DisableSslv3.ps1
PowerShell script for disabling SSLv3 - Refactored
# MS Security bulletin: https://technet.microsoft.com/en-us/library/security/3009008.aspx
# Azure post where this script originally came from: http://azure.microsoft.com/blog/2014/10/19/how-to-disable-ssl-3-0-in-azure-websites-roles-and-virtual-machines/
#
#
# NOTE: This registry change requires that the server be restarted. The script
# will detect if a change is applied and AUTOMATICALLY reboot the server.
# If you don't want automatic reboot comment out the final section of the
# script before running!
Function Ensure-RegKeyExists {
@jeijei4
jeijei4 / ajaxupload.html
Created June 8, 2018 12:53 — forked from kameltovic/ajaxupload.html
Upload files through Ajax without jquery
<form action="" enctype="multipart/form-data" id="file-form" method="POST">
<div id="upup">
<h2>Upload update file</h2>
<p id="progressdiv"><progress max="100" value="0" id="progress" style="display: none;"></progress></p>
<input type="file" name="file-select" id="file-select">
<button type="submit" id="upload-button">Upload</button>
</div>
</form>
<script type="text/javascript">
var form = document.getElementById('file-form');