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
| declare @bodyMsg nvarchar(max) | |
| WITH LastBackUp AS | |
| ( | |
| SELECT | |
| bs.database_name, | |
| bs.compressed_backup_size, | |
| Position = ROW_NUMBER() OVER( PARTITION BY bs.database_name ORDER BY bs.backup_start_date DESC ) | |
| FROM |
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
| 1. Create your .service file using: | |
| sudo nano /lib/systemd/system/YourServiceNameHere.service | |
| 2. Inside your .service file, write the following: | |
| [Unit] | |
| Description=YourDescriptionHere | |
| [Service] | |
| WorkingDirectory=YourWorkingDirectoryHere |
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
| #!/usr/bin/env bash | |
| if [[ $1 == "" ]] ; then | |
| echo 'Incorrect command. Make sure to pass the version as a parameter. USAGE: metaupdate VersionHere' | |
| exit 0 | |
| fi | |
| cd /usr/share/metabase/ | |
| sudo systemctl stop metabase | |
| rm metabase.jar |
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
| sudo sed -i "s/#SystemMaxUse=/SystemMaxUse=50M/" /etc/systemd/journald.conf && sudo systemctl kill --kill-who=main --signal=SIGUSR2 systemd-journald.serviceudo systemctl restart systemd-journald.service && sudo systemctl restart systemd-journald.service && rm -rf ~/.cache/* |
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
| wget --recursive --no-clobber --page-requisites --html-extension --convert-links --domains websitehere.org --no-parent https://websitehere.org |
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
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| from email.utils import formataddr | |
| import smtplib | |
| msg = MIMEMultipart() | |
| msg['Subject'] = "Subject" | |
| msg['From'] = formataddr(('from name here', 'from@from.com')) | |
| msg['To'] = "addresstoreceive" |
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
| from selenium.webdriver.firefox.service import Service | |
| from selenium.webdriver.firefox.options import Options | |
| from selenium.webdriver.common.by import By | |
| from selenium import webdriver | |
| from time import sleep | |
| import os | |
| try: | |
| options = Options() | |
| options.add_argument("--headless") |
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
| man(){ | |
| curl cheat.sh/$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
| number = 0 | |
| switch(true){ | |
| case number % 3 == 0 && number % 5 == 0: | |
| console.log("FizzBuzz") | |
| break | |
| case number % 3 == 0: | |
| console.log("Fizz") | |
| break |
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 "<script>console.log('Debug Objects: " . $output . "' );</script>"; |