Skip to content

Instantly share code, notes, and snippets.

View MasterGeekMX's full-sized avatar
🟢
/dev/random

L. Manuel MasterGeekMX

🟢
/dev/random
  • UAM-I
  • Mexico City, Earth, Sol system, Milky Way.
  • 18:42 (UTC -06:00)
  • X @MasterGeekMX
View GitHub Profile
@MasterGeekMX
MasterGeekMX / report
Created February 3, 2021 15:51
AIDA64 tablet specs report
<<< System >>>
Device Model: ECS TR10CS1
Device Type: Tablet
Manufacturer: ECS
Model: TR10CS1
Brand: IUSA
Board: clovertrail
Device: TR10CS1_8
Hardware: TR10CS1_8
@MasterGeekMX
MasterGeekMX / fork.c
Created September 22, 2019 00:40
C code to spawn a binary tree of processes using fork(). Tree depth is set by a variable passed as first argument at invocation.
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
void tree(int n){ //Creates a process tree
if (n==0) return; //We have reached a leaf, so we leave.
int rchild=fork(); //create right child
if (rchild!=0){ //we are the parent
@MasterGeekMX
MasterGeekMX / journal.txt
Created September 20, 2019 01:57
Output from journalctl -b with amdgpu listed as first module in HOOKS=() list at mkinitcpio.conf
-- Logs begin at Fri 2019-08-02 13:01:29 CDT, end at Thu 2019-09-19 20:51:18 CDT. --
sep 19 20:42:31 Battlestar-Linux kernel: Linux version 5.2.14-arch2-1-ARCH (builduser@heftig-683567) (gcc version 9.1.0 (GCC)) #1 SMP PREEMPT Thu Sep 12 10:42:38 UTC 2019
sep 19 20:42:31 Battlestar-Linux kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=0bc987cc-7ec0-4992-817b-96b3f74b5833 rw splash loglevel=3 quiet splash resume=UUID=1f508431-48ac-41b4-9cbb-b5d06446fa0a amdgpu.ppfeaturemask=0xffffffff
sep 19 20:42:31 Battlestar-Linux kernel: KERNEL supported cpus:
sep 19 20:42:31 Battlestar-Linux kernel: Intel GenuineIntel
sep 19 20:42:31 Battlestar-Linux kernel: AMD AuthenticAMD
sep 19 20:42:31 Battlestar-Linux kernel: Hygon HygonGenuine
sep 19 20:42:31 Battlestar-Linux kernel: Centaur CentaurHauls
sep 19 20:42:31 Battlestar-Linux kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
sep 19 20:42:31 Battlestar-Linux kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE register