Преглед на файлове

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 преди 6 години
родител
ревизия
8f896625eb
променени са 12 файла, в които са добавени 23 реда и са изтрити 3 реда
  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. Двоични данни
     

+ 3
- 0
debian-based/home/bryanpedini/bin/dnsclear Целия файл

@@ -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 Целия файл

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

+ 1
- 1
noos-noarch/home/bryanpedini/.local/share/applications/telegram-bryanpedini.desktop Целия файл

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

+ 1
- 0
noos-noarch/home/bryanpedini/bin/Telegram/Telegram Целия файл

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

+ 1
- 0
noos-noarch/home/bryanpedini/bin/Telegram/Updater Целия файл

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

+ 4
- 0
noos-noarch/home/bryanpedini/bin/cat-directory Целия файл

@@ -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 Целия файл

@@ -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 Целия файл

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


curl http://ipecho.net/plain curl http://ipecho.net/plain
echo echo

+ 3
- 0
noos-noarch/home/bryanpedini/bin/incognito Целия файл

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

google-chrome --incognito "$1"

+ 3
- 0
noos-noarch/home/bryanpedini/bin/rmhistory Целия файл

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

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

+ 1
- 0
noos-noarch/home/bryanpedini/bin/telegram Целия файл

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

Двоични данни
Целия файл


Зареждане…
Отказ
Запис