This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
color 0E | |
title MySQL backup. | |
for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a" | |
set "YY=%dt:~2,2%" & set "YYYY=%dt:~0,4%" & set "MM=%dt:~4,2%" & set "DD=%dt:~6,2%" | |
set "HH=%dt:~8,2%" & set "Min=%dt:~10,2%" & set "Sec=%dt:~12,2%" & set "MS=%dt:~15,3%" | |
set "dirname=%DD%_%MM%_%YY%_%HH%%Min%" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('max_execution_time', 120);//2 minutes | |
error_reporting(0); | |
$api_key = '';//Your YouTube/Google api key | |
$your_ch_id = '';//YOur YouTube channel id | |
function call_api($call, $type) | |
{ | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $call); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"class": "DZ_LightAI" | |
}, { | |
"class": "HouseNoDestruct" | |
}, { | |
"class": "InventoryBase" | |
}, { | |
"class": "ContainerBase" | |
}, { | |
"class": "FixedContainer" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"class":"10Rnd_RHS_50BMG_Box" | |
}, | |
{ | |
"class":"1_Rnd_RHS_9M79B" | |
}, | |
{ | |
"class":"1_Rnd_RHS_9M79_1_F" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("Content-type:application/json"); | |
function storage($key, $dir = '') | |
{ | |
return json_decode(file_get_contents("https://storage.bunnycdn.com/" . $dir . "/?AccessKey=" . $key . ""), true); | |
} | |
$array = storage('STORAGE-PASSWORD-HERE', 'STORAGENAME'); | |
$items = array('data' => array()); | |
foreach ($array as $value) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ACOGOptic | |
AgaricusMushroom | |
AKM | |
AK_Suppressor | |
AK_WoodBttstck | |
AK_WoodHndgrd | |
AliceBag_Black | |
AliceBag_Camo | |
AliceBag_Green | |
AmanitaMushroom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function uploadFTP($server, $username, $password, $file_to_upload, $save_file_as){ | |
$connection = ftp_connect($server); | |
if (@ftp_login($connection, $username, $password)){ | |
// connection success | |
}else{ | |
return "Error connecting to $server"; | |
} | |
ftp_pasv($connection, true); | |
ftp_put($connection, $save_file_as, $file_to_upload, FTP_BINARY); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GAMENUMBER_HOME_AWAY | |
1_LAC_DEN | |
2_LAC_OKC | |
3_LAC_HOU | |
4_NOP_LAC | |
5_HOU_LAC | |
6_LAC_WAS | |
7_OKC_LAC | |
8_PHI_LAC | |
9_ORL_LAC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Create connection | |
$db = new PDO('mysql:host=localhost;dbname=DATABASENAME;charset=utf8mb4', 'USERNAME', 'PASSWORD'); | |
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);//https://www.php.net/manual/en/pdo.setattribute.php | |
//Check connection status | |
echo $db->getAttribute(PDO::ATTR_CONNECTION_STATUS); | |
//SELECT with loop | |
$select = $db->prepare("SELECT `col`, `col2` FROM `table`"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
body { | |
background: #0d161f; | |
} | |
.row { | |
background: #00b9eb; | |
padding: .4rem; | |
margin-top: .6rem; | |
text-align: center; | |
} |
OlderNewer