A stored Cross-site scripting (XSS) vulnerability in Blackboard Learn/CloudPeopleTool v9.1 Q2 2017 CU5
- See Blackboard advisory here
| #!/usr/bin/env bash | |
| # Remove .DS_Store Files | |
| find . -name ".DS_Store" -type f -delete | |
| # Remove AppleDouble Files | |
| find . -name '._*' -exec rm {} \; | |
| find . -name ".AppleDouble" -type f -delete | |
| # Change Any Illegal Solidus Chars in Filename to Fraction Slash |
| #!/usr/bin/env bash | |
| set -e | |
| # Must have jq & gh (GitHub CLI tool) installed | |
| # Stargazer.py by github.com/zhuozhiyongde/gaze-stars | |
| # Get personal access token with access to "repos" and "gists" in developer settings | |
| printf "\n" | |
| read -e -r -p "Enter Username: " USERNAME |
| /* Run in your browser's JS console */ | |
| MeetingExiter = () => { | |
| // Don't allow it to be running more than once | |
| if (typeof meetingExiterMutex !== "undefined") { | |
| if (meetingExiterMutex === true) { | |
| console.error("Cant't run more than 1 exiter job at a time!"); | |
| return; | |
| } else { | |
| meetingExiterMutex = true; | |
| } |
| <!DOCTYPE html> | |
| <html dir="ltr" translate="no"> | |
| <head> | |
| <title>PDF.js Viewer Template</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta charset="UTF-8"> | |
| <!-- Necessary imports for PDF.js--> |
| # Kali Linux | |
| PROMPT=$'%F{%(#.blue.green)}┌──${debian_chroot:+($debian_chroot)─}${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV))─}(%B%F{%(#.red.blue)}%n%(#.💀.㉿)%m%b%F{%(#.blue.green)})-[%B%F{reset}%(6~.%-1~/…/%4~.%5~)%b%F{%(#.blue.green)}]\n└─%B%(#.%F{red}#.%F{blue}$)%b%F{reset} ' | |
| RPROMPT=$'%(?.. %? %F{red}%B⨯%b%F{reset})%(1j. %j %F{yellow}%B⚙%b%F{reset}.)' | |
| # Parrot OS | |
| PROMPT="%F{red}┌[%f%F{cyan}%m%f%F{red}]─[%f%F{yellow}%D{%H:%M-%d/%m}%f%F{red}]─[%f%F{magenta}%d%f%F{red}]%f"$'\n'"%F{red}└╼%f%F{green}$USER%f%F{yellow}$%f" | |
| # MacOSX | |
| PS1="%n@%m %1~ %# " |
| from math import sqrt | |
| # https://math.stackexchange.com/questions/127613/closest-point-on-circle-edge-from-point-outside-inside-the-circle | |
| def circle_edge_point(x1, y1, x2, y2, r): | |
| try: | |
| cx = x1 + (r * (x2 - x1) / sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)) | |
| except ZeroDivisionError: | |
| # Add 0.0001 if divisor is 0 | |
| cx = x1 + (r * (x2 - x1) / sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2) + 0.0001) |
| alias ..='cd ..' # Faster | |
| alias cls='clear' # Faster | |
| alias ll='ls -lhFA' # Better ls | |
| alias vi='vim' # Use vim instead | |
| alias neofetch='fastfetch' # Better neofetch | |
| alias psa='ps aux | grep --color=auto' # View process(es) by name e.g. psa 'sudo find' | |
| alias hs='history | grep --color=auto' # Search through command history e.g. 'git diff' | |
| alias open='xdg-open' # Linux version of OSX open (Open directory in file explorer) | |
| alias pbcopy='xclip -selection clipboard' # Linux version of OSX pbcopy (Copy text to clipboard) | |
| alias pbpaste='xclip -selection clipboard -o' # Linux version of OSX pbpaste (Paste text from clipboard) |
| #!/usr/bin/env bash | |
| # Credits to Willi Mutschler @ mutschler.dev for the update commands | |
| # https://mutschler.dev/linux/pop-os-post-install/ | |
| echo -e "\nThis program requires that your machine is connected to" | |
| echo "a power source and that you are connected to the internet." | |
| echo -e "\nTHIS PROGRAM WILL REBOOT YOUR MACHINE AFTER IT FINISHES!\n" | |
| read -p "Are you connected to a power source and the internet? (Y/n): " reply |