Skip to content

Instantly share code, notes, and snippets.

View danielnunez's full-sized avatar
:octocat:
Codeando eternamente

Daniel Nuñez S. danielnunez

:octocat:
Codeando eternamente
View GitHub Profile
@danielnunez
danielnunez / opcache_install.md
Created April 1, 2024 23:53 — forked from WillSquire/opcache_install.md
OpCache install & configuration

OpCache

Installation

Install OpCache on FreeBSD with (note 56 resembles the current PHP version 5.6):

cd /usr/ports/www/php56-opcache && sudo make config-recursive install distclean

Configuration

@danielnunez
danielnunez / navicat_reset_trial.sh
Created November 19, 2023 18:35
Reset Navicat Premium 15/16 remaining trial days
#!/bin/bash
set -e
file=$(defaults read /Applications/Navicat\ Premium.app/Contents/Info.plist)
regex="CFBundleShortVersionString = \"([^\.]+)"
[[ $file =~ $regex ]]
version=${BASH_REMATCH[1]}
@danielnunez
danielnunez / 0-PHP-CREATE-EXCEL.MD
Created September 20, 2023 00:52 — forked from code-boxx/0-PHP-CREATE-EXCEL.MD
PHP Create Excel Spreadsheet

PHP CREATE EXCEL SPREADSHEET

https://code-boxx.com/create-excel-spreadsheet-php/

NOTES

A copy of PHPSpreadsheet is not included, please download your own – composer require phpoffice/phpspreadsheet.

LICENSE

Copyright by Code Boxx

Permission is hereby granted, free of charge, to any person obtaining a copy

@danielnunez
danielnunez / unicode symbols
Created August 8, 2023 19:14 — forked from datawookie/unicode symbols
Useful Unicode characters
https://github.com/muan/unicode-emoji-json
° — degree
💣 — bomb
💥 — explosion
🔥 — fire
🎉 — tada
🧯 — fire extinguisher
🎉 — party popper / tada
@danielnunez
danielnunez / oh-my-posh_WinPS_Install.md
Created March 18, 2023 07:16 — forked from adojos/oh-my-posh_WinPS_Install.md
Oh-My-Posh Installation on Win PowerShell v5.1 #powershell

Oh-My-Posh Installation on Windows PowerShell v5.1


1. Installation

There are number of ways you can install Oh-My-Posh. But commonly you install Oh-My-Posh either from PSGallery by using PowerShell's 'Install-Module' command or with Oh-My-Posh supplied platform-specific install instructions like 'Winget' on their website. Hence you can choose to run any one of the following.

If you want to use 'winget', run following:

winget install JanDeDobbeleer.OhMyPosh -s winget
@danielnunez
danielnunez / minio-letsencrypt.sh
Created June 1, 2021 23:41 — forked from superseb/minio-letsencrypt.sh
Minio using Let's Encrypt certbot obtained certificates
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "Usage: $0 fqdn email"
exit 1
fi
docker run -p 80:80 -p 443:443 -v /etc/letsencrypt:/etc/letsencrypt certbot/certbot certonly --standalone --agree-tos --reinstall --force-renewal --non-interactive --text --rsa-key-size 4096 --email $2 --domains $1
mkdir -p /root/.minio/certs
cp /etc/letsencrypt/live/$1/fullchain.pem /root/.minio/certs/public.crt
@danielnunez
danielnunez / index.js
Created April 14, 2021 18:10 — forked from imedadel/index.js
An example of using React Hooks with jQuery and Chosen plugin. `Chosen` is the original example using a class and `Chosed` is the "modern" approach using functions and hooks.
const Chosed = (props) => {
const elmt = React.useRef()
React.useLayoutEffect(()=>{
const $elmt = $(elmt.current)
const handleChange = (e) => {
props.onChange(e.target.value);
}
$elmt.chosen()
@danielnunez
danielnunez / imagick3.4.4-PHP7.4-forge.sh
Created October 29, 2020 03:40 — forked from danielstgt/imagick3.4.4-PHP7.4-forge.sh
Install ImageMagick / Imagick 3.4.4 on PHP 7.4 server (Laravel Forge)
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
apt-get install pkg-config libmagickwand-dev -y
cd /tmp
wget https://pecl.php.net/get/imagick-3.4.4.tgz
tar xvzf imagick-3.4.4.tgz
@danielnunez
danielnunez / AutoHotkey.ahk
Created October 26, 2020 19:59 — forked from eduardoarandah/AutoHotkey.ahk
Cómo usar Acentos y Ñ en teclado inglés con AutoHotkey
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Caracteres en español usando CapsLock
; Presionar CapsLock mas la vocal para acentuarla
; Para la ñ se puede usar la n o la tecla ; (porque ahí estaba la ñ originalmente)
; Para la ¿ usamos CapsLock y la tecla que tiene actualmente el ?
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; mapear la n como ñ
CapsLock & n::
If GetKeyState("Shift", "P")