This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/sh | |
| set -e | |
| # grub-mkconfig helper script. | |
| # Copyright (C) 2006,2007,2008,2009 Free Software Foundation, Inc. | |
| # | |
| # GRUB is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| shopt -s extglob | |
| mapfile -t special_users < specia_users.txt | |
| printf -v users '%s|' "@(${special_users[@]})" | |
| users=${users%%|} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| shopt -s extglob | |
| mapfile -t special_users < specia_users.txt | |
| printf -v users '%s|' "@(${special_users[@]})" | |
| users=${users%%|} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| mapfile -t special_users < specia_users.txt | |
| printf -v users '%s|' "@(${special_users[@]})" | |
| users=${users%%|} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| mapfile -t special_users < specia_users.txt | |
| printf -v users '%s|' "@(${Online_Users[@]})" | |
| users=${users%%|} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| mapfile -t special_users < n.txt | |
| printf -v users '%s|' "@(${Online_Users[@]})" | |
| users=${users%%|} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| while read -ra line; do [[ ${line[0]} = @(zion|yaw|creed8) ]] && command wondersharper "${line[1]}" 960 960; done < OnlineUsers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Run dd in the background and save it's PID in the pid variable. Increase the bs if needed. | |
| ## Replace the "source" and "destination" of course! | |
| dd if=source of=destination bs=4M & pid=$! | |
| ## It should give you your shell back. When it does, run the code below. | |
| while ((pid)); do kill -USR1 "$pid" 2>/dev/null || break; sleep 5; done | |
NewerOlder