Skip to content

Instantly share code, notes, and snippets.

View XenGi's full-sized avatar
☠️
🪄✨ hax hax

Ricardo Band XenGi

☠️
🪄✨ hax hax
View GitHub Profile
@XenGi
XenGi / 99-displaymagic.rules
Last active September 18, 2021 02:11
display magic
#/etc/udev/rules.d/99-displaymagic.rules
# enable LVDS on HDMI disconnect
SUBSYSTEM=="drm", ACTION=="change", RUN+="/usr/local/bin/displaymagic.sh"
@XenGi
XenGi / application.py
Last active June 6, 2019 19:00
Example code for new python projects.
#!/usr/bin/env python3
"""
Application - The way to make things right.
Usage:
application.py arg1 [--arg2 <key>]
application.py (-h | --help)
application.py --version
@XenGi
XenGi / index.html
Created July 13, 2013 07:13
Sample HTML5 page template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Page title</title>
<!-- enable html5 elements in IE6,7,8 -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
@XenGi
XenGi / evills
Created April 1, 2014 20:42 — forked from Eugeny/evills
#!/usr/bin/python
# -*- coding: utf-8 -*-
import subprocess
__all__ = ["transform"]
__version__ = '0.3'
__author__ = 'Christoph Burgmer <cburgmer@ira.uka.de>'
__url__ = 'http://github.com/cburgmer/upsidedown'

Keybase proof

I hereby claim:

  • I am XenGi on github.
  • I am xengi (https://keybase.io/xengi) on keybase.
  • I have a public key whose fingerprint is 6BCD 1934 064B B40F 29C8 D7EC 9BAE 7D9F CF68 5F4C

To claim this, I am signing this object:

@XenGi
XenGi / meckbd_v1.kbd.json
Last active March 11, 2017 22:23
meckbd_v1
[
{
"backcolor": "#ebebeb",
"name": "meckbd_v1",
"author": "XenGi",
"background": {
"name": "Steel brushed horizontal",
"style": "background-image: url('/bg/metal/iron_texture66.jpg');"
},
"switchMount": "cherry",
[
{
"backcolor": "#ebebeb",
"name": "meckbd_v1 columns",
"author": "XenGi",
"background": {
"name": "Steel brushed horizontal",
"style": "background-image: url('/bg/metal/iron_texture66.jpg');"
},
"switchMount": "cherry",
@XenGi
XenGi / battery.sh
Created July 20, 2016 21:42
battery block for i3blocks
#!/bin/bash
main() {
local ac=$(cat /sys/class/power_supply/AC/online)
if [[ -d /sys/class/power_supply/BAT0 ]] ; then
local int_present=$(cat /sys/class/power_supply/BAT0/present)
local int_capacity=$(cat /sys/class/power_supply/BAT0/capacity)
local int_status=$(cat /sys/class/power_supply/BAT0/status)
else
@XenGi
XenGi / reflow.md
Last active March 21, 2017 01:38
Halogen reflow oven
@XenGi
XenGi / dmesg
Last active March 31, 2017 14:30
[ 3035.830541] CPU1: Core temperature above threshold, cpu clock throttled (total events = 4729)
[ 3035.830542] CPU0: Core temperature above threshold, cpu clock throttled (total events = 4729)
[ 3035.830543] CPU2: Package temperature above threshold, cpu clock throttled (total events = 4742)
[ 3035.830544] CPU3: Package temperature above threshold, cpu clock throttled (total events = 4742)
[ 3035.830547] CPU0: Package temperature above threshold, cpu clock throttled (total events = 4742)
[ 3035.830552] CPU1: Package temperature above threshold, cpu clock throttled (total events = 4742)
[ 3035.830560] mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 128: 000000008805080b
[ 3035.830563] mce: [Hardware Error]: TSC 758bd6bd630
[ 3035.830565] mce: [Hardware Error]: PROCESSOR 0:306d4 TIME 1490970296 SOCKET 0 APIC 0 microcode 24
[ 3035.830568] mce: [Hardware Error]: CPU 1: Machine Check: 0 Bank 128: 000000008805080b