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
| # time to crack aes 256 | |
| #single 32 bytes encrypted block | |
| def main() -> None: | |
| bytes = 32 | |
| cycles = 1000 | |
| ghz = 3.6 | |
| bits = bytes * 8 | |
| ghz_to_hz = ghz * 1000000000 | |
| print("combos:\t") | |
| combos = pow(2,bits) |
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
| Set-Location -Path "C:\temp" #any main directory | |
| $uri = "https://whatismyip.host/ip4" #any website which can provide an IPV4 in text form | |
| #old http://ifconfig.me/ip | |
| $ipv4 = (Invoke-WebRequest -uri $uri).Content #gets the public IP | |
| $currentip = "1.2.3.4" #initial IP to start with | |
| $val = $true | |
| $exists = $false |
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
| ! name: Tech and Developer Search | |
| ! description: Boost more relevant pages and blogs, take down less relevant ones | |
| ! public: true | |
| ! author: Avipars | |
| $discard | |
| $downrank,site=medium.com | |
| $discard | |
| $downrank,site=geeksforgeeks.com |
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
| Food * gMeal[2] | |
| = new Fish(); | |
| = new Dessert(); | |
| MyString &operator+(char c); | |
| friend MyString&operator(char c, MyString s); |
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
| /* | |
| Avraham Parshan - | |
| Course: C++ Workshop | |
| Excersice: 1, Week 7 | |
| Date: 4/7/2022 | |
| */ | |
| #include "Point.h" | |
| #include <cmath> //sqrt function |
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
| # Copyright 2002 Manu Datta (gmail.com ID Manu dot Datta) | |
| # All rights reserved | |
| .data | |
| msg1: .asciiz "\nEnter integer values followed by return (-1 terminates input): \n" | |
| msg2: .asciiz "," | |
| msg3: .asciiz "Bubble Sort" | |
| msg4: .asciiz "#########pass#########" | |
| msg5: .asciiz "\n" | |
| msg6: .asciiz "\nNumber list has been sorted\n" |
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
| wsl --list --online | |
| wsl --set-default-version 2 #make sure to use the updated kernel https://docs.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package | |
| #wsl --install -d Debian |
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
| javascript:document.querySelector('select[ng-model="model.currentLanguage"]').selectedIndex = 1;angular.element(document.querySelector('select[ng-model="model.currentLanguage"]')).triggerHandler('change');document.querySelector('div[local-title="title_local_switcher"] button[local="ok_button"]').click(); |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" /> | |
| <title>Wordle - A daily word game</title> | |
| <meta name="description" content="Guess the hidden word in 6 tries. A new puzzle is available each day."> |
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
| using namespace std; | |
| #include <iostream> | |
| #include <cmath> | |
| //Question 11 (7 points) moed b 5778 | |
| //Consider an array of unique integers terminated by the value 0 (0 is not considered part of the array). Write a function that receives a pointer to the array (it does not receive its size) and returns the distance between the position of the largest element in the array and the smallest one. | |
| int pointGap(int *arr) | |
| { | |
| int distance = 0; | |
| int smallest = *arr; | |
| int largest = *arr; |