Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.
Note that you need the https://brew.sh/ package manager installed on your machine.
brew install fish
Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.
Note that you need the https://brew.sh/ package manager installed on your machine.
brew install fish
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<meta chatset="UTF-8" /> | |
<title>CSS Progress Bar</title> | |
<style> | |
.wrapper { | |
width: 500px; | |
} |
<?php | |
namespace Zalas\Infrastructure\Scraper; | |
use OldSound\RabbitMqBundle\RabbitMq\Consumer; | |
use OldSound\RabbitMqBundle\RabbitMq\ConsumerInterface; | |
use OldSound\RabbitMqBundle\RabbitMq\ProducerInterface; | |
use PhpAmqpLib\Connection\AbstractConnection; | |
use PhpAmqpLib\Connection\AMQPLazyConnection; | |
use PhpAmqpLib\Exception\AMQPTimeoutException; |
/* To use this in a Google Sheet: | |
1. Go to Tools > Script Editor. | |
2. Save the script. | |
3. Paste this script and click on the bug symbol. | |
4. Authorize the script. | |
5. Refresh the sheet. | |
*/ | |
// global | |
var ss = SpreadsheetApp.getActive(); |
# Laravel queue worker using systemd | |
# ---------------------------------- | |
# | |
# /lib/systemd/system/queue.service | |
# | |
# run this command to enable service: | |
# systemctl enable queue.service | |
[Unit] | |
Description=Laravel queue worker |
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer |
<?php | |
function convert($size) | |
{ | |
$unit=array('b','kb','mb','gb','tb','pb'); | |
return @round($size/pow(1024,($i=floor(log($size,1024)))),2).' '.$unit[$i]; | |
} | |
convert(memory_get_usage()); |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
# Hello, and welcome to makefile basics. | |
# | |
# You will learn why `make` is so great, and why, despite its "weird" syntax, | |
# it is actually a highly expressive, efficient, and powerful way to build | |
# programs. | |
# | |
# Once you're done here, go to | |
# http://www.gnu.org/software/make/manual/make.html | |
# to learn SOOOO much more. |