Skip to content

Instantly share code, notes, and snippets.

View avipars's full-sized avatar
🎯
Focusing

Avi Parshan avipars

🎯
Focusing
View GitHub Profile
@avipars
avipars / styles.css
Created November 21, 2023 12:31
GGA Reddit theme backup
/*
Version 3.0
Edited by Flexxkii
Stylesheet by Cryptonaut
Last modified: 15 MAR 2015
Details: This is a custom template made by /u/Cryptonaut.
Find out more on /r/Naut.
-------------------------------------------------------------------------- */
*,:before,:after {
@avipars
avipars / mouse.js
Created November 13, 2023 19:53
Daydream VR
var noble = require("noble");
var robot = require("robotjs");
var begMovement = [];
var initPos = [];
var moving = false;
var clicked = false;
robot.setMouseDelay(20);
noble.on('stateChange', function(state) {
@avipars
avipars / pkgcmd -l
Last active July 21, 2023 10:30
Get package names off a tizen wearable
C:\tizen-studio\tools>sdb shell
sh-3.2$ pkgcmd -l
system apps pkg_type [tpk] pkgid [com.samsung.alti-barometer] name [Alti-Barometer] version [2.0.9] storage [internal]
system apps pkg_type [tpk] pkgid [com.samsung.d-calculator-wc1] name [Calculator] version [20.0.6] storage [internal]
system apps pkg_type [rpm] pkgid [com.samsung.unit-test-sensor] name [Unit Test sensor Applications] version [1.0.0] storage [internal]
system apps pkg_type [rpm] pkgid [com.samsung.bluetooth-testmode] name [Bluetooth Testmode] version [0.0.14storage [internal]
system apps pkg_type [rpm] pkgid [com.samsung.w-clock-viewer] name [W-Clock-Viewer] version [0.2.15] storage [internal]
system apps pkg_type [rpm] pkgid [org.tizen.chromium-efl] name [Tizen Web Engine based on Chromium] version [69.0.3497.106] storage [internal]
system apps pkg_type [rpm] pkgid [org.tizen.net-popup] name [Network popup] version [3.0] storage [internal]
syst
@avipars
avipars / main.py
Last active March 30, 2023 04:04
Recover files from the marvelous suspender
# script to ask user for the txt file name and then clean the URLS and save in new txt file
def main():
# ask user for the txt file name
file_name = input("Enter the txt file name: ")
parse_file(file_name)
def parse_file(file_name):
with open(file_name, "r") as file:
# read the file
@avipars
avipars / open.md
Created March 10, 2023 13:16
open vpn config stuff to add

block-outside-dns

setenv CLIENT_CERT 0

@avipars
avipars / file_open.ps1
Created December 14, 2022 10:56
powershell script to open all files in a set folder
$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 November 23, 2022 11:49
show hidden items on nagwa.com
// ==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 September 20, 2022 08:39
Enable gpedit on windows 10 and 11 home
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 September 6, 2022 18:44
1 line python server
python3 -m http.server
@avipars
avipars / aes256.py
Created September 4, 2022 10:03
Time to crack AES 256 based on computer specs
# 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)