Get 10 largest directories
find . -type d -print0 | xargs -0 du | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
Get 10 largest files
find . -type f -print0 | xargs -0 du | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
Get 10 largest directories
find . -type d -print0 | xargs -0 du | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
Get 10 largest files
find . -type f -print0 | xargs -0 du | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
# CREATED BY BEN O'SULLIVAN / BIGBENO37 (GITHUB.COM/BIGBENO37) | |
# LICENSED UNDER CREATIVE COMMONS 'Attribution 4.0 International' LICENSE | |
# https://creativecommons.org/licenses/by/4.0/ | |
# FEEL FREE TO USE AND ADAPT THIS SCRIPT IN COMMERCIAL AND NON COMMERICAL PRODUCTS | |
# AS LONG AS PROPER ACCREDITATION IS GIVEN | |
# VARIABLES | |
echo -e "\x1B[01;95mWhat would you like to name your Laravel project?\x1B[0m" | |
read LARAVEL_PROJECT_NAME |
Byobu Commands | |
============== | |
byobu Screen manager | |
Level 0 Commands (Quick Start) | |
------------------------------ | |
<F2> Create a new window |
Undo a commit and redo
$ git commit -m "Something terribly misguided" (1)
$ git reset HEAD~ (2)
<< edit files as necessary >> (3)
$ git add ... (4)
$ git commit -c ORIG_HEAD (5)
https://devcenter.heroku.com/articles/getting-started-with-laravel
Creating a Laravel application
The application in this tutorial is based on the Laravel Installation guide. It’s worth a read before following the instructions in this article. Installing a new Laravel project
The composer create-project command is one of the ways you can bootstrap a new project based on the laravel/laravel standard application skeleton. The command below sets it up in a directory named hello_laravel_heroku using the latest version of the framework.
After downloading an extensive number of dependencies and running a few hooks, Composer will have set up a fully functional project in the directory you specified, so you can cd to it.
shutdown /s /t 7200 | |
# shutdown /a - Aborts shutdown |
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' | |
alias apti='sudo apt-get install' | |
alias apts='apt-cache search' | |
alias egrep='egrep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias grep='grep --colour=auto' | |
alias l='ls -CF' | |
alias la='ls -A' | |
alias ll='ls -alF' | |
alias ls='ls --color=auto' |
Reader is a collection of layout and style changes to make webpages more readable on large displays. |
// ==UserScript== | |
// @name Steam Discussions Enhancements | |
// @namespace sde | |
// @description Steam Discussions Enhancements | |
// @include http*://steamcommunity.com/app/*/discussions/* | |
// @include http*://steamcommunity.com/id/*/commentnotifications/ | |
// @include http*://steamcommunity.com/id/*/home/invites/ | |
// @version 0.1 | |
// @grant none |