Skip to content

Instantly share code, notes, and snippets.

☕️
Who needs a repository when you can store your code in your GitHub™ status?

Atilla Lonny atillabyte

☕️
Who needs a repository when you can store your code in your GitHub™ status?
  • Canada
Block or report user

Report or block atillabyte

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@atillabyte
atillabyte / PlayerIOLite.cs
Last active Nov 25, 2018
A small proof-of-concept lightweight version of PlayerIOClient.
View PlayerIOLite.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Collections;
using System.Net.Sockets;
View ProtocolMessage.cs
namespace ProtocolMessage
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
View eoserv-give-take.diff
diff --git a/mseoserv/commands/debug.cpp b/mseoserv/commands/debug.cpp
index 5bebb40..38026f9 100644
--- a/mseoserv/commands/debug.cpp
+++ b/mseoserv/commands/debug.cpp
@@ -28,6 +28,66 @@
namespace Commands
{
+void GiveItem(const std::vector<std::string>& arguments, Character* from)
+{
View IRCFormatCodes.cs
public static class StringExtensions
{
public static string FormatIRC(this string input)
{
return Regex.Replace(input, @"\[([^\]]*)\]\((.*?)\s*?\s*\)", (match) => {
var codes_portion = (match.Groups[1].Value).Split(' ', ',');
var color_check = new Func<string, ColorCode>((value) => Enum.TryParse(value, true, out ColorCode result) ? result : ColorCode.Invalid);
var control_check = new Func<string, ControlCode>((value) => Enum.TryParse(value, true, out ControlCode result) ? result : ControlCode.Invalid);
View IRCFormatCodes.cs
public static class StringExtensions
{
public static string FormatIRC(this string input)
{
return Regex.Replace(input, @"\[([^\]]*)\]\((.*?)\s*?\s*\)", (match) => {
var codes_portion = (match.Groups[1].Value).Split(' ', ',');
var color_check = new Func<string, ColorCode>((value) => Enum.TryParse(value, true, out ColorCode result) ? result : ColorCode.Invalid);
var control_check = new Func<string, ControlCode>((value) => Enum.TryParse(value, true, out ControlCode result) ? result : ControlCode.Invalid);
View YouTube VLC Seekable Streaming with YouTube-DL
# place in ~/.bashrc
# replace ~/scripts/ with the directory where you placed the script
yt() {
(python /home/allie/scripts/youtube.py "$1" </dev/null &>/dev/null &)
}
############
# youtube.py
############
import sys
View DiamondToStaggered.cs
public static (int x, int y) DiamondToStaggered(int x, int y) =>
(x: (((y - x) >> 1) * -1) * 2, y: x + y);
@atillabyte
atillabyte / pac2spt.py
Last active Jun 14, 2017
WPE PAC to SPT Converter with Filtering
View pac2spt.py
import struct
import sys
import re
import argparse
class SPT_Packet:
def __init__(self, name, data):
self.name = name
self.data = data
@atillabyte
atillabyte / WPEPACReader.py
Last active Jun 14, 2017
A WPE PAC Reader
View WPEPACReader.py
import struct
from enum import Enum
class Packet:
def __init__(self, data, socket_id, source_addr, destination_addr, packet_size, function):
self.data = data
self.socket_id = socket_id
self.source_addr = source_addr
self.destination_addr = destination_addr
View SPTReader.py
import bson
import struct
from enum import Enum
class SPT:
def __init__(self):
pass
class Packet:
You can’t perform that action at this time.