Skip to content

nimadez/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI

A bunch of command-line scripts
For debian-based linux distributions
* Windows support is discontinued, windows scripts are frozen.

File Name Description
about Get general information about the system
adb-debloat Debloat android device with package list
adb-pm-list List all/enabled/disabled packages
adb-pm-set Enable/disable a package by id
adb A quick launch for adb, support all arguments
apt-common-dev Install common development software
apt-common-lib Install common libs and codecs
apt-common-net Install firewall and network utils
apt-common-steam Add i386 and install steam-installer
apt-common-wine Add i386 and install wine
apt-common Install common software and tools
apt-download Download .deb package without installation
apt-list List installed packages
apt-show Show package plus dependencies and paths
apt-source-gen Generate debian sources.list file
apt-source-mirror Find the fastest debian mirrors
apt-unlock Unlock apt and fix corrupted install
aria2 Aria2c downloader with built-in config file
audio-play Audio player with network and playlist
backup-home Backup home directory to tar archive
btc-check Check bitcoin balance by address
btc-gen Generate bitcoin keys and base64
chrome-tor Chrome incognito with tor socks5 proxy
chromium-get Get latest chromium dev-build link
cpu-limit Limit cpu by percent, freq and no-turbo
dns-bench Benchmark multiple dns servers
dns-flush Flush dns cache
electron A global quick launch for electron apps
git-amend Git: Amend last commit
git-clear Git: Optimize and shrink local .git
git-commit Git: Commit changes
git-discard Git: Discard changes
git-init Git: Initialize a repository
git-push Git: Force push to remote (main/master)
git-reset Git: Reset a repository
git-squash Git: Squash multiple commits
git-top Git: Commit and squash (redo last commit)
git-ui Git: A quick launch for terminal ui
glances A quickstart for glances, system monitoring
gnome-debloat A tiny debloater for GNOME
gnome-install Install gnome-core and required packages
http-server Simple file server with subdirectories
http-upload Simple file upload/download server
img-convert Convert image format using imagemagick
img-resize Resize image by size or percent
iso-make Create basic .iso image from a directory
nonet Run a command without internet access
npm-download Download npm module to current directory
nvidia-install Install nvidia-driver on debian 12
nvidia-watch Watch nvidia-smi information
proxy-catcher Scrap fresh proxies across the web
purge-hard Purge and rebuild the ~/.cache directory
purge Delete unused packages and temporary files
python-make Make python 3 from source
python-purge Purge pycache of all ~/.venv subs
screensaver A windows-style blank screensaver
secureboot Disable or re-enable secureboot
shc Converts the shell script into binaries
speedtest Get and run speedtest-cli
ssh-keygen Generate ed25519 and rsa-4096 keys
ssl-keygen Generate rsa-4096 cert and key
swap-make Make swap file and mount for next boot
sync-hdd Sync local hdd to external hard drive
termux-setup Setup termux with git and python
termux-tor Install tor with snowflake and obfs4proxy
tcpdump A quick tcpdump network traffic monitor
term-rec Record borderless gnome-terminal window
venv-activate Activate a venv by name
venv-create Create a new venv in ~/.venv
webm-to-gif Convert .webm to gif and preserve palette
xcolor A basic color picker, converter and eyedropper
xspf-checker Check xspf playlist for broken links
GNOME Extension Description
panel-hwinfo@nimadez Add hardware info to panel (similar to HWINFO)
panel-transparent@nimadez Add transparency to panel
hwinfo CPU/GPU temps, GPU fan speed, used memory

FAQ

How to run these scripts globally?

sudo cp /path-to/cli/*.sh /usr/local/bin/
sudo chmod +x /usr/local/bin/*.sh

How to install debian 12 with gnome-core desktop?

0- secureboot.sh          disable only if you do not intend to return to windows
1- Install minimal debian 12 to start from command-line
   > do not allow login as root during installation
2- apt-source-mirror.sh   optional, find the fastest debian mirrors
   apt-source-gen.sh      optional, generate debian sources
   > full-upgrade && reboot
3- nvidia-install.sh      optional, may failed with secureboot enabled
4- gnome-install.sh       install minimal gnome-core only, no firefox
5- apt-common-lib.sh      install common libs and codecs
   apt-common-*           optional, networking, dev, wine, steam ...
6- swap-make.sh           make a swap file if you don't have a swap partition
7- purge-hard.sh          purge ~/.cache if you are reinstalling

- Tested bookworm and trixie "testing" branches
- You can install any desktop by changing step 4, try LXQt for the lightest
- Final debian core is 3.5 GB, total 5.5 GB with GNOME and packages installed
- Memory usage in idle mode is less than 1.5 GB, with CPU and GPU around 30C

* The above configuration does not meet server-level security due to the
  installation of non-free firmware, software and codecs.

So everything is going well on Linux?

If you are a gamer and play modern AAA games, Windows is still the best choice.
Of course, I'm not personally interested in PC as a gaming platform, and
I haven't had any other issues that would force me to go back to Windows.

History

↑ 2024 - migrating to debian linux after 30 years of ms-dos/win32
↑ Created in 2019 for system automation on windows machine

"A machine can reprogram another machine from scratch."

License

Code released under the GPL-3.0 license.

                              _,deb$$$$$gg.
                           ,g$$$$$$$$$$$$$$$X.
                         ,g$$X""       """Y$$.".
      debian           ,$$X'              `$$$. 
                      ',$$X       ,ggx.     `$$b:
                      `d$$'     ,$X"'   .    $$$
                       $$X      d$'     ,    $$X
                       $$:      $$.   -    ,d$$'
                       $$;      Y$b._   _,d$X'
                       Y$$.    `.`"Y$$$$X"' 
                       `$$b      "-.__
                        `Y$$b
                         `Y$$.
                           `$$b.
                             `Y$$b.
                               `"Y$b._
                                   `""""