Skip to content

Instantly share code, notes, and snippets.

View jonasmalacofilho's full-sized avatar

Jonas Malaco jonasmalacofilho

View GitHub Profile
@jonasmalacofilho
jonasmalacofilho / PRIME-Z370-A.conf
Created January 21, 2024 17:29
lm-sensors configuration for the ASUS PRIME Z370-A motherboard
# lm-sensors configuration for the ASUS PRIME Z370-A motherboard
#
# Manufacturer: ASUSTeK COMPUTER INC.
# Product Name: PRIME Z370-A
# Version: Rev 1.04
# Super I/O: NCT6793D
# UEFI versions tested: 0805, 1601
#
# Recommended drivers: coretemp, nct6775
# Other Z370 boards from ASUS might use a similar setup

How the NZXT Hue+ works

Also applies to the NZXT Smart Device

TL; DR

Hue+ accessories use WS2812B integrated LED and controllers. Pinout is:

  • +5V (marked with arrow; corresponding wire with white stripe)
  • IN (data in)
@jonasmalacofilho
jonasmalacofilho / MS Office 2010 on Ubuntu 13.10.md
Last active September 27, 2023 13:26
Guide for installing MS Office 2010 on Ubuntu 13.10 (using Wine)

Installing Microsoft Office 2010 on Ubuntu 13.10/14.04

Results

Word works. Excel works.(1) PowerPoint works.

Access and Outlook were not tested.

@jonasmalacofilho
jonasmalacofilho / activate.sh
Created October 16, 2016 12:31 — forked from Andrei-Pozolotin/activate.sh
ubuntu 14.04 cryptsetup luks suspend/resume root partition
#!/bin/bash
#
# ubuntu 14.04 cryptsetup luks suspend/resume root partition sleep activation
#
source=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) # install script folder
target=/run/pm-crypto # chroot environment folder
bind_list="/dev /proc /sys /run" # special system mounts
@jonasmalacofilho
jonasmalacofilho / NeedlemanWunsch.hx
Last active April 29, 2023 13:32
Adapted Needleman-Wunsch algorithm for general array alignment implemented in Haxe (3).
/**
Adapted Needleman-Wunsch algorithm for general array alignment
If NeedlemanWunsch is used as entry point the unit tests are executed
Copyright (c) 2013, Jonas Malaco Filho
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice,
@jonasmalacofilho
jonasmalacofilho / root-sync-before-sleep.service
Last active October 16, 2022 12:11
Systemd service file for running `sync` before trying to suspend/hibernate/hybrid-sleep
[Unit]
Description=Sync before trying to suspend/hibernate/hybrid-sleep
Before=sleep.target
StopWhenUnneeded=yes
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/sync
@jonasmalacofilho
jonasmalacofilho / safesign.md
Created July 1, 2014 22:12
Instalando o SafeSign Crypto USB Token no Firefox/Linux

Instalando o SafeSign Crypto USB Token no Firefox/Linux

Hardware: Giesecke & Devrient SafeSign Crypto USB Token

Sistema operacional: Ubuntu 14.04 LTS AMD 64

  1. Dependências: libccid, pcscd e libpcsclite1. Adicionalmente, é interessante instalar o pacote pcsc-tools e executar pcsc_scan para verificar a visibilidade do token.
From 60472d84c3b438dc09461a6461e82b46a38c3b6a Mon Sep 17 00:00:00 2001
From: Roberto Marques <robertobiundo@gmail.com>
Date: Sun, 28 Jun 2020 12:33:29 +0200
Subject: [PATCH] Added experimental support for H110i GT
---
liquidctl/driver/__init__.py | 1 +
liquidctl/driver/coolit.py | 313 +++++++++++++++++++++++++++++++++++
2 files changed, 314 insertions(+)
create mode 100644 liquidctl/driver/coolit.py
From b8cadeeeeedb8b25211e5968ac681a48306d04f0 Mon Sep 17 00:00:00 2001
From: Jonas Malaco <jonas@protocubo.io>
Date: Thu, 25 Jun 2020 12:29:03 -0300
Subject: [PATCH] python-hidapi: Check that the generated extension can be
imported
Due to, in the upstream project, a custom build process and the use of
unreleased hidapi APIs, python-hidapi has broken a couple of times in
the same number of months.
#!/bin/bash
echo "The uber customizable crossfit timer"
TIMERS=(
10 "wait"
90 "right thruster" 90 "left thruster" 60 "rest"
50 "squat rotation" 10 "rest" 50 "plank rotation" 10 "rest"
50 "squat rotation" 10 "rest" 50 "plank rotation" 10 "rest"
50 "squat rotation" 10 "rest" 50 "plank rotation" 10 "rest"