Skip to content

Instantly share code, notes, and snippets.

View Zer0xFF's full-sized avatar

Zer0xFF

View GitHub Profile
@Zer0xFF
Zer0xFF / calc.py
Created April 16, 2022 06:13
moodle avg grade calculator
import csv
with open("feedback.csv") as f:
dict_reader = csv.DictReader(f)
total = 0
grade_total = 0
ytotal = {}
ygrade_total = {}
for data in dict_reader:

tmp workaround

cd deps/Dependencies
git submodule add https://github.com/flathub/shared-modules.git
sudo apt update
sudo apt install flatpak flatpak-builder
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
@Zer0xFF
Zer0xFF / diskstatus.ps1
Last active July 1, 2021 14:46
Disk Status Health Report (can be used with dynamic disks)
function Report-Disk
{
param (
$name,
$disks
)
$body = ($disks | Out-String)
$body = "$($name) $($body)"
Send-MailMessage -From 'ME <ME@ME.ie>' -To 'ME <ME@ME.ie>' -Subject 'Potential Disk Failure' -SmtpServer "smtp.gmail.com" -Body $body -Port 587
}
@Zer0xFF
Zer0xFF / README.md
Last active May 31, 2020 19:12
google my business with laravel

Update Google's MyBusiness.php library to play nice with laravel

  • Copy/Paste the following content of update.php to the top of MyBusiness.php
namespace App\Classes;

use Google_Service;
use Google_Service_Resource;
use Google_Model;
use Google_Collection;
@Zer0xFF
Zer0xFF / 0.osx.setup.sh
Last active March 28, 2021 02:36
My Essential Fresh OSX/Windows setup
xcode-select --install
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install b7zip cmake qt5 clang-format zsh mas watch git git-gui graphicsmagick ghostscript npm wget trash composer romkatv/powerlevel10k/powerlevel10k
brew install --cask vscodium vlc qt-creator keka db-browser-for-sqlite
brew install --cask adobe-acrobat-reader teamviewer
pip3 install requests
# pip3 install pandas pyodbc striprtf pathvalidate mysql-connector-python
@Zer0xFF
Zer0xFF / PS2RedumpV.py
Created February 17, 2020 14:07
Verify Collection Of PS2 Dumps Against Redump
#!/usr/bin/env python3
# pip3 install --user filehash untangle
import os
import untangle
from filehash import FileHash
obj = untangle.parse('redump.ps2.dat')
@Zer0xFF
Zer0xFF / media.bat
Last active October 17, 2019 09:44
fuck you c windows media
takeown /f c:\windows\media /r
icacls "c:\Windows\Media\*.wav" /grant everyone:f "NT SERVICE\TrustedInstaller:F" "BUILTIN\Administrators:R" "NT AUTHORITY\SYSTEM:R" "BUILTIN\Users:R"
https://forums.civfanatics.com/attachments/silent-zip.357923/
cacls c:\windows\media /t /c /g everyone:f
icacls c:\Windows\media\*.wav /grant "nt service\Trustedinstaller":f
@Zer0xFF
Zer0xFF / thegamesdb.yaml
Created August 19, 2019 04:42 — forked from J-Swift/thegamesdb.yaml
Cleaned up swagger spec for thegamesdb
swagger: '2.0'
info:
description: API Documentations
version: 1.0.0
title: TheGamesDB API
# put the contact info for your development or API team
# contact:
# email: you@your-company.com
license:
@Zer0xFF
Zer0xFF / rpcs3-updater.py
Last active July 7, 2020 21:55
RPCS3 update script linux/windows
import requests
import platform
api_url = ''
file_name = ''
if(platform.system() == 'Windows'):
from pyunpack import Archive
# pip install pyunpack
# pip install patool
api_url = 'https://api.github.com/repos/RPCS3/rpcs3-binaries-win/releases/latest'
@Zer0xFF
Zer0xFF / README
Last active October 13, 2023 13:58
you'd need to download you're entitlements 1st
so login to PSN web store
then open this link https://store.playstation.com/kamaji/api/chihiro/00_09_000/gateway/store/v1/users/me/internal_entitlements?start=0&size=800&fields=game_meta,drm_def
save as JSON, i called them EU.json and USA.json as per region, then run through the script, not if you only have 1 account or of different region, adjust the script accordingly