Skip to content

Instantly share code, notes, and snippets.

View fr34kyn01535's full-sized avatar
🎯
Focusing

Sven Mawby fr34kyn01535

🎯
Focusing
View GitHub Profile
{
"keyboard": {
"type": [
{
"row": [
{
"key": [
{
"char": "a",
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-accountrecovery - Perform account recovery
-all_languages - show longest loc string from any language
-bigpicture - Start in Steam Big Picture mode
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load
-community - Set the community URL
-communitybp - Show Community in Big Picture
using System.IO;
namespace fr34kyn01535.MapCopy
{
class Program
{
private static string unturnedFolder = @"C:\Users\fr34kyn01535\Desktop\Unturned\Servers\";
private static string instanceName = "cobra1";
static void Main(string[] args)

Keybase proof

I hereby claim:

  • I am fr34kyn01535 on github.
  • I am fr34kyn01535 (https://keybase.io/fr34kyn01535) on keybase.
  • I have a public key whose fingerprint is 8B36 AE58 FC0A BC19 A4B9 1DA6 2839 FB9C 3B34 92B5

To claim this, I am signing this object:

NAME=$(hostname -f)
TIMESTAMP=$(date +%s)
echo Starting backup on $NAME
mkdir -p ~/backuptmp/
echo Getting iptables...
iptables-save >~/backuptmp/iptables
@fr34kyn01535
fr34kyn01535 / permissions.php
Last active October 11, 2016 09:59
WebPermissions Example (phpBB backend)
<?php header("Content-Type: application/xml; charset=utf-8");
function getPlayersFromGroup($group){
$db = new mysqli("localhost", "unturned", "test", "unturned");
$players = array();
$query = "select g.user_id,d.pf_user_steam_id csteamid from phpbb_users g
inner join phpbb_profile_fields_data d on g.user_id = d.user_id
where pf_user_steam_id != '' and g.group_id = $group";
@fr34kyn01535
fr34kyn01535 / configuration.php
Last active March 14, 2016 20:29
WebConfiguration Example
<?php header("Content-Type: application/xml; charset=utf-8");
header("Expires: on, 01 Jan 1970 00:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
if(!isset($_GET["configuration"]) || !isset($_GET["instance"])) die();
if(strstr($_GET["configuration"], '/') || strstr($_GET["configuration"], '.')) die();
@fr34kyn01535
fr34kyn01535 / drives.js
Created May 31, 2016 13:11
Node.js script to load all partitions, load all recursive children folder and files, calculating the total folders size and write them to a json file
var fs = require('fs'),
path = require('path')
if (!fs.existsSync('./partitions')){
fs.mkdirSync('./partitions');
}
function getFilesRecursive (folder,callback) {
var fileContents = fs.readdirSync(folder),
<?php
/*
Requirements: php-redis
*/
if(php_sapi_name() != 'cli') die();
define("REDIS_HOST","bespin.bam.yt");
define("STEAM_API_KEY",$argv[1]);
define("REDIS_AUTH",$argv[2]);
if(isset($argv[3])){
define("IP",$argv[3]);
@fr34kyn01535
fr34kyn01535 / invoices.js
Created September 6, 2016 14:51
Open selected paypal invoices
var ids = [];
$(".selected-row").each(function(i,item){
var id = $(item).attr("data-txn-id");
ids.push(id);
var w = window.open("https://history.paypal.com/webscr?cmd=_history-details-from-hub&id="+id);
});