Skip to content

Instantly share code, notes, and snippets.

View Nihlus's full-sized avatar

Jarl Gullberg Nihlus

View GitHub Profile
#!/bin/bash
DEFAULTPLAYER=mpv
CLIPCONTENT=$(xclip -selection clipboard -o)
if [[ $CLIPCONTENT != http* ]]; then
CLIPCONTENT=""
fi
livestreamer $(zenity --entry --title="Twitch VOD" --text "Enter the URL to the VOD:" --entry-text="$CLIPCONTENT") source --player-passthrough hls --player $DEFAULTPLAYER --player-args '{filename} --title="Twitch"'
System.ComponentModel.Win32Exception: ApplicationName='/usr/bin/uname', CommandLine='-s', CurrentDirectory='', Native error= Cannot find the specified file
at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x003b5] in <filename unknown>:0
at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x0008b] in <filename unknown>:0
at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x0001e] in <filename unknown>:0
at OpenGL.GetProcAddress.DetectUnixKernel () [0x00054] in <filename unknown>:0
#!/bin/bash
echo "It's fucked up, but that's OK cuz I'm the unfucker. How bad is it?"
while true; do
read -p "Y/y for complete purge, N/n for normal removal. I'll reboot your shit no matter what." yn
case $yn in
[Yy]* ) sudo apt-get purge nvidia*; sudo reboot now;;
[Nn]* ) sudo apt-get remove nvidia*; sudo reboot now;;
* ) echo "Ay yo give it to me straight";;
esac
{
"Vanilla":{
"ID":{
"type":"uint32_t"
},
"Name":{
"type":"stringref"
},
"WeaponFlags":{
"type":"uint32_t"
<configuration>
<dllmap os="linux" dll="opengl32.dll" target="libGL.so.1"/>
<dllmap os="linux" dll="libGL" target="libGL.so.1"/>
<dllmap os="linux" dll="glu32.dll" target="libGLU.so.1"/>
<dllmap os="linux" dll="openal32.dll" target="libopenal.so.1"/>
<dllmap os="linux" dll="alut.dll" target="libalut.so.0"/>
<dllmap os="linux" dll="opencl.dll" target="libOpenCL.so"/>
<dllmap os="linux" dll="libX11" target="libX11.so.6"/>
<dllmap os="linux" dll="libXi" target="libXi.so.6"/>
<dllmap os="linux" dll="SDL2.dll" target="libSDL2-2.0.so.0"/>
Confirmation uncertain (Action may be rejected):
Client (Instigator) calls UFUNCTION(Server, WithValidation) SomethingToHappenEverywhere();
Server receives SomethingToHappenEverywhere() -> Role == ROLE_Authority ->
Server verifies with SomethingToHappenEverywhere_Validate(); If true, continue
Server calls UFUNCTION(Multicast) SomethingToHappenEverywhere_Multicast() and does the thing;
private int GenerateImageVertices()
{
// Generate vertex positions
uint halfWidth = Image.GetResolution().X / 2;
uint halfHeight = Image.GetResolution().Y / 2;
/*
Vector2 upLeft = new Vector2(-halfWidth, halfHeight);
Vector2 upRight = new Vector2(halfWidth, halfHeight);
Vector2 downLeft = new Vector2(-halfWidth, -halfHeight);
public void Render(Matrix4 viewMatrix, Matrix4 projectionMatrix)
{
if (!IsInitialized)
{
return;
}
GL.UseProgram(this.Plain2DShaderID);
// Render the object
Hey everyone!
I've been developing small games here and there for a while now, and I'm starting to get into the nitty-gritty of engines and rendering. However, I'm still a gamer at heart and it's sad that so many games are released nowadays with no support for my preferred operating system.
Inspired by recent talks and posts about people porting games to Linux, I've decided to try and do something about it. I want to start porting games.
Now, this is not something I've done before. I have some experience (as previously said) with game & graphics programming, but I have not ported any games - ever. I am a person who learns by doing, and exercises only take me so far - having an actual game to port would be incredibly valuable.
Therefore, I'd like to put out an offer - I'm willing to try and port *your* game to Linux, free of charge, in order to learn and get some actual work under my belt.
Trying to initialise with width 1680 and height 1050
Successful init
pre opencl
unknown GPU generation
Available platforms:
platform 0 Intel Gen OCL Driver
platform 1 Clover
selected platform 0
Got platform IDs
Got device ids