openpgp4fpr:8738F073D80BD48812CCC8AF64AD9006A2D1C55B
View bc.sh
This file contains 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 | |
init="$(($(cat /sys/class/net/[ew]*/statistics/rx_bytes | paste -sd '+')))" | |
printf "Recording bandwidth. press enter to stop." | |
read -r lol | |
fin="$(($(cat /sys/class/net/[ew]*/statistics/rx_bytes | paste -sd '+')))" |
View gist:81f65845c2025786b92dc17e10414cb7
This file contains 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
#01 | |
(سوف احذف واتساب فى البداية من فبراير.) | |
لماذا؟ | |
#02 | |
ربما تكون قد رأيت هذه الرسالة في واتساب: | |
[https://imgbox.com/p8vSpBaV OR https://images2.imgbox.com/eb/9b/p8vSpBaV_o.png] |
View bash-colors.md
Regular Colors
Value | Color |
---|---|
\e[0;30m | Black |
\e[0;31m | Red |
\e[0;32m | Green |
\e[0;33m | Yellow |
\e[0;34m | Blue |
\e[0;35m | Purple |
View debugging.sh
This file contains 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
#debugging shellscripts -x would show the scrips line by line and output followed by | |
#!/bin/bash -x | |
TEST_VAR="test" | |
echo "$TEST_VAR" | |
#custom | |
#set -x / start debugginh | |
#set +x / stop | |
#-ex exit on stop | |
#-v prints shell before substitution are applied | |
#-vx |
View BioExam.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:7233e1b2a8ba274b54289af555336f96
This file contains 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 | |
## Help Message | |
if [ "$1" == "-h" ] || [ "$1" == "--help" ] || [ $# -eq 0 ]; then | |
echo "Usage: `basename $0` password's name/password's ID" | |
echo "EX: `basename $0` github" | |
echo "EX: `basename $0` 33j9p592-3c2u-be6h-nek8-e3y4cpbvf53c" | |
exit 0 | |
fi |
View beat_the_street.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 01StudentNotebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Reddit Upvoter
This file contains 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 upvote() { | |
document.querySelectorAll('[data-click-id="upvote"]').forEach((b, i) => { | |
setTimeout(() => { | |
if (b.getAttribute("aria-pressed") == "true") { | |
console.log("already upvoted..."); | |
} else if (b.getAttribute("aria-pressed") == "false") { | |
b.click(); | |
console.log("upvoting..."); | |
} else { | |
console.log("something went wrong..."); |
NewerOlder