Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am ramblingenzyme on github.
* I am ramblingenzyme (https://keybase.io/ramblingenzyme) on keybase.
* I have a public key ASCaURTvY52fKjQrx2LM7N6-5R4CE9HOe-KB3-f53xgJ2Qo
To claim this, I am signing this object:
@ramblingenzyme
ramblingenzyme / specific.c
Last active January 2, 2017 21:50
inotify battery script
#include <stdio.h>
#include <limits.h>
#include <string.h>
#include <fnmatch.h>
#include <sys/inotify.h>
#define BUF_LEN (10 * (sizeof(struct inotify_event) + NAME_MAX + 1))
#define FILE_COUNT 3
void battery_status(char *files[FILE_COUNT]) {
#!/usr/bin/env bash
TURNIN=false;
while getopts :c:a:u:th opt; do
case $opt in
c)
CLASS="$OPTARG"
;;
a)
# add my user stuff
# xorg
{ config, pkgs, ... };
{
require = [ ];
boot = {
extraTTYs = [ "tty2" ]
; demo operating system
;
; system calls
; exit = os executes halt instruction!
; read = os will under interrupts read a line from keyboard
; returning when a newline character read
; write = os will under interrupts write a line to teletype
; returning when line all written (nul character at end)
; os will use "wait" when it cannot return
;
@ramblingenzyme
ramblingenzyme / list.cc
Last active October 23, 2015 11:22
linked_list
#include <iostream>
#include "list.h"
using namespace std;
List::List() {
head_ = NULL;
}
List::~List() {
#!/usr/bin/bash
TURNIN="false";
while getopts :c:a:th opt; do
case $opt in
c)
CLASS="$OPTARG"
;;
a)
if [ -f /etc/bashrc ]; then
. /etc/bashrc # --> Read /etc/bashrc, if present.
fi
alias rm='rm -iv'
alias banshee='ssh (PUT USERNAME HERE)@banshee.cs.uow.edu.au'