Skip to content

Instantly share code, notes, and snippets.

@xriss
xriss / Epson-ET-8550_Series-epson-inkjet-printer-escpr2.ppd
Last active April 22, 2025 19:02
ET-8550 printer on manjaro / arch ?
*PPD-Adobe: "4.3"
*% Adobe Systems PostScript(R) Printer Description File
*% Copyright 1987-1996 Adobe Systems Incorporated.
*% All Rights Reserved.
*% Copyright (c) SEIKO EPSON Corporation. 2009
*FormatVersion: "4.3"
*FileVersion: "1.1"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: "EPET-8550 Series.PPD"
@xriss
xriss / .gitignore
Last active March 20, 2025 22:44
test_sdl2_gl_pthread_emcc
main
index.js
index.wasm
index.html
@xriss
xriss / beep.txt
Created September 30, 2017 09:23
Swanky Beep example
sfx.render{
["frequency"]="C4",
["name"]="shot",
["volume"]=0.5,
["duty"]=0.5,
["fwav"]="square",
["adsr"]=
{
1,
@xriss
xriss / invaders.fun.lua
Last active September 30, 2017 18:16
Fun64 : An invaders style space game.
local wstr=require("wetgenes.string")
local chatdown=require("wetgenes.gamecake.fun.chatdown") -- conversation trees
local bitdown=require("wetgenes.gamecake.fun.bitdown") -- ascii to bitmap
local chipmunk=require("wetgenes.chipmunk") -- 2d physics https://chipmunk-physics.net/
-----------------------------------------------------------------------------
--[[#hardware
@xriss
xriss / starfield.fun.lua
Created September 1, 2017 13:59
Fun64 : A 2d starfield running in a shader.
local wstr=require("wetgenes.string")
hardware,main=system.configurator({
mode="fun64", -- select the standard 320x240 screen using the swanky32 palette.
graphics=function() return graphics end,
update=function() update() end, -- called repeatedly to update+draw
})
-- debug text dump
@xriss
xriss / palette.fun.lua
Last active August 11, 2017 21:06
Fun64 : A data dump of the Swanky32 palette.
--
-- This is fun64 code, you can copy paste it into https://xriss.github.io/fun64/pad/ to run it.
--
hardware,main=system.configurator({
mode="fun64", -- select the standard 320x240 screen using the swanky32 palette.
update=function() update() end, -- called repeatedly to update+draw
})
local wstr=require("wetgenes.string")
@xriss
xriss / shadertoy.fun.lua
Last active August 10, 2017 22:45
Fun64 : testing the background copper using shadertoy code.
local wstr=require("wetgenes.string")
local wgrd=require("wetgenes.grd")
local tardis=require("wetgenes.tardis") -- matrix/vector math
local bitdown=require("wetgenes.gamecake.fun.bitdown")
local bitdown_font_4x8=require("wetgenes.gamecake.fun.bitdown_font_4x8")
--
@xriss
xriss / 0_reuse_code.js
Created June 10, 2017 20:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@xriss
xriss / helloworld.fun.lua
Last active August 10, 2017 14:03
Fun64 Hello World test code
--
-- This is fun64 code, you can copy paste it into https://xriss.github.io/fun64/pad/ to run it.
--
hardware,main=system.configurator({
mode="fun64", -- select the standard 320x240 screen using the swanky32 palette.
update=function() update() end, -- called repeatedly to update+draw
})
-- we will call this once in the update function
sudo install -o root -g root -m 0600 /dev/null /swapfile
dd if=/dev/zero of=/swapfile bs=1k count=256k
mkswap /swapfile
swapon /swapfile
echo "/swapfile swap swap auto 0 0" | sudo tee -a /etc/fstab
sudo sysctl -w vm.swappiness=10
echo vm.swappiness = 10 | sudo tee -a /etc/sysctl.conf