deleted Telegram Desktop executable, added utility scripts, improved operating systems compatibility

noos-noarch/home/bryanpedini/bin/telegram is a softlink to noos-noarch/home/bryanpedini/bin/Telegram/Telegram
noos-noarch/home/bryanpedini/bin/Telegram contains two dummy files called exactly the same as the ones extracted from official desktop app, please replace them!
modified Telegram ".desktop" files accordingly to new telegram symlink filename
added cat-directory utility, lists all the content of the current directory (or first argument) and prints all the files' contents to STDOUT
added cpuload utility, prints a simplified version of the "Load Average" that top/htop provide, useful in scripts or widgets
added incognito utility, opens the first argument in a Google Chrome tab in incognito mode, useful for developing/debugging
added rmhistory utility, just a single command to not have to remember the bash_history filename, callable everywhere
modified externalip to use "env" program to call bash, truly noos-noarch
This commit is contained in:
Bryan Joshua Pedini 2020-01-20 16:37:00 +01:00
parent ff1df27eb4
commit 8f896625eb
12 changed files with 23 additions and 3 deletions

View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
sudo systemctl start dns-clean

View File

@ -2,5 +2,5 @@
Name=Telegram BJPGameVideosITA
Description=A new era of messaging
Type=application
Exec=telegram-desktop -workdir $HOME/telegram-data/bjpgamevideosita
Exec=telegram -workdir $HOME/telegram-data/bjpgamevideosita
Icon=$HOME/Pictures/icons/telegram.ico

View File

@ -2,5 +2,5 @@
Name=Telegram Bryanpedini
Description=A new era of messaging
Type=application
Exec=telegram-desktop -workdir $HOME/telegram-data/bryanpedini
Exec=telegram -workdir $HOME/telegram-data/bryanpedini
Icon=$HOME/Pictures/icons/telegram.ico

View File

@ -0,0 +1 @@
dummy file

View File

@ -0,0 +1 @@
dummy filex

View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
[[ "$#" -eq 1 ]] && BASEDIR="$1" || BASEDIR="$(pwd)"
find "$BASEDIR" -type f -exec echo -e "\e[32m$(basename -- {})\e[37m:" \; -exec cat {} \;

View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
echo -n "CPU: "
top -bn1 | grep "Cpu(s)" | cut -c 10-13 | awk '{print $1"%"}'

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
curl http://ipecho.net/plain
echo

View File

@ -0,0 +1,3 @@
#!/bin/sh
google-chrome --incognito "$1"

View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
rm -i $HOME/.bash_history 2> /dev/null

View File

@ -0,0 +1 @@
/home/bryanpedini/projects/linux-utils-temp/linux-utils/noos-noarch/home/bryanpedini/bin/Telegram/Telegram