Skip to content

Instantly share code, notes, and snippets.

Avatar

Zer0xFF

View GitHub Profile
@Zer0xFF
Zer0xFF / README.md
Last active May 31, 2020
google my business with laravel
View README.md

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 Jan 8, 2021
My Essential Fresh OSX/Windows setup
View 0.osx.setup.sh
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
View asm.c
asm(
"mov %0, %%rsi\n\t"
"mov %1, %%rdi\n\t"
"call _trumpoline\n\t"
:
:
"r" (m_code), "g"(context)
: "rsi", "rdi"
);
@Zer0xFF
Zer0xFF / PS2RedumpV.py
Created Feb 17, 2020
Verify Collection Of PS2 Dumps Against Redump
View PS2RedumpV.py
#!/usr/bin/env python3
# pip3 install --user filehash untangle
import os
import untangle
from filehash import FileHash
obj = untangle.parse('redump.ps2.dat')
View if_divisble_by_5.asm
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
View gist:bd71050abb25654b4df327966e4ca74d
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QPainter>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
View optimise.cpp
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 Oct 17, 2019
fuck you c windows media
View media.bat
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 Aug 19, 2019 — forked from J-Swift/thegamesdb.yaml
Cleaned up swagger spec for thegamesdb
View thegamesdb.yaml
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 Jul 7, 2020
RPCS3 update script linux/windows
View rpcs3-updater.py
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'
You can’t perform that action at this time.