Skip to content

Instantly share code, notes, and snippets.

Avatar
🌈
they/them

Galen Guyer galenguyer

🌈
they/them
View GitHub Profile
@galenguyer
galenguyer / CodeEval.cs
Last active Feb 27, 2020
Arbitrary Code Execution for C#
View CodeEval.cs
using System;
using System.CodeDom.Compiler;
using System.Reflection;
using System.Threading.Tasks;
/*
To execute, run
string code = "your code here";
if (!code.Contains("return")) code = "return " + code;
code = code.Trim().TrimEnd(';') + ";";
View Spinner.cs
using System;
namespace Spinner
{ public class Spinner
{ private readonly string[] _spinner_chars = new[] {"|", "/", "-", "\\" };
private int _interval;
public Spinner()
{ this._interval = 100;
}
View LocationMap.cs
using System.Collections.Generic;
using System.Linq;
namespace LogParser
{
public class LocationMap
{
public class CountryNode
{
public string name;
View pixify.py
#!/usr/bin/env python
from PIL import Image
import sys, random
image_file = './test.bmp'
zoom = 10
if len(sys.argv) != 3:
print "usage: {} <image_file> <zoom>".format(sys.argv[0])
exit(1)
@galenguyer
galenguyer / BeautifulDiscord.css
Last active Dec 1, 2017
My custom BeautifulDiscord StyleSheet
View BeautifulDiscord.css
/*Channel Categories*/
.containerDefault-1bbItS{
padding-top: 11px;
}
.nameCollapsed-3_ChMu, .nameDefault-Lnjrwm, .nameHovered-1YFSWq, .nameHoveredCollapsed-2c-EHI, .nameMuted-1n0LSj, .nameUnread-WKlSv-{
text-transform: none;
font-size: 95%;
}
/*Completely hide blocked messages*/