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 / main.md
Created August 16, 2023 10:56
Importar un archivo csv en MSSQL

1. Instalar el cliente de SQL Server para Linux (Ubuntu 20.04):

sudo apt-get update
sudo apt-get install mssql-tools unixodbc-dev

Agregar la ubicación de las herramientas al PATH:

@iBet7o
iBet7o / deploy.sh
Created July 15, 2022 07:22
Commands to deploy Laravel APP
#!/bin/bash
rm -Rf vendor &&
composer install --prefer-dist --optimize-autoloader --no-dev &&
php artisan migrate --force &&
php artisan optimize:clear &&
php artisan optimize &&
php artisan view:cache
@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'
@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 / 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 / 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 / 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 / README.md
Last active August 29, 2015 14:21 — forked from hofmannsven/README.md
@iBet7o
iBet7o / gist:ab010d0ee7abbef6e6f4
Last active November 9, 2017 04:36
CheatSheet MySQL