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
sudo apt install git dkms | |
git clone https://github.com/aircrack-ng/rtl8812au.git | |
cd rtl8812au | |
sudo make dkms_install |
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
echo -e "Script: removing the snap version of firefox \n" | |
sudo snap remove firefox | |
echo -e "\nScript: Temporarily stopping snapd (snap daemon)\n " | |
systemctl stop --now snapd | |
echo -e "\nScript: Installing (regular) firefox \n" |
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
import random | |
from typing import List | |
import time | |
def sort_list(list, list_length): | |
shuffled_list = random.sample(list, list_length) | |
return shuffled_list | |
pass | |
def check(old_list, new_list): |
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
### After getting this script, execute the command `sudo bash update_packages.sh` to start the upgrade | |
echo -e "\nStarting Update\n" | |
apt-get update | |
echo -e "\nrevised package lists of arrived\n" | |
echo -e "\nupgrading packages\n" |
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
import random | |
import hashlib | |
import time | |
def main(): | |
choices = ['As I see it, yes.', 'Ask again later.', ' Better not tell you now.', ' Cannot predict now.', 'Concentrate and ask again.', 'Don’t count on it.', 'It is certain.', ' It is decidedly so.', ' Most likely.', 'My reply is no.', 'My sources say no.', 'Outlook not so good.', ' Outlook good.', 'Reply hazy, try again.', 'Signs point to yes.', ' Very doubtful.', ' Without a doubt.', ' Yes.', 'Yes – definitely.', 'You may rely on it.'] | |
question = input('Enter your question: ') | |
hash_question_object = hashlib.sha256(question.encode()) |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<!-- <link rel="stylesheet" href="style.css" /> --> | |
<!-- <script src="main.js" defer></script> --> | |
<title>#I LOVE TIME</title> | |
</head> |
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
import requests | |
import os | |
import json | |
def download_emojis(FOLDER_PATH, EMOJIS_URL, flag=None): | |
''' | |
download images from the Github Emojis API | |
''' | |
try: |
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
import schedule | |
import os | |
os.system('pip install schedule') | |
# change this to your own drive (this drive acts as the backup drive) | |
DRIVE_LOCATION = 'D:\\' | |
# change this to the folder you want to backup (this folder will be backed up) | |
FOLDER_TO_BE_BACKED_UP = 'SOME_FOLDER' | |
# this will be the interval between backup's defualts to 10 seconds (change it to suit your needs) | |
BACKUP_FREQUNCY = 10 |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Counter</title> | |
</head> | |
<body> | |
<h1 id="number">0</h1> | |
<button id="up-button">Up Button</button> |
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
for (i = 1; i < 100; i++) { | |
if (i % 3 === 0 && i % 5 === 0) { | |
console.log('FizzBuzz') | |
} | |
else if (i % 3 === 0) { | |
console.log('Fizz') | |
} | |
else if (i % 5 === 0) { |
NewerOlder