Skip to content

Instantly share code, notes, and snippets.

View Zer0xFF's full-sized avatar

Zer0xFF

View GitHub Profile
@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;
jmp start
start:
; AL keep track of the result
MOV CL, 1 ; CL keeps track of the number we're dividing
MOV BL, 71; BL keep track of memory location
loop:
inc BL
inc CL
PUSH CL
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QPainter>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
@Zer0xFF
Zer0xFF / optimise.cpp
Created December 4, 2019 17:18
CodeGen
bool CJitter::ConstantFolding2(StatementList& statements)
{
bool changed = false;
for(auto statementIterator(statements.rbegin());
statementIterator != statements.rend(); ++statementIterator)
{
STATEMENT& outerStatement(*statementIterator);
if(outerStatement.op == OP_ADD)
{
@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 / Persona5.PS4Cheater.cht
Created July 9, 2018 14:29
Disable Persona 5 Anti-Screenshots
1.4|eboot.bin|ID:CUSA06638|VER:01.00|FM:505
data|0|1007D70|byte|195|0||3CA1BD70
data|0|1007D40|byte|195|0||3CA1BD40
@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:
Decrypting /mnt/sandbox/pfsmnt/CUSA01703-app0-patch0-union/eboot.bin AUTH_INFO.
AUTH_INFO:
0000 a7 06 c2 ac 03 00 00 36 00 00 00 00 70 00 00 10 .......6....p...
0010 00 ff 00 00 00 00 00 02 00 00 00 00 00 00 00 00 ................
0020 00 00 00 00 00 00 00 00 00 00 00 40 00 40 00 40 ...........@.@.@
0030 00 00 00 00 00 00 00 40 03 00 00 00 00 00 80 00 .......@........
0040 00 40 ff ff 00 00 00 f0 00 00 00 00 00 00 00 00 .@..............
0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
# Thanks to @RancidoPS3ita for placing send_icc_cmd in Psxita (PS4 linux arch build)
# and providing instruction on how it works
# create device node to control ICC
sudo mknod -m 0666 /dev/icc c 0x49 1
# get current fan settings
send_icc_cmd 0xA 7 0 0 52
# set default fan settings (ramp up at 79 degrees celsius)(PS4 Pro)
send_icc_cmd 0xA 6 52 0x00 0x00 0x00 0x00 0x00 0x4f 0x00 0x00 0x00 0x08 0x00 0x00 0x80 0x00 0x00 0x00 0xff 0xff 0xff 0x0f 0xff 0xff 0xff 0x0f 0xff 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x20
@Zer0xFF
Zer0xFF / README.md
Last active January 8, 2019 15:49
WoL PC using Raspberry Pi (RPI)

I host all my media on my Desktop PC, which is connected to the network via WIFI, unfortunely my Wifi Card doesnt support WoL (as dont most Wifi cards?), so my solution was to use an old RPI Model B with Wifi dongle I have as WoL switch, since

  1. it's low powered, compared to keeping PC on all the time
  2. can be powered by the PC USB port
  3. has a ethernet port which can be connected directly to PC

Requirements:

  1. RPI any model with Ethernet connection and WIFI (for wifi, i used a 5 euro wifi dongle)