Explorar el Código

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
master
Bryan Pedini hace 6 años
padre
commit
8f896625eb
Se han modificado 12 ficheros con 23 adiciones y 3 borrados
  1. +3
    -0
      debian-based/home/bryanpedini/bin/dnsclear
  2. +1
    -1
      noos-noarch/home/bryanpedini/.local/share/applications/telegram-bjpgamevideosita.desktop
  3. +1
    -1
      noos-noarch/home/bryanpedini/.local/share/applications/telegram-bryanpedini.desktop
  4. +1
    -0
      noos-noarch/home/bryanpedini/bin/Telegram/Telegram
  5. +1
    -0
      noos-noarch/home/bryanpedini/bin/Telegram/Updater
  6. +4
    -0
      noos-noarch/home/bryanpedini/bin/cat-directory
  7. +4
    -0
      noos-noarch/home/bryanpedini/bin/cpuload
  8. +1
    -1
      noos-noarch/home/bryanpedini/bin/externalip
  9. +3
    -0
      noos-noarch/home/bryanpedini/bin/incognito
  10. +3
    -0
      noos-noarch/home/bryanpedini/bin/rmhistory
  11. +1
    -0
      noos-noarch/home/bryanpedini/bin/telegram
  12. BIN
     

+ 3
- 0
debian-based/home/bryanpedini/bin/dnsclear Ver fichero

@@ -0,0 +1,3 @@
#!/usr/bin/env bash

sudo systemctl start dns-clean

+ 1
- 1
noos-noarch/home/bryanpedini/.local/share/applications/telegram-bjpgamevideosita.desktop Ver fichero

@@ -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

+ 1
- 1
noos-noarch/home/bryanpedini/.local/share/applications/telegram-bryanpedini.desktop Ver fichero

@@ -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

+ 1
- 0
noos-noarch/home/bryanpedini/bin/Telegram/Telegram Ver fichero

@@ -0,0 +1 @@
dummy file

+ 1
- 0
noos-noarch/home/bryanpedini/bin/Telegram/Updater Ver fichero

@@ -0,0 +1 @@
dummy filex

+ 4
- 0
noos-noarch/home/bryanpedini/bin/cat-directory Ver fichero

@@ -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 {} \;

+ 4
- 0
noos-noarch/home/bryanpedini/bin/cpuload Ver fichero

@@ -0,0 +1,4 @@
#!/usr/bin/env bash

echo -n "CPU: "
top -bn1 | grep "Cpu(s)" | cut -c 10-13 | awk '{print $1"%"}'

+ 1
- 1
noos-noarch/home/bryanpedini/bin/externalip Ver fichero

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

curl http://ipecho.net/plain
echo

+ 3
- 0
noos-noarch/home/bryanpedini/bin/incognito Ver fichero

@@ -0,0 +1,3 @@
#!/bin/sh

google-chrome --incognito "$1"

+ 3
- 0
noos-noarch/home/bryanpedini/bin/rmhistory Ver fichero

@@ -0,0 +1,3 @@
#!/usr/bin/env bash

rm -i $HOME/.bash_history 2> /dev/null

+ 1
- 0
noos-noarch/home/bryanpedini/bin/telegram Ver fichero

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


Cargando…
Cancelar
Guardar