Skip to content

Instantly share code, notes, and snippets.

View wolfiestyle's full-sized avatar

wolfiestyle

  • Chile
View GitHub Profile
@wolfiestyle
wolfiestyle / conky.conf
Created November 10, 2020 17:27
Conky config for amdgpu
${alignc}${font Dejavu Sans Mono:size=8}GPU ${exec cat /sys/class/drm/card0/device/gpu_busy_percent}%${font}
${color3}${execgraph "cat /sys/class/drm/card0/device/gpu_busy_percent" 3fa5ff 3fa5ff}
${color1}Temp${color} ${hwmon 2 temp 1}
${color1}GPU clk${color} ${exec grep -Po '\d+:\s\K(\d+)(?=.*\*$)' /sys/class/drm/card0/device/pp_dpm_sclk}
${color1}Mem clk${color} ${exec grep -Po '\d+:\s\K(\d+)(?=.*\*$)' /sys/class/drm/card0/device/pp_dpm_mclk}
${color1}Mem${color} ${exec numfmt --to=iec < /sys/class/drm/card0/device/mem_info_vram_used}
${color1}Fan${color} ${hwmon 2 fan 1}
@wolfiestyle
wolfiestyle / 01_animals.cpp
Created August 10, 2016 04:42
the classic Animal class example in C++ and Rust
// the OOP version in C++
#include <iostream>
// base abstract class. that is what we use as the interface
class Animal
{
public:
Animal(char const* name): m_name(name) {}
// this is required to properly delete virtual classes
@wolfiestyle
wolfiestyle / awoo_tool.lua
Created August 20, 2016 22:23
the Awoo Tool™
#!/usr/bin/env lua
-- Awoo Tool by @wolfiestyle
-- license: MIT/X11
-- demo: https://twitter.com/wolfiestyle/status/767124329461084161
local lgi = require "lgi"
local Gtk = lgi.Gtk
local GLib = lgi.GLib
local window = Gtk.Window{
title = "awoo tool v0.1-alpha",
@wolfiestyle
wolfiestyle / gist:8a97b70bcfb37f86c1ebdcc5439cf023
Created December 3, 2021 21:07
vrcmods.com anti-adblock warning removal
vrcmods.com###UsingAdBlock
vrcmods.com##^script:has-text(BypassAdblock)

Keybase proof

I hereby claim:

  • I am wolfiestyle on github.
  • I am wolfiestyle (https://keybase.io/wolfiestyle) on keybase.
  • I have a public key whose fingerprint is FEE8 E341 5FB0 7364 F84F 3AAE BE64 546D 725C E70D

To claim this, I am signing this object:

@wolfiestyle
wolfiestyle / .conkyrc
Created March 14, 2020 22:25
wolfie's conky config
-- wolfie's conky config. inspired by gkrellm
conky.config = {
alignment = 'top_left',
xinerama_head = 1,
gap_x = 0,
gap_y = 0,
background = false,
border_width = 1,
draw_borders = false,
@wolfiestyle
wolfiestyle / Makefile
Created December 3, 2019 01:23
Makefile for Vulkan
CXX=g++
CXXFLAGS=-Wall -pipe -std=c++17
GLSLC=glslc
GLSLFLAGS=
LDFLAGS=$(shell pkg-config --libs vulkan) $(shell pkg-config --libs glfw3)
SRC=$(wildcard *.cpp)
OBJ=$(SRC:.cpp=.o)
SHADERSRC=$(wildcard *.glsl)
SHADEROBJ=$(SHADERSRC:.glsl=.spv)
OUT=VulkanTest
@wolfiestyle
wolfiestyle / gtk_frp.rs
Created January 17, 2019 00:20
FRP in Gtk proof of concept
use fragile::Fragile;
use frappe::{Signal, Sink, Stream};
use glib;
use gtk;
use gtk::prelude::*;
use std::thread;
use std::time::Duration;
fn main() {
gtk::init().unwrap();
@wolfiestyle
wolfiestyle / Makefile
Created March 28, 2012 00:15
basic makefile for D language
# basic makefile for D language - made by darkstalker
DCC = dmd
DFLAGS = -w
LIBS =
SRC = $(wildcard *.d)
OBJ = $(SRC:.d=.o)
OUT = $(shell basename `pwd`)
.PHONY: all debug release profile clean
@wolfiestyle
wolfiestyle / deepdream.py
Created August 5, 2016 07:04
deep dream command line utility
#!/usr/bin/env python2
# based on the code from: https://github.com/google/deepdream
import argparse
parser = argparse.ArgumentParser(description='Deep dreams an image.')
parser.add_argument('image', type=open, help='image file to process')
parser.add_argument('-g', '--gpu', action='store_true', help='enable GPU acceleration')
parser.add_argument('-o', '--out', type=argparse.FileType('w'), default='out.png', help='output image file')
args = parser.parse_args()
from cStringIO import StringIO