Skip to content

Instantly share code, notes, and snippets.

View valeth's full-sized avatar
🦀
rusting

Patrick Auernig valeth

🦀
rusting
View GitHub Profile
@valeth
valeth / polyglot.c
Last active August 29, 2015 14:05
polyglot
#define a /*
#<?php
echo "\010Hello, world!\n";// 2> /dev/null > /dev/null \ ;
// 2> /dev/null; x=a;
$x=5; // 2> /dev/null \ ;
if (($x))
// 2> /dev/null; then
return 0;
// 2> /dev/null; fi
#define e ?>
@valeth
valeth / games-nosteamworks-ceg.txt
Last active August 29, 2015 14:05
List of games that do not use the CEG component of steamworks
# Source: http://www.gog.com/forum/general/list_of_drmfree_games_on_steam/page1
1000 Amps
All Zombies Must Die* (run ShippingPC-Bzb2Game.exe)
Alpha Protocol (run Binaries\APGame.exe, NOT APLauncher.exe)
Analogue: A Hate Story
A.R.E.S.: Extinction Agenda (error message can be dismissed)
Atom Zombie Smasher (run atom_net.exe, NOT atomzombiesmasher.exe)
Aztaka
Basement Collection, The (doesn't show unlocked content – see here)
Traceback (most recent call last):
File "/home/valeth/.xdg/share/vim/plugins/vim-pandoc/pythonx/vim_pandoc/async.py", line 39, in <module>
Popen(command)
File "/usr/lib/python3.4/subprocess.py", line 859, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.4/subprocess.py", line 1379, in _execute_child
executable = os.fsencode(executable)
File "/usr/lib/python3.4/os.py", line 770, in fsencode
raise TypeError("expect bytes or str, not %s" % type(filename).__name__)
TypeError: expect bytes or str, not NoneType
Stacktrace:
at <unknown> <0xffffffff>
at (wrapper managed-to-native) object.wrapper_native_0x7ff33dd3f360 (Microsoft.Xna.Framework.Graphics.OpenGLDevice/GLenum,int,int,int,Microsoft.Xna.Framework.Graphics.OpenGLDevice/GLenum,intptr) <0xffffffff>
at (wrapper delegate-invoke) <Module>.invoke_void__this___OpenGLDevice/GLenum_int_int_int_OpenGLDevice/GLenum_intptr (Microsoft.Xna.Framework.Graphics.OpenGLDevice/GLenum,int,int,int,Microsoft.Xna.Framework.Graphics.OpenGLDevice/GLenum,intptr) <0xffffffff>
at Microsoft.Xna.Framework.Graphics.OpenGLDevice.DrawUserIndexedPrimitives (Microsoft.Xna.Framework.Graphics.PrimitiveType,intptr,int,int,intptr,int,Microsoft.Xna.Framework.Graphics.IndexElementSize,int) <0x00115>
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.DoSpriteDraw (Microsoft.Xna.Framework.Graphics.PrimitiveType,int,int,System.Runtime.InteropServices.GCHandle,int) <0x00095>
at Microsoft.Xna.Framework.Graphics.FastBatch.DrawBatch () <0x0022f>
at Microsoft.Xna.Framework.Graphics.SpriteBatch.
$ lspci
...
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 480] (rev c7)
...
$ glxinfo |grep "version"
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
Max core profile version: 4.1
@valeth
valeth / cantata-scrobbling.log
Last active October 25, 2016 14:20
Cantata scrobbling debug output
Scrobbler loadSettings "Last.fm" "Va1eth" false true
Scrobbler loadCache "/home/valeth/User/cache/cantata/scrobbling/tracks.xml.gz" 0
Icon theme "cantata" not found.
Scrobbler mpdStateUpdated false 0 2
Scrobbler setSong true false 0 "" "" "" "" ""
Scrobbler mpdStateUpdated false 2 2
Scrobbler mpdStateUpdated false 2 2
Scrobbler mpdStateUpdated false 2 1
Scrobbler mpdStateUpdated Timestamp: 1477404494 scrobbledCurrent: false nowPlayingSent: false now: 1477404494 lastNowPlaying: 0 isRepeat: false
Scrobbler mpdStateUpdated false 1 1
Scrobbler loadSettings "Last.fm" "Va1eth" false true
Scrobbler loadCache "/home/valeth/User/cache/cantata/scrobbling/tracks.xml.gz" 0
Icon theme "cantata" not found.
Scrobbler mpdStateUpdated false 0 3
Scrobbler mpdStateUpdated false 3 3
Scrobbler setSong true false 302 "Waterflame - Glorious Morning.ogg" "Glorious Morning" "Waterflame" "Unknown" ""
Scrobbler calcScrobbleIntervals timeout 151000 24000 10
Scrobbler mpdStateUpdated false 3 3
Scrobbler mpdStateUpdated false 3 2
Scrobbler mpdStateUpdated false 2 2
@valeth
valeth / 20-dhcp.network
Last active November 26, 2016 23:53
simple WPA supplicant example conf
[Match]
Name=*
[Network]
DHCP=yes
level: ERROR
logger: Discordrb
message: An error occurred while heartbeating!
---
timestamp: '2017-02-10T01:24:22.313415+01:00'
level: EXCEPTION
logger: Discordrb
message: "#<OpenSSL::SSL::SSLError: SSL_write: bad write retry>"
---
timestamp: '2017-02-10T01:24:22.314070+01:00'
@valeth
valeth / wkbd_hack.user.js
Last active May 1, 2017 04:22
WaniKani Breeze Dark Userstyles.org Hack
// ==UserScript==
// @name WKBD Settings Hack
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Inject userstyle settings
// @author Valeth
// @match https://userstyles.org/styles/135572/wanikani-breeze-dark
// @include https://code.jquery.com/jquery-3.2.1.min.js
// @grant none
// ==/UserScript==