Skip to content

Instantly share code, notes, and snippets.

@migcosta
migcosta / en_people_list.json
Last active January 21, 2022 23:17
List of words related with people
[
"actor",
"actress",
"adventurer",
"aficionado",
"aristocrat",
"artist",
"baby",
"banker",
"biker",
@migcosta
migcosta / en_glyphs_list.json
Last active January 25, 2022 16:05
list of multiple glyphs that can be misinterpreted by spacy
[
"؋",
"฿",
"₵",
"₡",
"¢",
"$",
"₫",
"֏",
"€",
@migcosta
migcosta / en_abstract_nouns_list.json
Last active January 21, 2022 00:33
Json concrete and abstract nouns lists
[
"ability",
"adoration",
"adventure",
"amazement",
"anger",
"anguish",
"anxiety",
"apprehension",
"artistry",
@migcosta
migcosta / calendar-apl.json
Last active March 20, 2022 23:14
APL Calendar Template - Alexa Presentation Language Calendar Display
{
"type": "APL",
"version": "1.3",
"theme": "light",
"import": [
{
"name": "alexa-layouts",
"version": "1.1.0"
}
],
@migcosta
migcosta / config.xml
Last active August 11, 2019 10:26
magento 1.9 config.xml base structure
<?xml version="1.0"?>
<!-- source: https://www.phpzag.com/create-custom-module-with-custom-database-table/ -->
<config>
<modules>
<[Namespace]_[Module]>
<version>0.1.0</version>
</[Namespace]_[Module]>
</modules>
<frontend>
<routers>
@migcosta
migcosta / pre-commit
Last active May 15, 2019 12:33
GIT: create a version file for non versioning users (it will need a new commit)
#! /bin/bash
#file location .git/hooks/
filename="$(git rev-parse --show-toplevel)/version.txt";
DATE=`date +%Y%m%d-%H%M%S`
#DATE=`date +%T`
echo "$DATE" > "$filename";
@migcosta
migcosta / gist:92f1dfe70bda5f3c6950a82d5b7008df
Created February 7, 2019 14:22
magento 2.3 migration images issues
<?php
/**
* I faced a strange issue while migrating a magento 2.3 from a server to another.
* some of the product images where in a uppercase folder on the server and on a lowercase on the db
* the fix was to create links...
*/
//get the folders list from [magento root]/apps/magento/htdocs/pub/media/catalog/product
$folders = ["A","B","C","d","e","f","G","h","i","J","k","l","M","n","o","P","r","s","T","u","V","w","y"];
foreach( $folders as $folder )
@migcosta
migcosta / virtualbox-mount-shared-folders-on-www
Created July 25, 2018 09:01
virtualbox mount shared folders on www
1 - turn off the VM
2 - add the shared folder with the auto mount option: folder name repos (on the VM it will be sf_repos)
3 - turn on the machine
4 - find the shared folder location: mount | grep vbox
5 - find the user id and the group id for that you whant to use:
id -u username
id -g username
6 - create a container folder on www: /var/www/remote
7 - edit ftabs: nano /etc/fstab
8 - add:*
Source
https://virtualboxes.org/doc/installing-guest-additions-on-debian/
Login as root;
Update your APT database with apt-get update;
Install the latest security updates with apt-get upgrade;
Install required packages with apt-get install build-essential module-assistant;
Configure your system for building kernel modules by running m-a prepare;
Click on Install Guest Additions… from the Devices menu, then run mount /media/cdrom.
Run sh /media/cdrom/VBoxLinuxAdditions.run, and follow the instructions on screen.
@migcosta
migcosta / follow symbolic links
Created June 16, 2018 19:38
turnkey linux - follow symbolic links