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 / 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 / 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 / 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
[
{
"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 / 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",
@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
@XenGi
XenGi / fuckyou.fish
Last active April 8, 2017 17:46
Rage quit support for fish shell
# ~/.config/fish/functions/fuckyou.fish
# usage: fuckyou firefox
# dependencies: toilet
function fuckyou --description "Rage quit support for fish"
killall -9 $argv[1]
if test $status = 0
echo
echo (set_color brred)" (╯°□°)╯"(set_color bryellow)"︵"(set_color FFBF00) (echo $argv[1] | toilet -f term -F rotate)(set_color normal)
echo
else