Skip to content

Instantly share code, notes, and snippets.

View gladx's full-sized avatar
🕺
Coding ...

Ali Yousefi gladx

🕺
Coding ...
View GitHub Profile
@prrao87
prrao87 / install_postman_mint_no_snap.md
Last active April 29, 2024 15:34
Install Postman on Linux Mint (without using snap)

Goal

Postman is a usefull app to build and test APIs, most commonly installed on ubuntu-like systems via snap. On recent distributions of Linux Mint (20 and above), snap installs are no longer possible. The instructions below show how to install Postman via the terminal.

Download Postman

$ wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz

Extract archive

$ sudo tar -xzf postman.tar.gz -C /opt

Make symlink

@vkushnir
vkushnir / README.md
Last active September 20, 2023 00:27
RClone utilites [https://rclone.org/]
@liunian
liunian / gist:9338301
Last active April 26, 2024 03:30
Human Readable File Size with PHP
<?php
# http://jeffreysambells.com/2012/10/25/human-readable-filesize-php
function human_filesize($bytes, $decimals = 2) {
$size = array('B','kB','MB','GB','TB','PB','EB','ZB','YB');
$factor = floor((strlen($bytes) - 1) / 3);
return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . @$size[$factor];
}
echo human_filesize(filesize('example.zip'));
@igrigorik
igrigorik / links.md
Created August 28, 2012 16:53
HAR Show links & resources