This script allows you to list files and folders recursively from the current directory, sort them by size in descending order, and display the file sizes in a human-readable format (KB, MB, GB, etc.) in the macOS Terminal.
On operating systems like macOS, the file system is case-insensitive by default. Git, which relies on the underlying file system, does not differentiate between files or directories that only differ by case (e.g., Folder vs. folder).
- Untracked Files: Git does not track changes when directory names only differ in case.
- Commit Issues: Git fails to register case-sensitive changes, causing incorrect tracking and missed changes.
- Collaboration Problems: When pushing changes to a remote, other systems (e.g., Linux) with case-sensitive file systems may experience conflicts due to mismatched file names.
Description:
This guide walks you through how to pull all remote branches from your Git repository and make them available locally. It covers advanced scenarios and provides useful commands to handle complex workflows, large projects, and team collaboration more efficiently.
⸻
Steps: 1. Fetch All Remote Branches: The git fetch --all command pulls all branches from all remote repositories, ensuring that your local repository is synchronized with the latest remote changes. This is especially helpful when working with multiple remotes or when you don’t want to modify your working directory immediately.
| # Stop all containers | |
| docker stop `docker ps -qa` | |
| # Remove all containers | |
| docker rm `docker ps -qa` | |
| # Remove all images | |
| docker rmi -f `docker images -qa ` | |
| # Remove all volumes |
| AZHU.storage = { | |
| save : function(key, jsonData, expirationMin){ | |
| if (!Modernizr.localstorage){return false;} | |
| var expirationMS = expirationMin * 60 * 1000; | |
| var record = {value: JSON.stringify(jsonData), timestamp: new Date().getTime() + expirationMS} | |
| localStorage.setItem(key, JSON.stringify(record)); | |
| return jsonData; | |
| }, | |
| load : function(key){ | |
| if (!Modernizr.localstorage){return false;} |
| http://apassant.net/2012/01/16/timeout-for-html5-localstorage/ | |
| var hours = 24; // Reset when storage is more than 24hours | |
| var now = new Date().getTime(); | |
| var setupTime = localStorage.getItem('setupTime'); | |
| if (setupTime == null) { | |
| localStorage.setItem('setupTime', now) | |
| } else { | |
| if(now-setupTime > hours*60*60*1000) { | |
| localStorage.clear() |
| [ | |
| { | |
| "code": "AAA", | |
| "lat": "-17.3595", | |
| "lon": "-145.494", | |
| "name": "Anaa Airport", | |
| "city": "Anaa", | |
| "state": "Tuamotu-Gambier", | |
| "country": "French Polynesia", |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset='utf-8' /> | |
| <title></title> | |
| <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /> | |
| <script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.42.2/mapbox-gl.js'></script> | |
| <link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.42.2/mapbox-gl.css' rel='stylesheet' /> | |
| <link href='https://www.mapbox.com/base/latest/base.css' rel='stylesheet' /> |
| // isAutoplaySupported(callback); | |
| // Test if HTML5 video autoplay is supported | |
| isAutoplaySupported = function(callback) { | |
| // Is the callback a function? | |
| if (typeof callback !== 'function') { | |
| console.log('isAutoplaySupported: Callback must be a function!'); | |
| return false; | |
| } | |
| // Check if sessionStorage exist for autoplaySupported, | |
| // if so we don't need to check for support again |
| /** | |
| * Brightcove HTML5 Player Google Analytics Tracker 1.0.0 Alpha (02 Sep 2012) | |
| * | |
| * REFERENCES: | |
| * Website: | |
| * Source: | |
| * | |
| * AUTHORS: | |
| * Darius Oleskevicius <[email protected]> | |
| * |