Skip to content

Instantly share code, notes, and snippets.

View ryukinix's full-sized avatar
☢️
IN RESEARCH

Manoel V. Machado ryukinix

☢️
IN RESEARCH
View GitHub Profile
~/.wine/drive_c/Program Files (x86)/EA GAMES/Need For Speed Underground
❯ wine Speed.exe
01e8:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
INTEL-MESA: warning: Ivy Bridge Vulkan support is incomplete
01e8:fixme:d3d9:Direct3DShaderValidatorCreate9 Returning stub validator 7EB6F364.
01e8:fixme:d3d9:Direct3DShaderValidatorCreate9 Returning stub validator 7EB6F364.
01e8:fixme:d3d9:Direct3DShaderValidatorCreate9 Returning stub validator 7EB6F364.
01e8:fixme:d3d9:Direct3DShaderValidatorCreate9 Returning stub validator 7EB6F364.
01e8:fixme:d3d9:Direct3DShaderValidatorCreate9 Returning stub validator 7EB6F364.
01e8:fixme:d3d9:Direct3DShaderValidatorCreate9 Returning stub validator 7EB6F364.
@ryukinix
ryukinix / log.txt
Last active July 19, 2020 12:39
Log from gamedev@freenode.net about C++/SDL2 guide
<lerax> hey, can someone point to me a good and fresh SDL2 + C++ guide? I only
know from lazy foo. Is there something better?
<pulse> lazyfoo gives you most of what you need tho [07:47]
<pulse> when i was learning SDL i just went through each tutorial, making my
own source as i went [07:50]
<pulse> and now i have all those examples in an executable format with a clear
source along with it [07:51]
<pulse> so i'd recommend just doing that
<pulse> the good thing about those tutorials is that every one of them is
concise and gets straight to the point
@ryukinix
ryukinix / rss_conky
Last active June 6, 2020 13:49
An alternative parser for rss because conky doesn't have ATOM supported yet
# — SETTINGS — #
update_interval 20
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
imlib_cache_size 0
double_buffer yes
no_buffers yes
use_xft yes
xftfont Zekton:size=9
@ryukinix
ryukinix / kmp-substring-search.lisp
Created July 13, 2017 16:01
KMP substring problem implementation on Common Lisp
;; kmp-fp: Substring Search @ HackerRank
;; Date: Thu 13 Jul 2017 08:48:40 AM -03
;; Manoel Vilela
;; NOTE: I'm programming in Common Lisp or in LOOP-MACRO?
(defun make-prefix-table (pattern length)
"Get the shift prefix array table to use on KMP
algorithm. This value is used to shift string comparison
on the next evaluation after a mismatch"
@ryukinix
ryukinix / sum-args.c
Created March 12, 2019 03:28
Sum posix argv integers
/*
* Manoel Vilela © 2019
*
* Why this? Just because I was bored
* Date: Tue 12 Mar 2019 12:21:48 AM -03
*/
#include <stdio.h>
#include <stdlib.h>
;; ▓█████ ███▄ ▄███▓ ▄▄▄ ▄████▄ ██████
;; ▓█ ▀ ▓██▒▀█▀ ██▒▒████▄ ▒██▀ ▀█ ▒██ ▒
;; ▒███ ▓██ ▓██░▒██ ▀█▄ ▒▓█ ▄ ░ ▓██▄
;; ▒▓█ ▄ ▒██ ▒██ ░██▄▄▄▄██ ▒▓▓▄ ▄██▒ ▒ ██▒
;; ░▒████▒▒██▒ ░██▒ ▓█ ▓██▒▒ ▓███▀ ░▒██████▒▒
;; ░░ ▒░ ░░ ▒░ ░ ░ ▒▒ ▓▒█░░ ░▒ ▒ ░▒ ▒▓▒ ▒ ░
;; ░ ░ ░░ ░ ░ ▒ ▒▒ ░ ░ ▒ ░ ░▒ ░ ░
;; ░ ░ ░ ░ ▒ ░ ░ ░ ░
;; ░ ░ ░ ░ ░░ ░ ░
(require 'package)
(setq packages-archives '("melpa" . "https://melpa.org/packages/"))
(defvar *my-packages* '(company
slime-company
doom-themes
powerline
airline-themes)
"My wonderful packages")
@ryukinix
ryukinix / quickproject-cli.lisp
Created February 25, 2019 23:46
A Quickproject CLI, portable script for Linux
#!/usr/bin/sbcl --script
#|
Manoel Vilela © 2018
This script helps me building a simple ASDF project for Common Lisp
based in the library quickproject.
|#
#!/bin/sh
#
# /lib/elogind/system-sleep/lock.sh
# Lock before suspend integration with elogind
username=lerax
userhome=/home/$username
export XAUTHORITY="$userhome/.Xauthority"
export DISPLAY=":0.0"
/**
* ================================================
*
* Copyright 2018 Manoel Vilela
*
* Author: Manoel Vilela
* Contact: manoel_vilela@engineer.com
* Organization: UFC
*
* ===============================================