View gist:aa31b3efe365a8052b37d35a7522ff3a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 {} \; |
View disable-animations.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
gsettings set org.gnome.desktop.search-providers disable-external 'true' | |
gsettings set org.gnome.desktop.interface enable-animations 'false' |
View swap-resizer.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# 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 |
View Dynamic replace in subl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FIND: | |
(data-target="modal-[^"]*")((.|\r|\n)*)(data-target="modal-[^"]*") | |
REPLACE: | |
$1$2$1 |
View gist:9c4df256f19c6a1c528f139a00ecf33d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
View laravel-permissions.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
⭐️ 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) | |
Sources: | |
https://seesparkbox.com/foundry/semantic_commit_messages |
View services.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parameters: | |
session.storage.options: | |
# 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@section('content') | |
<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) | |
{{$item}} | |
@endforeach |
View launch.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Listen for XDebug", | |
"type": "php", | |
"request": "launch", | |
"port": 9000, | |
"ignore": [ | |
"**/vendor/**/*.php" |
NewerOlder