Advertisement
v1ral_ITS

more notes

Aug 16th, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 20.61 KB | None | 0 0
  1. # (c) Zygmunt Krynicki 2007,
  2. # Licensed under GPL, see COPYING for the whole text
  3. #
  4. # This script will look-up command in the database and suggest
  5. # installation of packages available from the repository
  6.  
  7. if [[ -x /usr/lib/command-not-found ]] ; then
  8.     if (( ! ${+functions[command_not_found_handler]} )) ; then
  9.         function command_not_found_handler {
  10.             [[ -x /usr/lib/command-not-found ]] || return 1
  11.             /usr/lib/command-not-found --no-failure-msg -- ${1+"$1"} && :
  12.         }
  13.     fi
  14. fi
  15.  
  16.  
  17. Thu Aug 16 19:30:57 EDT 2018
  18.  
  19. du -sh ./** | sort -h
  20.  
  21. -----------------------------
  22. Thu Aug 16 20:13:27 EDT 2018
  23. NOTE:
  24.  
  25. echo -e "\n-----------------------------\n`date`\nNOTE:\n" >> ~/notes
  26.  
  27. -----------------------------
  28. Thu Aug 16 20:13:58 EDT 2018
  29. NOTE:
  30. #!/bin/sh
  31. set -e
  32. . /usr/share/debconf/confmodule
  33.  
  34. MISSING='/dev/.udev/firmware-missing /run/udev/firmware-missing'
  35. DENIED=/tmp/missing-firmware-denied
  36.  
  37. if [ "x$1" = "x-n" ]; then
  38.         NONINTERACTIVE=1
  39. else
  40.         NONINTERACTIVE=""
  41. fi
  42.  
  43. IFACES="$@"
  44.  
  45. log () {
  46.         logger -t check-missing-firmware "$@"
  47. }
  48.  
  49. # Not all drivers register themselves if firmware is missing; in that
  50. # case determine the module via the device's modalias.
  51. get_module () {
  52.         local devpath=$1
  53.  
  54.         if [ -d $devpath/driver ]; then
  55.                 # The real path of the destination of the driver/module
  56.                 # symlink should be something like "/sys/module/e100"
  57.                 basename $(readlink -f $devpath/driver/module) || true
  58.         elif [ -e $devpath/modalias ]; then
  59.                 modalias="$(cat $devpath/modalias)"
  60.                 # Take the last module returned by modprobe
  61.                 modprobe --show-depends "$modalias" 2>/dev/null | \
  62.                         sed -n -e '$s#^.*/\([^.]*\)\.ko.*$#\1#p'
  63.         fi
  64. }
  65.  
  66. # Some modules only try to load firmware once brought up. So bring up and
  67. # then down any interfaces specified by ethdetect.
  68. upnics() {
  69.         for iface in $IFACES; do
  70.                 log "taking network interface $iface up/down"
  71.                 ip link set "$iface" up || true
  72.                 ip link set "$iface" down || true
  73.         done
  74. }
  75.  
  76. # Checks if a given module is a nic module and has an interface that
  77. # is up and has an IP address. Such modules should not be reloaded,
  78. # to avoid taking down the network after it's been configured.
  79. nic_is_configured() {
  80.         module="$1"
  81.  
  82.         for iface in $(ip -o link show up | cut -d : -f 2); do
  83.                 dir="/sys/class/net/$iface/device/driver"
  84.                 if [ -e "$dir" ] && [ "$(basename "$(readlink "$dir")")" = "$module" ]; then
  85.                        if ip address show scope global dev "$iface" | grep -q 'scope global'; then
  86.                                return 0
  87.                        fi
  88.                fi
  89.        done
  90.  
  91.        return 1
  92. }
  93.  
  94. get_fresh_dmesg() {
  95.        dmesg_file=/tmp/dmesg.txt
  96.        dmesg_ts=/tmp/dmesg-ts.txt
  97.  
  98.        # Get current dmesg:
  99.        dmesg > $dmesg_file
  100.  
  101.        # Truncate if needed:
  102.        if [ -f $dmesg_ts ]; then
  103.                # Transform [foo] into \[foo\] to make it possible to search for
  104.                # "^$tspattern" (-F for fixed string doesn't play well with ^ to
  105.                # anchor the pattern on the left):
  106.                tspattern=$(cat $dmesg_ts | sed 's,\[,\\[,;s,\],\\],')
  107.                log "looking at dmesg again, restarting from $tspattern"
  108.  
  109.                # Find the line number for the first match, empty if not found:
  110.                ln=$(grep -n "^$tspattern" $dmesg_file |sed 's/:.*//'|head -n 1)
  111.                if [ ! -z "$ln" ]; then
  112.                        log "timestamp found, truncating dmesg accordingly"
  113.                        sed -i "1,$ln d" $dmesg_file
  114.                else
  115.                        log "timestamp not found, using whole dmesg"
  116.                fi
  117.        else
  118.                log "looking at dmesg for the first time"
  119.        fi
  120.  
  121.        # Save the last timestamp:
  122.        grep -o '^\[ *[0-9.]\+\]' $dmesg_file | tail -n 1 > $dmesg_ts
  123.        log "saving timestamp for a later use: $(cat $dmesg_ts)"
  124.  
  125.        # Write and clean-up:
  126.        cat $dmesg_file
  127.        rm $dmesg_file
  128. }
  129.  
  130. check_missing () {
  131.        upnics
  132.  
  133.        # Give modules some time to request firmware.
  134.        sleep 1
  135.  
  136.        modules=""
  137.        files=""
  138.  
  139.        # The linux kernel and udev no longer let us know via
  140.        # /dev/.udev/firmware-missing and /run/udev/firmware-missing
  141.        # which firmware files the kernel drivers look for.  Check
  142.        # dmesg instead.  See also bug #725714.
  143.        fwlist=/tmp/check-missing-firmware-dmesg.list
  144.        get_fresh_dmesg | sed -rn 's/^(\[[^]]*\] )?([^ ]+) [^ ]+: firmware: failed to load ([^ ]+) .*/\2 \3/p' > $fwlist
  145.        while read module fwfile ; do
  146.            log "looking for firmware file $fwfile requested by $module"
  147.            if [ ! -e /lib/firmware/$fwfile ] ; then
  148.                if grep -q "^$fwfile$" $DENIED 2>/dev/null; then
  149.                    log "listed in $DENIED"
  150.                    continue
  151.                fi
  152.                files="${files:+$files }$fwfile"
  153.                modules="$module${modules:+ $modules}"
  154.            fi
  155.        done < $fwlist
  156.  
  157.        # This block looking in $MISSING should be removed when
  158.        # hw-detect no longer should support installing using older
  159.        # udev and kernel versions.
  160.        for missing_dir in $MISSING
  161.        do
  162.                if [ ! -d "$missing_dir" ]; then
  163.                        log "$missing_dir does not exist, skipping"
  164.                        continue
  165.                fi
  166.                for file in $(find $missing_dir -type l); do
  167.                        # decode firmware filename as encoded by
  168.                        # udev firmware.agent
  169.                        fwfile="$(basename $file | sed -e 's#\\x2f#/#g')"
  170.  
  171.                        # strip probably nonexistant firmware subdirectory
  172.                        devpath="$(readlink $file | sed 's/\/firmware\/.*//')"
  173.                        # the symlink is supposed to point to the device in /sys
  174.                        if ! echo "$devpath" | grep -q '^/sys/'; then
  175.                                devpath="/sys$devpath"
  176.                        fi
  177.  
  178.                        module=$(get_module "$devpath")
  179.                        if [ -z "$module" ]; then
  180.                                log "failed to determine module from $devpath"
  181.                                continue
  182.                        fi
  183.  
  184.                        rm -f "$file"
  185.  
  186.                        if grep -q "^$fwfile$" $DENIED 2>/dev/null; then
  187.                                continue
  188.                        fi
  189.  
  190.                        files="$fwfile${files:+ $files}"
  191.  
  192.                        if [ "$module" = usbcore ]; then
  193.                                # Special case for USB bus, which puts the
  194.                                # real module information in a subdir of
  195.                                # the devpath.
  196.                                for dir in $(find "$devpath" -maxdepth 1 -mindepth 1 -type d); do
  197.                                        module=$(get_module "$dir")
  198.                                        if [ -n "$module" ]; then
  199.                                                modules="$module${modules:+ $modules}"
  200.                                        fi
  201.                                done
  202.                        else
  203.                                modules="$module${modules:+ $modules}"
  204.                        fi
  205.                done
  206.        done
  207.  
  208.        if [ -n "$modules" ]; then
  209.                log "missing firmware files ($files) for $modules"
  210.                return 0
  211.        else
  212.                log "no missing firmware in loaded kernel modules"
  213.                return 1
  214.        fi
  215. }
  216.  
  217. # If found, copy firmware file; preserve subdirs.
  218. try_copy () {
  219.        local fwfile=$1
  220.        local sdir file f target
  221.  
  222.        sdir=$(dirname $fwfile | sed "s/^\.$//")
  223.        file=$(basename $fwfile)
  224.        for f in "/media/$fwfile" "/media/firmware/$fwfile" \
  225.                 ${sdir:+"/media/$file" "/media/firmware/$file"}; do
  226.                if [ -e "$f" ]; then
  227.                        target="/lib/firmware${sdir:+/$sdir}"
  228.                        log "copying loose file $file from '$(dirname $f)' to '$target'"
  229.                        mkdir -p "$target"
  230.                        rm -f "$target/$file"
  231.                        cp -aL "$f" "$target" || true
  232.                        break
  233.                fi
  234.        done
  235. }
  236.  
  237. first_try=1
  238. first_ask=1
  239. ask_load_firmware () {
  240.        if [ "$first_try" ]; then
  241.                first_try=""
  242.                return 0
  243.        fi
  244.  
  245.        if [ "$NONINTERACTIVE" ]; then
  246.                if [ ! "$first_ask" ]; then
  247.                        return 1
  248.                else
  249.                        first_ask=""
  250.                        return 0
  251.                fi
  252.        fi
  253.  
  254.        db_subst hw-detect/load_firmware FILES "$files"
  255.        if ! db_input high hw-detect/load_firmware; then
  256.                if [ ! "$first_ask" ]; then
  257.                        exit 1;
  258.                else
  259.                        first_ask=""
  260.                fi
  261.        fi
  262.        if ! db_go; then
  263.                exit 10 # back up
  264.        fi
  265.        db_get hw-detect/load_firmware
  266.        if [ "$RET" = true ]; then
  267.                return 0
  268.        else
  269.                echo "$files" | tr ' ' '\n' >> $DENIED
  270.                return 1
  271.        fi
  272. }
  273.  
  274. list_deb_firmware () {
  275.        udpkg -c "$1" \
  276.                | grep '^\./lib/firmware/' \
  277.                | sed -e 's!^\./lib/firmware/!!' \
  278.                | grep -v '^$'
  279. }
  280.  
  281. check_deb_arch () {
  282.        arch=$(udpkg -f "$1" | grep '^Architecture:' | sed -e 's/Architecture: *//')
  283.        [ "$arch" = all ] || [ "$arch" = "$(udpkg --print-architecture)" ]
  284. }
  285.  
  286. # Remove non-accepted firmware package
  287. remove_pkg() {
  288.        pkgname="$1"
  289.        # Remove all files listed in /var/lib/dpkg/info/$pkgname.md5sum
  290.        for file in $(cut -d" " -f 2- /var/lib/dpkg/info/$pkgname.md5sum) ; do
  291.                rm /$file
  292.        done
  293. }
  294.  
  295. install_firmware_pkg () {
  296.        if echo "$1" | grep -q '\.deb$'; then
  297.                # cache deb for installation into /target later
  298.                mkdir -p /var/cache/firmware/
  299.                cp -aL "$1" /var/cache/firmware/ || true
  300.                filename="$(basename "$1")"
  301.                pkgname="$(echo $filename |cut -d_ -f1)"
  302.                udpkg --unpack "/var/cache/firmware/$filename"
  303.                if [ -f /var/lib/dpkg/info/$pkgname.preinst ] ; then
  304.                        # Run preinst script to see if the firmware
  305.                        # license is accepted Exit code of preinst
  306.                        # decide if the package should be installed or
  307.                        # not.
  308.                        if /var/lib/dpkg/info/$pkgname.preinst ; then
  309.                                :
  310.                        else
  311.                                remove_pkg "$pkgname"
  312.                                rm "/var/cache/firmware/$filename"
  313.                        fi
  314.                fi
  315.        else
  316.                udpkg --unpack "$1"
  317.        fi
  318. }
  319.  
  320. # Try to load udebs (or debs) that contain the missing firmware.
  321. # This does not use anna because debs can have arbitrary
  322. # dependencies, which anna might try to install.
  323. check_for_firmware() {
  324.        echo "$files" | sed -e 's/ /\n/g' >/tmp/grepfor
  325.        for filename in $@; do
  326.                if [ -f "$filename" ]; then
  327.                        if check_deb_arch "$filename" && list_deb_firmware "$filename" | grep -qf /tmp/grepfor; then
  328.                                log "installing firmware package $filename"
  329.                                install_firmware_pkg "$filename" || true
  330.                        fi
  331.                fi
  332.        done
  333.        rm -f /tmp/grepfor
  334. }
  335.  
  336. while check_missing && ask_load_firmware; do
  337.        # first, check if needed firmware (u)debs are available on the
  338.        # PXE initrd or the installation CD.
  339.        if [ -d /firmware ]; then
  340.                check_for_firmware /firmware/*.deb /firmware/*.udeb
  341.        fi
  342.        if [ -d /cdrom/firmware ]; then
  343.                check_for_firmware /cdrom/firmware/*.deb /cdrom/firmware/*.udeb
  344.        fi
  345.  
  346.        # second, look for loose firmware files on the media device.
  347.        if mountmedia; then
  348.                for file in $files; do
  349.                        try_copy "$file"
  350.                done
  351.                umount /media || true
  352.        fi
  353.  
  354.        # last, look for firmware (u)debs on the media device
  355.        if mountmedia driver; then
  356.                check_for_firmware /media/*.deb /media/*.udeb /media/*.ude /media/firmware/*.deb /media/firmware/*.udeb /media/firmware/*.ude
  357.                umount /media || true
  358.        fi
  359.  
  360.        # remove and reload modules so they see the new firmware
  361.        # Sort to only reload a given module once if it asks for more
  362.        # than one firmware file (example iwlagn)
  363.        for module in $(echo $modules | tr " " "\n" | sort -u); do
  364.                if ! nic_is_configured $module; then
  365.                        log "removing and loading kernel module $module"
  366.                        modprobe -r $module || true
  367.                        modprobe -b $module || true
  368.                fi
  369.        done
  370. done
  371.  
  372.  
  373.  
  374. ____________________________________________
  375. Thu Aug 16 20:43:03 EDT 2018
  376. NOTE:
  377. wget https://raw.githubusercontent.com/gkiefer/backup2l/master/first-time.conf : backup2l.conf file
  378. ---------------------------------------------
  379.  
  380.  
  381. Thu Aug 16 20:57:25 EDT 2018
  382. NOTE:
  383. alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
  384. ---------------------------------------------
  385.  
  386.  
  387. Thu Aug 16 21:47:17 EDT 2018
  388. NOTE:
  389. Creating check file for <all.1001>...
  390. Running post-backup procedure...
  391. post-backup:
  392. nothing to do
  393. Thu Aug 16 21:46:43 EDT 2018
  394. Summary =======
  395. Backup Date Time | Size | Skipped Files+D | New Obs. | Err.
  396. ------------------------------------------------------------------------------
  397. all.1 2018-08-16 20:42 | 273.8M | 0 3745 | 3745 0 | 0
  398. Filesystem Size Used Avail Use% Mounted on /dev/mmcblk1 15G 15G 53M 100% /media/v1ral_/SD_CARD
  399. ---------------------------------------------
  400.  
  401.  
  402. Fri Aug 17 00:13:53 EDT 2018
  403. NOTE: ACTION_WPA.SH [COPY]
  404.  
  405. #!/bin/sh
  406.  
  407. # Action script to enable/disable wpa-roam interfaces in reaction to
  408. # ifplugd events.
  409. #
  410. # Copyright: Copyright (c) 2008-2010, Kel Modderman <kel@otaku42.de>
  411. # License:   GPL-2
  412. #
  413.  
  414. PATH=/sbin:/usr/sbin:/bin:/usr/bin
  415.  
  416. if [ ! -x /sbin/wpa_action ]; then
  417.     exit 0
  418. fi
  419.  
  420. # ifplugd(8) - <iface> <action>
  421. #
  422. # If an ifplugd managed interface is brought up, disconnect any
  423. # wpa-roam managed interfaces so that only one "roaming" interface
  424. # remains active on the system.
  425.  
  426. IFPLUGD_IFACE="${1}"
  427.  
  428. case "${2}" in
  429.     up)
  430.         COMMAND=disconnect
  431.         ;;
  432.     down)
  433.         COMMAND=reconnect
  434.         ;;
  435.     *)
  436.         echo "$0: unknown arguments: ${@}" >&2
  437.         exit 1
  438.         ;;
  439. esac
  440.  
  441. for CTRL in /run/wpa_supplicant/*; do
  442.     [ -S "${CTRL}" ] || continue
  443.  
  444.     IFACE="${CTRL#/run/wpa_supplicant/}"
  445.  
  446.     # skip if ifplugd is managing this interface
  447.     if [ "${IFPLUGD_IFACE}" = "${IFACE}" ]; then
  448.         continue
  449.     fi
  450.  
  451.     if wpa_action "${IFACE}" check; then
  452.         wpa_cli -i "${IFACE}" "${COMMAND}"
  453.     fi
  454. done
  455.  
  456. ---------------------------------------------
  457.  
  458.  
  459. Fri Aug 17 00:18:04 EDT 2018
  460. NOTE: pcmanfm.conf found in /etc/xdg
  461.  
  462.  
  463.  [config]
  464. bm_open_method=0
  465.  
  466. [volume]
  467. mount_on_startup=1
  468. mount_removable=1
  469. autorun=1
  470.  
  471. [desktop]
  472. wallpaper_mode=0
  473. desktop_bg=#000000
  474. desktop_fg=#ffffff
  475. desktop_shadow=#000000
  476. show_wm_menu=0
  477.  
  478. [ui]
  479. win_width=640
  480. win_height=480
  481. splitter_pos=150
  482. side_pane_mode=1
  483. view_mode=0
  484. show_hidden=0
  485. sort_type=0
  486. sort_by=2
  487. max_tab_chars=32
  488.  
  489.  
  490. ---------------------------------------------
  491.  
  492.  
  493. Fri Aug 17 00:20:35 EDT 2018
  494. NOTE:
  495.  
  496. START OLD NOTES PASTE
  497.  
  498. ---------------------------------------------
  499.  
  500. pkexec rsync -r -p -v --ignore-existing --modify-window=1 -D --existing -z -i /media/d0ctor/SD_CARD /media/d0ctor/SD_CARD/MY_BACKUPS
  501.  
  502.  
  503.  How to Open Disk Management From Command Prompt
  504.  
  505. Time Required: Opening Disk Management from the Command Prompt only takes several seconds, and probably much less once you learn the command.
  506.  
  507.     In Windows 10 and Windows 8, open Run from the Start menu or Apps screen (or see the A Quicker Method... section at the bottom of the page for an even faster way to get to Disk Management than using its command).
  508.         In Windows 7 and Windows Vista, click on the Start button.
  509.         In Windows XP and earlier, click on Start and then Run.
  510.     Type the following Disk Management command in the text box:
  511.  
  512.     diskmgmt.msc
  513.  
  514.     ...and then hit the Enter key or press the OK button, depending on where you ran the command from.
  515.         Note: Technically, opening Disk Management from the Command Prompt would require that you actually open the Command Prompt program. However, running an executable program like diskmgmt.msc from the search or Run box accomplishes the same thing.
  516.         Note: Also, technically, diskmgmt.msc is not the "Disk Management command" any more than any non command-line tool's executable is a "command." In the strictest sense, diskmgmt.msc is just the Run command for the Disk Management program.
  517. You must extract it but you dont must extract it to your harddrive you can use stdtout and pipe it to genisoimage or mkisofs
  518.  
  519. tar --to-stdout xf tareddata.tar | genisoimage -o image.iso  tareddata
  520. test it: mount -o loop image.iso /mnt
  521. you can write a small script to automize this issue
  522.  
  523.  
  524. #!/bin/bash
  525. FILES="$@"
  526. for f in $FILES
  527. do
  528.        # if .bak backup file exists, read next file
  529.     if [ -f ${f}.bak ]
  530.     then
  531.         echo "Skiping $f file..."
  532.         continue  # read next file and skip the cp command
  533.     fi
  534.        # we are here means no backup file exists, just use cp command to copy file
  535.     /bin/cp $f $f.bak
  536. done
  537.  
  538.  
  539. -------------------------
  540.  
  541. for I in 1 2 3 4 5
  542. do
  543.  statements1      #Executed for all values of ''I'', up to a disaster-condition if any.
  544.  statements2
  545.  if (condition)
  546.  then
  547.     continue   #Go to next iteration of I in the loop and skip statements3
  548.  fi
  549.  statements3
  550. done
  551.  
  552.  
  553. ---------------------------
  554.  
  555. Sat Aug 11 18:17:48 EDT 2018
  556. NOTE: gdialog --backtitle "Word Count Script"  --msgbox "Words: $a" 25 20
  557.  
  558. Sun Aug 12 05:40:05 EDT 2018
  559. NOTE: (tar cf - .) | (gzip > /tmp/bin.tar.gz)
  560.  
  561. Sun Aug 12 09:11:49 EDT 2018
  562. NOTE: find . -print | cpio -pdm /target/folder
  563.  
  564.  
  565. Sun Aug 12 10:21:55 EDT 2018
  566. NOTE: time (pbar | (tar cf - . | gzip > out.tgz) 2>&1 )
  567.  
  568. Sun Aug 12 10:37:00 EDT 2018
  569. NOTE: tar -C $PWD --numeric-owner -S -c . | pv -tpeba -s 100G | tar -C /tmp/bin --numeric-owner -S -xp
  570.  
  571. Sun Aug 12 10:56:15 EDT 2018
  572. NOTE: tar --to-stdout -S -c . | pv -tpeba -s 10G | gzip > /bkup/test.tar.tgz
  573.  
  574. Sun Aug 12 11:07:58 EDT 2018
  575. NOTE: shell script example of checking for your scritps needed apt packages
  576.  
  577. needed_tool='youtube-dl ffmpeg'
  578. require_tools () {
  579.     local NOT_AVAIL=""
  580.     for TOOL in $needed_tool; do
  581.     if [ "`which $TOOL 2> /dev/null`" == "" ]; then NOT_AVAIL="$NOT_AVAIL $TOOL";
  582.     fi
  583.     done
  584.     if [[ "$NOT_AVAIL" != "" ]]; then echo "ERROR: The following required tool(s) cannot be found: $NOT_AVAIL"
  585.     exit
  586.     3
  587.     fi
  588. }
  589. # Check If Package Downloaded
  590. require_tools
  591.  
  592. Mon Aug 13 01:23:37 EDT 2018
  593. NOTE: s openvpn --config vpnbook-ca1-tcp80.ovpn --auth-user-pass ./vpnbook.auth
  594.  
  595. Mon Aug 13 01:25:54 EDT 2018
  596. NOTE: cat /media/d0ctor/MISC./g0ne.iso/.dr3
  597.  
  598. Mon Aug 13 18:26:40 EDT 2018
  599. NOTE: type -a 'CMD'
  600.  
  601. Mon Aug 13 21:27:15 EDT 2018
  602. NOTE: nmcli connection show nmcli device show
  603.  
  604. Mon Aug 13 21:33:19 EDT 2018
  605. NOTE: ls . | zenity --title "Choose File From Current Direcotry" --list --column "ImPerial TeK. Solutions {v1ral_ITS}" --width=1000 --height=200
  606.  
  607. Mon Aug 13 22:49:07 EDT 2018
  608. NOTE: gnome-session-quit --reboot
  609.  
  610. Mon Aug 13 22:49:20 EDT 2018
  611. NOTE: gnome-session-quit --logout
  612.  
  613. Mon Aug 13 22:49:34 EDT 2018
  614. NOTE: gnome-session-quit --power-off
  615.  
  616. Mon Aug 13 23:00:06 EDT 2018
  617. NOTE: PS1 = notes
  618. %F{blue}ITS%F{red}_%F{white} %F{yellow}~
  619. %F{blue} %Bv%F{green}%b1%Br%F{cyan}%bal%F{red}_%BITS %b%U%@%u -
  620. %b%F{red}%BITS%b%F{red} %F{white}%B<%/> %U%B%F{yellow}%@%u%F{black}-%b%F{white}%u %F{yellow}%k
  621.  
  622. Mon Aug 13 23:10:12 EDT 2018
  623. NOTE: qps is a system and process monitor
  624.  
  625. Mon Aug 13 23:35:00 EDT 2018
  626. NOTE: cp -r -u -v $SOURCE $DESTINATION
  627.  
  628. Mon Aug 13 23:43:57 EDT 2018
  629. NOTE: you can create a file with "touch new.tar.gz" then use archivemount new.tar.gz /tmp/new and cp or mv any and all files to /tmp/new then fusermount -u /tmp/new and all the files will be in the new arhive
  630.  
  631. NOTE:
  632.  
  633. read FILE < <( echo "$(yad --file --multiple --width=800 --height=600 \
  634.         --title="Select Files")" )
  635.  
  636. Tue Aug 14 00:25:11 EDT 2018
  637. NOTE: tar cf - . | pv -tpeba -s 1G | gzip > awesome.tar.gz
  638.  
  639. Tue Aug 14 04:43:41 EDT 2018
  640. NOTE:
  641. testing
  642. ---------------------------------------------
  643.  
  644.  
  645. Fri Aug 17 00:34:14 EDT 2018
  646. NOTE: BEST COMPRESSION
  647.  
  648. 7z -mx=9 -tgzip a test.tgz ./new.1.tgz
  649.  
  650. ---------------------------------------------
  651.  
  652.  
  653. Fri Aug 17 00:44:34 EDT 2018
  654. NOTE: blank entry form
  655.  
  656. $(zenity --title "" --width=560 --text "" --forms --add-entry "")
  657.  
  658. ---------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement