Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Avi Parshan avipars

🎯
Focusing
View GitHub Profile
@avipars
avipars / file_open.ps1
Created Dec 14, 2022
powershell script to open all files in a set folder
View file_open.ps1
$path = "C:\Users\whatever\folder"
Invoke-Item $path #open that folder
Set-Location -Path $path
$count = 0
foreach($file in Get-ChildItem $path)
@avipars
avipars / script.js
Last active Nov 23, 2022
show hidden items on nagwa.com
View script.js
// ==UserScript==
// @name Nagwa Locked Content Shower
// @namespace http://aviparshan.com/
// @version 1.0.1.3
// @description Shows the locked content on Nagwa (math and science content)
// @author avipars
// @include *://nagwa.com/*
// @include *://*.nagwa.com/*
// @grant none
// @license MIT
@avipars
avipars / command.bat
Created Sep 20, 2022
Enable gpedit on windows 10 and 11 home
View command.bat
FOR %F IN ("%SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~*.mum") DO (DISM /Online /NoRestart /Add-Package:"%F")
FOR %F IN ("%SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~*.mum") DO (DISM /Online /NoRestart /Add-Package:"%F")
@avipars
avipars / server.py
Created Sep 6, 2022
1 line python server
View server.py
python3 -m http.server
@avipars
avipars / aes256.py
Created Sep 4, 2022
Time to crack AES 256 based on computer specs
View aes256.py
# 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)
@avipars
avipars / ip.ps1
Created Aug 16, 2022
IP Tracking and Whitelist
View ip.ps1
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
View dev.goggles
! 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
View friends.cpp
Food * gMeal[2]
= new Fish();
= new Dessert();
MyString &operator+(char c);
friend MyString&operator(char c, MyString s);
View Point.cpp
/*
Avraham Parshan -
Course: C++ Workshop
Excersice: 1, Week 7
Date: 4/7/2022
*/
#include "Point.h"
#include <cmath> //sqrt function
@avipars
avipars / bubblesort.mips.s
Created Apr 8, 2022 — forked from manudatta/bubblesort.mips.s
Bubble sort in MIPS assembly.
View bubblesort.mips.s
# 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"