Skip to content

Instantly share code, notes, and snippets.

View iBet7o's full-sized avatar
🏠
Working from home

iBet7o iBet7o

🏠
Working from home
View GitHub Profile
@iBet7o
iBet7o / description.md
Created January 19, 2015 01:01
Script bash para renombrar directorios y archivos

Dependencias

  • Descargar archivo flash.sh.
  • Descargar archivo rename.sh que se encuentra mas abajo.

Instalación

Modificar los permisos del archivo rename.sh

@iBet7o
iBet7o / gist:0f23a35b8b5c8cda057d
Created January 19, 2015 02:06
Asegurando ssh en CentOS 6

Cambiar puerto por default

Modificar la variable Port en el archivo sshd_config

#Ejemplo: Port 4568
vim +/Port /etc/ssh/sshd_config

# Reiniciar el servicio ssh
service sshd restart
@iBet7o
iBet7o / gist:ab010d0ee7abbef6e6f4
Last active November 9, 2017 04:36
CheatSheet MySQL
@iBet7o
iBet7o / README.md
Last active August 29, 2015 14:21 — forked from hofmannsven/README.md
@iBet7o
iBet7o / index.md
Created January 23, 2016 01:13
Command to give permissions to directories and files on opencart

2.1.0.1

chmod -R 777 config.php admin/config.php image/ image/cache/ image/catalog/ system//storage/cache/ system/storage/logs/ system/storage/download/ system/storage/upload/ system/storage/modification/
@iBet7o
iBet7o / ISO3166-1.csv
Last active February 23, 2023 03:10
ISO3166-1 Alpha-2 && Alpha-3 && Numeric | delimiter = "," && enclosure = '"'
name ISO3166-1-Alpha-2 ISO3166-1-Alpha-3
Afghanistan AF AFG
Åland Islands AX ALA
Albania AL ALB
Algeria DZ DZA
American Samoa AS ASM
Andorra AD AND
Angola AO AGO
Anguilla AI AIA
Antigua and Barbuda AG ATG
@iBet7o
iBet7o / oxxopay-request.json
Last active September 23, 2019 18:35
Response
{
"amount": 15900,
"description": "Prueba de pago Store",
"customer": {
"firstname": "Roberto",
"lastname": "Ramirez",
"phone": "5551067158",
"email": "[email protected]"
},
"payment_method": {
@iBet7o
iBet7o / encrypt_openssl.md
Created August 15, 2021 03:47 — forked from dreikanter/encrypt_openssl.md
File encryption using OpenSSL

Symmetic encryption

For symmetic encryption, you can use the following:

To encrypt:

openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt

To decrypt:

@iBet7o
iBet7o / fix-permissions.sh
Last active February 2, 2022 09:08
Fix permissions for a project in Laravel
#!/bin/sh
# Messages
# ----------------------
txtSuccess='\033[1;32m'
txtError='\033[0;31m'
txtNoColor='\033[0m'