Skip to content

Instantly share code, notes, and snippets.

View kasuganosoras's full-sized avatar
🎸
Bocchi the Rock!

Akkariin Meiko kasuganosoras

🎸
Bocchi the Rock!
View GitHub Profile
--[[
Copyright 2022 ZeroDream
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
@kasuganosoras
kasuganosoras / updater.php
Created May 8, 2023 02:32
FiveM Linux server update script
<?php
define('ROOT', __DIR__ . '/');
define('API_URL', 'https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/');
function GetBuilds() {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, API_URL);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$html = curl_exec($ch);
curl_close($ch);
@kasuganosoras
kasuganosoras / CameraHelper.lua
Created June 22, 2022 09:47
FiveM Screen coords to world coords and get entity
--[[
Copyright 2022 ZeroDream
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
@kasuganosoras
kasuganosoras / gtahashkey.php
Last active June 5, 2022 16:48
PHP Get GTA5 Hash key
function GetGtaHashKey($name, $format = false)
{
$num = 0;
$byte = unpack('C*', utf8_encode($name));
for ($i = 1; $i <= count($byte); $i++) {
$num += $byte[$i];
$num += $num << 10;
$num &= 0xFFFFFFFF;
$num ^= $num >> 6;
}
@kasuganosoras
kasuganosoras / fuckbaidu.js
Created June 22, 2020 14:56
去掉百度的反爬虫内容
// ==UserScript==
// @name Fuck Baidu Zhidao
// @namespace http://www.baidu.com/
// @version 0.1
// @description try to fuck over the baidu!
// @author Baidu
// @match https://zhidao.baidu.com/question/*.html
// @grant none
// ==/UserScript==
@kasuganosoras
kasuganosoras / dsmoke.lua
Last active May 28, 2023 22:28
FiveM dsmoke plugin
--[[===================]]
--[[=== C O N F I G ===]]
--[[===================]]
local CONFIG = {
size = 0.2,
dens = 10,
burnout_size = 0.8,
bind_key = 10,
smoke_on = true,
@kasuganosoras
kasuganosoras / attack.php
Created May 19, 2019 19:11
塞垃圾数据
<?php
function curl_request($url, $post = '', $cookie = '', $headers = '', $returnHeader = 0) {
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)');
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_AUTOREFERER, 1);
curl_setopt($curl, CURLOPT_REFERER, $url);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
if ($post) {