Encurtador de URLs pelo terminal através do Google
Publicado por Perfil removido (última atualização em 31/03/2010)
[ Hits: 9.564 ]
Script que converte uma URL para a versão "encurtada" pelo app goo.gl.
#!/bin/bash # Author: Murilo Santana # # Google url shortener bash script # http://gist.github.com/346451 # # For information about the url shortener app: # http://ggl-shortener.appspot.com/instructions/ app='http://ggl-shortener.appspot.com/?url=' url="$1" protocol=`echo "$1" | sed -e "/^http:\/\//g"` if [ -z "$1" ]; then echo -e "you need to pass the url through an argument"; echo -e "e.g. `basename $0` http://url"; else if [ ! "$protocol" ]; then curl -s "$app$url" | sed -e 's/{"short_url":"//' -e 's/"}/\n/g' else repl=`echo "$1" | sed -e 's/^/http:\/\//g'` curl -s "$app$repl" | sed -e 's/{"short_url":"//' -e 's/{"error_message":"Bad request/error: bad request/' -e 's/"}/\n/g' fi; fi
Inclusão/Exclusão de usuários no CVS.
Script para calcular a media área de cobertura de impressão (toner ou tinta)
ppmtolss16 converte imagens para o formato lss
Conciliando o uso da ZRAM e SWAP em disco na sua máquina
Servidor de Backup com Ubuntu Server 24.04 LTS, RAID e Duplicati (Dell PowerEdge T420)
Visualizar câmeras IP ONVIF no Linux sem necessidade de instalar aplicativos
Proteja seu Linux Mint com o Timeshift: Restaure o sistema mesmo que ele não inicie!
Instalando Google Chrome no Debian 13