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
#!/bin/bash | |
servername= | |
read -p "Please enter the name of the server... " servername | |
if [ -z $servername ] | |
then | |
echo "Server name must be provided!" | |
exit | |
fi |
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
#!/bin/bash | |
# Finished 2019-01-05 04:41 PM | |
# https://askubuntu.com/questions/62492/how-can-i-change-the-date-modified-created-of-a-file | |
# Takes files with date format | |
# Round 2018-07-10 12.42.38.txt | |
# And applies this date to the Last Modified date of the file | |
find ServerLogs/Round* -print | while read filename | |
do | |
if [ "$filename" = "ServerLogs" ] |
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
#!/bin/bash | |
backups=~/backups | |
suffix=_website | |
cd $backups | |
for file in `ls $backups` | |
do | |
if [[ $file == "backup-"* && $file == *"$suffix.tar.gz" ]] | |
then | |
dt=$file |
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
#!/bin/bash | |
# Copyright (c) 2018, Nicholas Solin | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# * Redistributions of source code must retain the above copyright | |
# notice, this list of conditions and the following disclaimer. | |
# * Redistributions in binary form must reproduce the above copyright | |
# notice, this list of conditions and the following disclaimer in the |
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
#!/bin/bash | |
scpsl=. | |
for dir in $scpsl/servers/* | |
do | |
if [ ! -d $dir ] | |
then | |
continue | |
fi |
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 | |
$prefix = 'D:\\Users\\Nicholas\\AppData\\Roaming\\TS3Client\\chats\\M1dQMnhKRVE3RHBjd3luMTdCcG8xOVBpMUZ3PQ=='; | |
$years = array('2010', '2011', '2012', '2013', '2014', '2015', '2016', '2017'); | |
$months = array('01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'); | |
$filename = 'channel_'; | |
$extension = '.txt'; | |
$games = array(); |
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 | |
$directories = array('M1dQMnhKRVE3RHBjd3luMTdCcG8xOVBpMUZ3PQ==_2012-03-18', 'M1dQMnhKRVE3RHBjd3luMTdCcG8xOVBpMUZ3PQ==_2012-11-05/M1dQMnhKRVE3RHBjd3luMTdCcG8xOVBpMUZ3PQ==', 'M1dQMnhKRVE3RHBjd3luMTdCcG8xOVBpMUZ3PQ==_2013-11-10/M1dQMnhKRVE3RHBjd3luMTdCcG8xOVBpMUZ3PQ==', 'M1dQMnhKRVE3RHBjd3luMTdCcG8xOVBpMUZ3PQ=='); | |
$filenames = array('channel', 'server'); | |
$extensions = array('.html', '.txt'); | |
foreach ($directories as $directory) { | |
foreach ($filenames as $filename) { | |
foreach ($extensions as $extension) { | |
$sourceFile = fopen($directory . '/' . $filename . $extension, 'r'); |
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 | |
const DEBUG = false; | |
const BANNER_PATH = '/gametracker'; | |
function convert_banner($url) { | |
// create curl resource | |
$ch = curl_init(); | |
// set url | |
curl_setopt($ch, CURLOPT_URL, $url); |
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
chcp 65001 | |
move "%USERPROFILE%\AppData\Local剜捯獫慴慇敭屳呇⁁屖湥楴汴浥湥湩潦" "%USERPROFILE%\AppData\Local\Rockstar Games\GTA V\entitlement.info" | |
mklink "%USERPROFILE%\AppData\Local剜捯獫慴慇敭屳呇⁁屖湥楴汴浥湥湩潦" "%USERPROFILE%\AppData\Local\Rockstar Games\GTA V\entitlement.info" | |
attrib +h +s "%USERPROFILE%\AppData\Local剜捯獫慴慇敭屳呇⁁屖湥楴汴浥湥湩潦" /l |
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
Windows Registry Editor Version 5.00 | |
; <<< acffile | |
[HKEY_CLASSES_ROOT\.acf] | |
@="acffile" | |
"Content Type"="text/plain" | |
"PerceivedType"="text" | |
[HKEY_CLASSES_ROOT\acffile] | |
@="App Cache File" |