Skip to content

Instantly share code, notes, and snippets.

View carlessanagustin's full-sized avatar

carles san agustin carlessanagustin

View GitHub Profile
@carlessanagustin
carlessanagustin / AdminProductsController.php
Last active November 3, 2022 19:54
Adding a new column to Prestashop 1.6 admin product list. Changes are indicated with "START: carlessanagustin.com" and "END: carlessanagustin.com". 2 files included in this Gist.
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
@carlessanagustin
carlessanagustin / My_first_20_hours.md
Last active October 24, 2015 15:57
How to learn ANYTHING - My first 20 hours

full video

step title comments
1 deconstruct the skill break it down into smaller parts
2 learn enough to self correct get better by practise, don't overstimulate you with 20 books
3 remove practise barriers tv, internet, whatsapp, telegram...off!
4 practise for at least 20 hours remove the frustration barrier after the first 5 minutes, then 20 hours

learning curve

@carlessanagustin
carlessanagustin / conf.py
Last active February 6, 2023 14:33
How to send an email with attached text file via Python script?
# 1 FOR TESTING PURPOSES ONLY!!!
debuglevel = 1
# file format to send
pattern = '.txt'
# files to sent path
path = 'path = ‘/path/where/files/to/send/'
# delete file after sending?
delete_files = False
@carlessanagustin
carlessanagustin / troubleshooting-memory.md
Created November 17, 2015 11:33
Troubleshooting linux MEMORY usage

Troubleshooting linux MEMORY usage

This entry will hopefully show you how to troubleshoot memory used by Linux and application.

Linux System Memory usage

Display amount of free and used memory in the system (-m = in megas)

$ free -m

total used free shared buffers cached

@carlessanagustin
carlessanagustin / csv2gcalendar.md
Last active November 18, 2015 16:47
Como crear archivos CSV antes de importarlos a Google Calendar
Subject Start Date Start Time End Date End Time All Day Event Description Location Private
El nombre del evento (dato obligatorio). El primer día del evento (dato obligatorio). La hora a la que empieza el evento. El último día del evento. La hora a la que termina el evento. Aquí se indica si el evento dura todo el día. Si dura todo el día indica True. Si no indicaFalse. Descripción o notas del evento. La ubicación del evento. Si quieres marcar el evento como privado o no. Si es un evento privado indica True. Si no lo es indica False.
Ejemplo: Examen final Ejemplo: 05/30/2020 Ejemplo: 10:00 AM Ejemplo: 05/30/2020 Ejemplo: 1:00 PM Ejemplo: False Ejemplo: 50 preguntas tipo test y 2 preguntas para desarrollar Ejemplo: Universidad Complutense de Madrid Ejemplo: True
@carlessanagustin
carlessanagustin / Nginx_Cheat_Sheet.md
Last active April 18, 2024 20:18
Nginx Cheat Sheet
@carlessanagustin
carlessanagustin / gitconfig.ini
Last active May 31, 2022 07:52
My personal .gitconfig file
[user]
name = Example Name
email = example@example.com
[http]
sslVerify = false
[push]
default = current
[color]
ui = auto
[color "branch"]
@carlessanagustin
carlessanagustin / lists-dictionary.yml.md
Last active January 22, 2024 21:55
Lists & Dictionary YAML Syntax by example