Skip to content

Instantly share code, notes, and snippets.

"Stay hungry. Stay foolish"

Salvador Briones Mexidense

"Stay hungry. Stay foolish"
View GitHub Profile
View gist:aa31b3efe365a8052b37d35a7522ff3a
Look for file over 100M:
find <path> -type f -size +100M -printf 1 | wc -c
File size:
du -sh <path>
Count empty files:
find <path> -type f -size 0 -printf 1 | wc -c
Find file by name and get its size:
find . -name "<filename>" -exec ls -lh {} \;
Mexidense /
Created January 27, 2021 18:40
optimize GUI Gnome on Ubuntu 20.04
gsettings set disable-external 'true'
gsettings set org.gnome.desktop.interface enable-animations 'false'
Mexidense /
Created January 23, 2021 11:54
Resize Swap volume on Ubuntu 20.04 to 8GB
# Firstly, if you want to check the swap memory size run: swapon -s
# Resize Swap volume to 8GB
sudo swapoff -a && sudo dd if=/dev/zero of=/swapfile bs=1M count=8192 && sudo mkswap /swapfile && sudo swapon /swapfile
Mexidense / Dynamic replace in subl
Created December 13, 2019 09:40
Dynamic replace in subl
View Dynamic replace in subl
View gist:9c4df256f19c6a1c528f139a00ecf33d
Shitf + ? Help
1) Hover + (space) will assign/unassign you to the card.
2) Hover + (m) will allows you to add a member in the card.
3) Hover + (l) will allows you to add a label in the card.
4) Hover + (d) will allows you to set a date in the card.
5) Hover + (c) will allows you to archive a card.
6) Hover + (s) will allows you to watch a card.
7) (q) will show you only your work.
Mexidense /
Created July 15, 2019 12:09
Laravel file permissions
#from root user
chown -R $USER:www-data storage
chown -R $USER:www-data bootstrap/cache
chmod -R 775 storage
chmod -R 775 bootstrap/cache
View Semantic Commit Messages with Emoji template
⭐️ feat: add beta sequence (new feature)
🛠 fix: remove broken confirmation message (bug fix)
♻️ refactor: share logic between 4d3d3d3 and flarhgunnstow (refactoring production code)
🌈 style: convert tabs to spaces (formatting, missing semi colons, etc; no code change)
🔍 test: ensure Tayne retains clothing (adding missing tests, refactoring tests; no production code change)
😒 chore: add Oyster build script (updating grunt tasks etc; no production code change)
📝 docs: explain hat wobble (changes to documentation)
Mexidense / services.yml
Created June 6, 2019 09:17
File for active devel and kint debuger in D8
View services.yml
# Default ini options for sessions.
# Some distributions of Linux (most notably Debian) ship their PHP
# installations with garbage collection (gc) disabled. Since Drupal depends
# on PHP's garbage collection for clearing sessions, ensure that garbage
# collection occurs by using the most common settings.
# @default 1
gc_probability: 1
View Markets view
<div class="container">
<div class="row">
<div class="col-md-8 offset-md-2">
<div class="card">
<div class="card-header">Markets</div>
<div class="card-body">
@foreach ($markets as $item)
Mexidense / launch.json
Created December 16, 2018 13:17
Configuration for xDebug on VSCode and Laravel 5.7
View launch.json
"version": "0.2.0",
"configurations": [
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"ignore": [