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 | |
BOOL_TRUE=0; | |
BOOL_FALSE=1; | |
IS_SCRIPT_DRYRUN=${BOOL_FALSE}; | |
RECOVERY_THRESHOLD=1800; # When the memory exceeds this many megabytes, recovery will be attempted (as long as we are not in dryrun mode) | |
RESULT_DIFF_THRESHOLD=5; # The two programs often report different numbers. At what point is that divergence enough to be a concern? | |
FREE_PAGECACHE=1; |
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 | |
RED=$'\e[0;31m'; | |
LIGHTRED=$'\e[1;31m'; | |
GREEN=$'\e[0;32m'; | |
LIGHTGREEN=$'\e[1;32m'; | |
BLUE=$'\e[0;34m'; | |
LIGHTBLUE=$'\e[1;34m'; | |
YELLOW=$'\e[1;33m'; | |
PURPLE=$'\e[0;35m'; |
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
@ECHO ON | |
:: I've left ECHO'ing on, because I don't want to suppress the info, user might want to know what is going on | |
:: However it looks really annoying because it still displays the windows prompt, so let's set a custom prompt | |
:: which will end with an extra \r\n so that the ECHO'd command will be on a separate line from the prompt | |
:: We will remove that part at the end of the script | |
:: | |
:: Scratch what I said above, the output is ugly. Too ugly. Let's just try an empty prompt | |
:: prompt $E[1;31m[$T]$E[0m$E[1;33m[$P]$E[0m$S$$$S$_ | |
:: | |
:: The prompt shall be 1 space followed by 1 backspace. So it will APPEAR to the user as though there is no prompt. |
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
class Lita_ObjectGrouper { | |
[System.String] $TrackingProp | |
[System.Type] $MapType | |
[System.String] $HashKey | |
[System.String] $NextGroupMapType | |
[System.String] $customMethodCall |
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 | |
SCRIPT_FILE="${BASH_SOURCE[@]}"; | |
SCRIPT_EXEC="${0}"; | |
PROCESS_FILE="/home/clentz/.KDE-MORE_TROUBLESHOOTING/pertinent-calls-no-errors"; | |
DEFAULT_IFS=$'\x20\x09\x0a'; |
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 | |
clentz_xinitrc_minimal_kde(){ | |
kwin_x11 --replace --no-kactivities & | |
konqueror "${HOME}" & | |
konsole & | |
kcachegrind & | |
} | |
clentz_xinitrc_full_kde_plasma(){ |
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 | |
PYTHONPATH="${HOME}/.local/lib/python3.8/site-packages/"; | |
RED='\[\e[0;31m\]' | |
LIGHTRED='\[\e[1;31m\]' | |
GREEN='\[\e[0;32m\]' | |
LIGHTGREEN='\[\e[1;32m\]' | |
BLUE='\[\e[0;34m\]' | |
LIGHTBLUE='\[\e[1;34m\]' | |
YELLOW='\[\e[1;33m\]' |
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 | |
declare CHAR_ESC=$'\x1b'; | |
declare -i LTA_COL_SIZE=7; | |
declare LTA_TEST_STR='x11'; | |
declare -i LTA_CURR_COL=0; | |
declare -i LTA_CURR_ROW=0; | |
declare -i LTA_IS_BOLD=0; | |
declare -i LTA_FG_NUM=0; |
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 | |
DEFAULT_IFS="${IFS}"; | |
CHAR_ESC=$'\x1b'; | |
declare -a LTA_COLOR_KEYS=("RED" "GREEN" "BLUE" "YELLOW" "PURPLE" "CYAN" "WHITE" "NORMAL" "CLEAR"); | |
readarray -t LTA_ENV_LINES <<<"$(printenv | sort)" | |
declare -i LTA_LINENO=0; |
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
function downloadPlaylistItems($x){ | |
var VidList = []; | |
$x('//@data-video-id').forEach(function(vid){ | |
VidList.push('https://www.youtube.com/watch?v='.concat(vid.nodeValue)); | |
}); | |
var downloadAnchor = document.createElement('a'); | |
var date = new Date(); | |
var utcStr = date.toUTCString(); | |
downloadAnchor.setAttribute('download', 'YouTube_Links--'.concat(utcStr, '.txt')); | |
var data = btoa(VidList.join("\n")); |
NewerOlder