Giter Club home page Giter Club logo

autoexec.bat's Introduction

autoexec.bat

my .dotfiles for linux and macOS

Documents

ansible not ansible

Energy saving

xymon HW raid check

/etc/apt/sources.list for Debian with unstable and experimental

bashx UPX for shell scripts

diskcom disk commander, iselect menu for some disk operations

deb2itp prepares an RFP or ITP mail for Debian Bug Tracking System

git2deb prepares an orig.tar.xz from a github.com repo of master

deb2salsa update the salsa repository

led-indicator lets the numlock/scrollock/capslock leds blink like knight rider car

COMMAND.COM $SHELL for April 1st

gray.png least distracting background image, works for day and night

raidcalc a cli raid calculator (0, 1, 5, 6)

perms store uid:gid and UNIX file permissions to a file, and restore them

the following tools are integrated into ruptime

chkreboot is it safe to reboot? chkreboot && reboot

Users on system: 2
   someone
   otherone
screen or tmux sessions of users on system: 1
   me [SCREEN]
CPU load: 4
   64 cores
Network filesystems: 0
GPU load: 329

benchmark for linux and macOS, outputs look like this:

MEM [2.67"/8 GB]
CPU [2.92"/8/arm64]
DSK [4.75"/251 GB]
NET [21.49"] Download: 20.96 Mbyte/s Upload: 12.40 Mbyte/s

sw gives you an overview of installed software with all kinds of package managers (for macOS and Linux), example:

dpkg found... 4817
brew found... 271
rpm found... 0
snap not found...
spack not found...
0install not found...
flatpak not found...
opam not found...
cpan found... n/a
module not found...
pip2 not found...
pip3 found... 248

Interesting Links

ANSI Escape Sequences

autoexec.bat's People

Contributors

alexmyczko avatar gagath avatar rnelson avatar tobhe avatar werdahias avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

autoexec.bat's Issues

zero copy for 'sed'

I post this issue (instead of creating a PullRequest) because GitHub did not allow me to create a branch in this project using my newly-created PersonalAccessToken:

$     git push --set-upstream origin jreiser-zerocopy
Username for 'https://github.com': [email protected]
Password for 'https://[email protected]@github.com': 
remote: Permission to alexmyczko/autoexec.bat.git denied to jreiser.
fatal: unable to access 'https://github.com/alexmyczko/autoexec.bat.git/': The requested URL returned error: 403

Anyway:

$ git diff
diff --git a/bashx b/bashx
index ff9cbdf..0f922a6 100644
--- a/bashx
+++ b/bashx
@@ -2,6 +2,6 @@
 # bash compressor
 # upx but for bash scripts only
 echo '#!/bin/sh' > ${1}xz
-echo 'sed 1,2d "$0"|unxz|bash -s -- "$@";exit' >> ${1}xz
-xz -c -9 $1 >> ${1}xz
+echo '(sed -n 2q; exec unxz)<"$0"|bash -s -- "$@";exit' >> ${1}xz
+xz -c -6 $1 >> ${1}xz
 chmod +x ${1}xz

The main tweak is for sed to quit after positioning the input file (and have unxz read the rest of the file directly) instead of sed copying the rest of the input into a pipe which then is read by unxz. Secondary tweaks: unxz is executed by /bin/sh which might not be bash, and minimal shells might not implement default tail merging (avoiding clone) of the last process in a pipeline; so use exec to force the tail merge. Also, the documentation for man unxzsays that compression effort -7 through -9 are likely a waste of time and RAM, especially for de-compression, where they require 17MB, 33MB, or 65MB instead of only the 9MB for -6.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.