Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am RyuKojiro on github.
  • I am kojiro (https://keybase.io/kojiro) on keybase.
  • I have a public key whose fingerprint is 0867 6E48 6A42 3A20 15BB 0B33 FC64 65C6 6295 BF82

To claim this, I am signing this object:

@RyuKojiro
RyuKojiro / dwmclock.sh
Last active June 5, 2024 11:11
A simple clock for dwm
#!/bin/sh
while true
do
xsetroot -name "$(uptime | sed 's/.*load averages: //') - $(date +"%D %R:%S" ) - $(envstat -s acpibat0:charge | grep charge | sed 's/.*(//' | sed 's/).*//')"
sleep 1s;
done
@RyuKojiro
RyuKojiro / jumbleSolver.py
Last active August 29, 2015 14:08
Solves word jumbles
#!/usr/bin/env python2.7
import fileinput
import sys
if len(sys.argv) < 3:
print "Needs 2 arguments, first one is the word, second one is the list"
word = sys.argv[1]
dict = sys.argv[2]
@RyuKojiro
RyuKojiro / mtoc.sh
Last active June 13, 2016 05:34
Quick and dirty script to do everything necessary to build and install just mtoc from the Apple cctools. Used for setting up an EFI development environment.
#!/bin/sh
# This is an alternative to following the instructions at https://github.com/tianocore/tianocore.github.io/wiki/Xcode
CCTOOLS=cctools-877.8
LLVM=llvm-3.0
curl -O http://opensource.apple.com/tarballs/cctools/${CCTOOLS}.tar.gz
tar xvzf ${CCTOOLS}.tar.gz
rm ${CCTOOLS}.tar.gz
mv ${CCTOOLS}/include/llvm-c/Disassembler.h ${CCTOOLS}/Disassembler.backup.h
rmdir ${CCTOOLS}/include/llvm-c/
.section __TEXT,__text,regular,pure_instructions
.macosx_version_min 10, 11
.globl _base64_byte
.align 4, 0x90
_base64_byte: ## @base64_byte
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp0:
.cfi_def_cfa_offset 16