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 | |
:start | |
::Server name | |
set serverName=Server1 | |
::Server files location | |
set serverLocation="C:\Program Files (x86)\Steam\steamapps\common\DayZServer" | |
::Server Profile folder | |
set profile=Server1 | |
::BEC location | |
set BECLocation="C:\Program Files (x86)\Steam\steamapps\common\DayZServer\BEC" |
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 | |
$backup_config = array( | |
'DB_HOST' => '127.0.0.1',////Database hostname | |
'DB_NAME' => 'test_db',//Database name to backup | |
'DB_USERNAME' => 'root',//Database account username | |
'DB_PASSWORD' => '',//Database account password | |
'INCLUDE_DROP_TABLE' => false,//Include DROP TABLE IF EXISTS | |
'SAVE_DIR' => '',//Folder to save file in | |
'SAVE_AS' => 'test_db-',//Prepend filename | |
'APPEND_DATE_FORMAT' => 'Y-m-d-H-i',//Append date to file name |
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
<?php | |
//$series = []; | |
//$series = ['Jimmy']; | |
//$series = ['Lisa']; | |
//$series = ['Jimmy', 'Lisa']; | |
//$series = ['Jimmy', 'Lisa', 'Jimmy']; | |
//$series = ['Jimmy', 'Lisa', 'Jimmy', 'Lisa']; | |
//$series = ['Jimmy', 'Lisa', 'Jimmy', 'Jimmy']; | |
//$series = ['Jimmy', 'Jimmy', 'Jimmy']; |
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
[{ | |
"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
<?php | |
if (isset($_GET['lat']) && isset($_GET['lon'])) { | |
$lat = $_GET['lat']; | |
$lon = $_GET['lon']; | |
} else { | |
echo "<h1>Latitude and Longitude must be set in URL</h1>"; | |
echo "<p>Example: <a href='map.php?lat=-37.818217&lon=144.956784'>map.php?lat=-37.818217&lon=144.956784</a></p>"; | |
exit; | |
} | |
?> |
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 outputString(string $string) | |
{ | |
echo $string; | |
} | |
function tableBuilder(array $theads, array $data, string $table_class = 'table', string $thead_class = '') | |
{ | |
(empty($table_class)) ? $tbl = "" : $tbl = " class='$table_class'"; | |
(empty($thead_class)) ? $th = "" : $th = " class='$thead_class'"; |
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 | |
$yt_channel_id = '';//YouTube Channel id | |
$yt_api_key = '';//YouTube API key | |
function list_videos_w_page($chid, $api_key, $page_token = '') | |
{ | |
global $yt_channel_id; | |
global $yt_api_key; | |
if ($page_token == '') { | |
$data = json_decode(file_get_contents("https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=" . $chid . "&maxResults=50&order=date&type=video&key=$yt_api_key"), true); | |
} else { |
NewerOlder