Skip to content

Instantly share code, notes, and snippets.

View devlavender's full-sized avatar

Ágatha Isabelle Chris Moreira-Guedes devlavender

View GitHub Profile
@devlavender
devlavender / viewsensors.sh
Last active February 3, 2022 14:09
Colorful Cli Temperature Checker for CPU/GPU
#!/bin/bash
#########################################################
# viewsensors.sh #
# #
# - Author: #
# Bruno Moreira-Guedes <brunodOut.dev@gmail.com> #
# - Date: 2021-11-28 #
# - Description: #
# Small script to view CPU/GPU temperature in #
@devlavender
devlavender / hexdecode.c
Last active January 27, 2022 00:38
Quick hexdecoder to convert some irregularly formatted hex file
#include <stdio.h>
#include <strings.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <ctype.h>
#include <inttypes.h>
int argerror(int argc, char **argv){
@devlavender
devlavender / stat_example.c
Created February 3, 2022 14:08
ls-like example app using stat (tested on Linux only)
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <sys/stat.h>
#include <errno.h>
#include <limits.h>
typedef enum {
O_USER_MODE = S_IRWXU,
O_GROUP_MODE = S_IRWXG,