Skip to content

Instantly share code, notes, and snippets.

View jgnosolored's full-sized avatar

Jose García (Nosolored) jgnosolored

View GitHub Profile
@jgnosolored
jgnosolored / prompts.md
Created February 13, 2024 16:25
prompts para chatgpt

Prompts para chat gpt

Prompts para usar enchatgpt y sacarle el mayor provecho a esta gran herramienta.

Estos prompts son una traduccion del repositorio awesome-chatgpt-prompts

Actuar como traductor y mejorador de inglés

Quiero que actúes como traductor de inglés, corrector ortográfico y mejorador. Te hablaré en cualquier idioma y tú detectarás el idioma, lo traducirás y contestarás en la versión corregida

@jgnosolored
jgnosolored / moodle_versions_guide.md
Created January 12, 2024 12:27 — forked from danielribes/moodle_versions_guide.md
Survival Guide to Moodle Versions

Moodle Versions

This is a quick survival guide to Moodle principal versions and requirements

😎 Current

Download from: https://download.moodle.org/releases/latest/

Moodle Version PHP Required MySQL Release notes Upgrade from Observations
4.2.1 8.0.0 and 8.1.x 8.0 Release notes Moodle 3.9 📣 PHP extension sodium is required

🎒 Other supported releases

@jgnosolored
jgnosolored / GIT aliases
Created February 9, 2023 18:50 — forked from anwas/GIT aliases
[GIT install, config and snippets] #git #snippets #alias
git init
git add .
git commit -a -m "Initial commit"
git tag -a 1.0.0
git tag -n
git checkout -b develop master
git checkout -b feature-clean-footer develop
git checkout develop
@jgnosolored
jgnosolored / multiple-php.txt
Created February 9, 2023 18:46 — forked from anwas/multiple-php.txt
[Multiple PHP versions on Ubuntu] #php #dev
## Add repository
### https://launchpad.net/%7Eondrej/+archive/ubuntu/php
### https://launchpad.net/~ondrej/+archive/ubuntu/apache2
sudo add-apt-repository ppa:ondrej/php
sudo add-apt-repository ppa:ondrej/apache2
sudo apt-get update
sudo apt-get dist-upgrade
@jgnosolored
jgnosolored / log4j_rce_detection.md
Created December 14, 2021 10:57 — forked from Neo23x0/log4j_rce_detection.md
Log4j RCE CVE-2021-44228 Exploitation Detection

log4j RCE Exploitation Detection

You can use these commands and rules to search for exploitation attempts against log4j RCE vulnerability CVE-2021-44228

Grep / Zgrep

This command searches for exploitation attempts in uncompressed files in folder /var/log and all sub folders

sudo egrep -I -i -r '\$(\{|%7B)jndi:(ldap[s]?|rmi|dns|nis|iiop|corba|nds|http):/[^\n]+' /var/log
@jgnosolored
jgnosolored / find.sh
Created November 4, 2021 16:25 — forked from jonaslejon/find.sh
Find Trojan Source unicode characters (CVE-2021-42694 and CVE-2021-42574.)
#/bin/sh
# Usage instructions: sh find.sh php|tr '\n' '; '
# Then copy and paste the output and execute it
ext=$1
C="\u200E \u200F \u202A \u202B \u202C \u202D \u202E \u2066 \u2067 \u2068 \u2069 \u202C"
for a in $C; do echo find . -type f -name \"*.$ext\" -exec grep -H \$\'$a\' {} \\\; ; done
@jgnosolored
jgnosolored / .htaccess
Created October 9, 2021 09:26 — forked from seoagentur-hamburg/.htaccess
UPDATE 2021/10: Perfect .htaccess file for highspeed and security. You can use it for every WordPress-Website without problems. Highspeed and Security - testet on hundreds of Websites. If you are using a WordPress Multisite, change the last part of this file.
########################################################################
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2.0.1 - 08/2020
# ----------------------------------------------------------------------
# @Author: Andreas Hecht
# @Author URI: https://seoagentur-hamburg.com
# License: GNU General Public License v2 or later
# License URI: http://www.gnu.org/licenses/gpl-2.0.html
########################################################################
@jgnosolored
jgnosolored / setup.sh
Created August 20, 2021 11:34 — forked from jjvillavicencio/setup.sh
Install Android SDK on Windows Bash (WSL)
cd /home/<user>/
sudo apt-get install unzip
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip -d Android
rm sdk-tools-linux-4333796.zip
sudo apt-get install -y lib32z1 openjdk-8-jdk
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc
cd Android/tools/bin