Skip to content

Instantly share code, notes, and snippets.

View NeftaliYagua's full-sized avatar

Neftalí Yagua NeftaliYagua

View GitHub Profile
@NeftaliYagua
NeftaliYagua / VisioPro2019 Retail Key
Created March 26, 2024 20:20 — forked from rajibdpi/VisioPro2019 Retail Key
Microsoft visio pro 2019 retail key
Key: J7VCN-9HKFP-HGHJT-D4HCC-4RJMX
Description: Office19_RTM19_VisioPro2019R_Retail
Key: YNJDD-FGPX4-XRJV8-XKQJT-KTQ4K
Description: Office19_RTM19_VisioPro2019R_Retail
check http://www.waikey.com/ if need cheap web hosting!
@NeftaliYagua
NeftaliYagua / build.yml
Created December 3, 2023 12:52 — forked from B45i/build.yml
GitHub Action - Build Ionic Capacitor Android app
name: Build Android
on: [push, pull_request]
jobs:
build:
name: Build APK
runs-on: ubuntu-latest
steps:
- name: Checkout source
@NeftaliYagua
NeftaliYagua / RestControllerExcel.java
Created December 12, 2022 15:42 — forked from rlcc885/RestControllerExcel.java
Spring boot REST Service - Apache POI force download excel
public class RestControllerExcel{
@GetMapping(value="/downloadTemplate")
public ResponseEntity<ByteArrayResource> downloadTemplate() throws Exception {
try {
ByteArrayOutputStream stream = new ByteArrayOutputStream();
XSSFWorkbook workbook = createWorkBook(); // creates the workbook
HttpHeaders header = new HttpHeaders();
header.setContentType(new MediaType("application", "force-download"));
header.set(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=ProductTemplate.xlsx");
workbook.write(stream);
@NeftaliYagua
NeftaliYagua / LetsEncrypt389DS.md
Created July 11, 2022 12:41 — forked from plembo/LetsEncrypt389DS.md
Let's Encrypt 389 Directory Server

Let's Encrypt the 389 Directory Server

The following procedure is for installing a wildcard cert and key paid from Let's Encrypt for the 389 Directory Server.

  1. Use the 389 Console gui to create a certificate database db and to import the Let's Encrypt certificate chain cert (which will be in PEM format). See secs. 9.1.3.2 and 9.3.3.2 of the Red Hat Directory Server Administration Guide for details.

  2. Create a pin.txt file under /etc/dirsrv/slapd-[instance name]:

Internal (Software) Token:agoodpassword

Three system configuration parameters must be set to support a large number of open files and TCP connections with large bursts of messages. Changes can be made using the /etc/rc.d/rc.local or /etc/sysctl.conf script to preserve changes after reboot.

1. /proc/sys/fs/file-max: The maximum number of concurrently open files.

fs.file-max = 1000000

2. /proc/sys/net/ipv4/tcp_max_syn_backlog: Maximum number of remembered connection requests, which are still did not receive an acknowledgment from connecting client. The default value is 1024 for systems with more than 128Mb of memory, and 128 for low memory machines.

net.ipv4.tcp_max_syn_backlog = 3240000

3. /proc/sys/net/core/somaxconn: Limit of socket listen() backlog, known in userspace as SOMAXCONN. Defaults to 128.

net.core.somaxconn = 3240000

@NeftaliYagua
NeftaliYagua / genieacs-install-debian-buster.sh
Created March 4, 2021 04:23 — forked from Foolson/genieacs-install-debian-buster.sh
Script that installs GenieACS on Debian Buster
#!/usr/bin/env bash
set -e
set -u
if [[ ! -f /etc/debian_version ]]
then
echo "Script only tested in Debian"
exit 1
else
@NeftaliYagua
NeftaliYagua / gotham.md
Created December 5, 2020 00:12 — forked from mfd/ gotham.md
Gotham font
https://cdn.rawgit.com/mfd/f3d96ec7f0e8f034cc22ea73b3797b59/raw/856f1dbb8d807aabceb80b6d4f94b464df461b3e/gotham.css

<link rel="https://cdn.rawgit.com/mfd/f3d96ec7f0e8f034cc22ea73b3797b59/raw/856f1dbb8d807aabceb80b6d4f94b464df461b3e/gotham.css">

Security recommendations for Windows users

Chapter 1: Basic OS protections

  1. Change(or create) password for current user:
    1. ctrl+alt+del --> Change password
  2. Create non-admin user and sign in into the system as non-admin only:
  3. Open Run prompt: ctrl+R
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {