This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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]) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
TURNIN=false; | |
while getopts :c:a:u:th opt; do | |
case $opt in | |
c) | |
CLASS="$OPTARG" | |
;; | |
a) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add my user stuff | |
# xorg | |
{ config, pkgs, ... }; | |
{ | |
require = [ ]; | |
boot = { | |
extraTTYs = [ "tty2" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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 | |
; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include "list.h" | |
using namespace std; | |
List::List() { | |
head_ = NULL; | |
} | |
List::~List() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
TURNIN="false"; | |
while getopts :c:a:th opt; do | |
case $opt in | |
c) | |
CLASS="$OPTARG" | |
;; | |
a) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |