Skip to content

Instantly share code, notes, and snippets.

masterzorag

Block or report user

Report or block masterzorag

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View showdir on dev.md
log: [PS4][DEBUG]: R2 pressed
log: [PS4][DEBUG]: uid: 0, gid: 0
log: [PS4][DEBUG]: [PS4LINK] UID: 0, GID: 0
log: [PS4][DEBUG]: [PS4LINK] /dev
log: [PS4][DEBUG]: directory 15
log: [PS4][DEBUG]: fstat  return  0x00000000 st.st_blksize=16384
log: [PS4][DEBUG]: buffer not null
log: [PS4][DEBUG]: before getdent
log: [PS4][DEBUG]: after getdent 3548
@masterzorag
masterzorag / affine.c
Last active Jul 21, 2019
compute affine transform
View affine.c
/* clang affine.c -Wextra */
/*
./a.out 1
1.000000 in [-1 1] = 255 in [0 255]
./a.out 0
0.000000 in [-1 1] = 127 in [0 255]
./a.out -1
-1.000000 in [-1 1] = 0 in [0 255]
*/
@masterzorag
masterzorag / mpz_squares.c
Created Apr 9, 2019
gmp sample to compute square roots
View mpz_squares.c
#include <stdio.h>
#include <stdlib.h>
#include <gmp.h>
int main(int argc, char *argv[])
{
mpz_t x, t, prev, dif;
mpz_init(dif);
mpz_init(t);
mpz_init(prev);
View note_session.md
  • No video output, use ssh
# ssh 10.0.0.24 -p 2020

Welcome to better-initramfs master-d0acfbe-2017-03-04. Linux kernel 4.14.74.

>>> The lockfile was created.
>>> In order to resume boot proces, run 'resume-boot'.
>>> Be aware that it will kill your connection which means
@masterzorag
masterzorag / note_install.md
Last active Nov 8, 2018
notes about bootstrapping a Fedora 29 base install
View note_install.md

Fedora 29 base install note

0. preamble to test on ps4

  • wired (NOT wireless) ps4 connection to net
  • those files, pinned in #ps4-linux Discord
View star_accell1_4sse disas
0000000000401e30 <_Z17star_accell1_4sseR6t_star>:
401e30: 55 push %rbp
401e31: 48 89 e5 mov %rsp,%rbp
401e34: 53 push %rbx
401e35: 48 81 ec e8 00 00 00 sub $0xe8,%rsp
401e3c: 48 89 fb mov %rdi,%rbx
401e3f: e8 dc ee ff ff callq 400d20 <mcount@plt>
401e44: 0f 57 db xorps %xmm3,%xmm3
401e47: 0f 29 5d e0 movaps %xmm3,-0x20(%rbp)
401e4b: 0f 29 5d d0 movaps %xmm3,-0x30(%rbp)
View gist:06cadbc5fbe7d3375704fc52518f434e
cl_get_gt_device(): error, unknown device: 0                                                                                               

  Platform Name                                   Clover                                                                                   
Number of devices                                 1                                                                                        
  Device Name                                     AMD LIVERPOOL (DRM 2.50.0 / 4.14.4, LLVM 6.0.0)                                          
  Device Vendor                                   AMD                                                                                      
  Device Vendor ID                                0x1002                                                                                   
  Device Version                                  OpenCL 1.1 Mesa 18.0.2                                                                   
  Driver Version                     
@masterzorag
masterzorag / alsa-info
Created Apr 28, 2018
alsa-info on Liverpool
View alsa-info
upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.64
!!################################
!!Script ran on: Sat Apr 28 11:55:56 UTC 2018
!!Linux Distribution
!!------------------
@masterzorag
masterzorag / libpng_test.c
Created Dec 31, 2017 — forked from niw/libpng_test.c
How to read and write PNG file using libpng. Covers trivial method calls like png_set_filler.
View libpng_test.c
/*
* A simple libpng example program
* http://zarb.org/~gc/html/libpng.html
*
* Modified by Yoshimasa Niwa to make it much simpler
* and support all defined color_type.
*
* To build, use the next instruction on OS X.
* $ brew install libpng
* $ clang -lz -lpng libpng_test.c
@masterzorag
masterzorag / argb_vector.c
Created Nov 13, 2017
An example of using Clang vector extension
View argb_vector.c
/*
an example of using GCC/Clang vector extension
clang argb_vector.c
./a.out
0 ffffffff ffffffff
1 dde0e2e5 dddfe1e4
2 bbc0c5ca bbbfc4c9
3 99a1a8af 99a0a7ae
You can’t perform that action at this time.