Skip to content

Instantly share code, notes, and snippets.

Avatar
🏝️
On Vacation

LegitSoulja LegitSoulja

🏝️
On Vacation
View GitHub Profile
@LegitSoulja
LegitSoulja / Query.php
Last active Jan 27, 2021
Steam Source UDP PHP Query Script
View Query.php
<?php
namespace Query {
use Query\Buffer\BinaryReader;
class Socket {
private $socket;
private static $timeout = array('sec'=>4, 'usec' => 0);
@LegitSoulja
LegitSoulja / Skins_Objects.json
Last active Dec 12, 2020
300+ Array/Object list of Rust Skins Per Item. (Non Accepted Skins)
View Skins_Objects.json
{
"fun.guitar": [
1287805625,
814874910,
1186248895,
1196457681,
937928933,
843572627,
877194688,
843693036,
@LegitSoulja
LegitSoulja / Skins.json
Last active Mar 14, 2021
300+ Rust Skins Per Item for Skins Plugin (Non Accepted Skins)
View Skins.json
{
"Command": "skin",
"Skins": [
{
"Item Shortname": "fun.guitar",
"Skins": [
1287805625,
814874910,
1186248895,
1196457681,
@LegitSoulja
LegitSoulja / spec.md
Created May 19, 2019 — forked from ePirat/spec.md
Icecast Protocol specification
View spec.md

Icecast protocol specification

What is the Icecast protocol?

When speaking of the Icecast protocol here, actually it's just the HTTP protocol, and this document will explain further how source clients need to send data to Icecast.

HTTP PUT based protocol

Since Icecast version 2.4.0 there is support for the standard HTTP PUT method. The mountpoint to which to send the data is specified by the URL path.

View nodebuffer.js
"use strict";
class Reader {
constructor(buffer) {
this.index = 0;
this.buffer = buffer;
}
readInt8() {
return this.buffer.readInt8(this.index++);
View buffer.js
(function(){
class Reader {
constructor(buffer) {
this.index = 0;
this.buffer = new DataView(buffer);
}
readInt8() {
return this.buffer.getInt8(this.index++);
@LegitSoulja
LegitSoulja / gist:8c726621e1f81cad9da508b14bff1769
Created Jul 7, 2018 — forked from jameshartig/gist:2357002
Get MP3 bit rate and sample rate in PHP
View gist:8c726621e1f81cad9da508b14bff1769
//returns an assoc array with bitRate (kbps) and sampleRate (hz)
function getMP3BitRateSampleRate($filename)
{
if (!file_exists($filename)) {
return false;
}
$bitRates = array(
array(0,0,0,0,0),
array(32,32,32,32,8),
@LegitSoulja
LegitSoulja / Route.php
Last active Aug 24, 2018
Simple routing php
View Route.php
<?php
/*
\| Route/PHPRouting101
\| @author => LegitSoulja
\| @copyright => LegitSoulja
\| @license => Apache
\| @source => https://gist.github.com/LegitSoulja/ae1c56af0999be898dee1ec5ced6318c
\| @source => https://github.com/LegitSoulja/PHPRouting101
*/
/*