Skip to content

Instantly share code, notes, and snippets.

@ggkitsas
ggkitsas / timeint.c
Created October 16, 2015 23:21
My solution to the OSP timeint assignment
/****************************************************************************/
/* */
/* Module TIMEINT */
/* External Declarations */
/* */
/****************************************************************************/
@ggkitsas
ggkitsas / cpu.c
Created October 16, 2015 23:20
My solution to the OSP cpu scheduler assignment
#include <stdio.h>
#include <stdlib.h>
/****************************************************************************/
/* */
/* Module CPU */
/* External Declarations */
/* */
/****************************************************************************/
@ggkitsas
ggkitsas / inter.c
Created October 16, 2015 23:18
My solution to the OSP interrupt assignment
/****************************************************************************/
/* */
/* Module INTER */
/* External Declarations */
/* */
/****************************************************************************/
@ggkitsas
ggkitsas / openpgp-get-pw-status.sh
Created September 28, 2015 07:52
Get status of the PINs for OpenPGP smartcards
#!/bin/bash
opensc-tool -s 00:CA:00:C4::00:08
@ggkitsas
ggkitsas / decompress
Last active June 17, 2019 17:14
Tired of all the compression formats and commands (-:
#!/usr/bin/env bash -e
# Copyright (c) 2015, Georgios Gkitsas
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
@ggkitsas
ggkitsas / branches.sh
Created July 4, 2014 19:09
List selected branches of all git submodules
#!/bin/sh
git submodule --quiet foreach 'echo $name `git rev-parse --abbrev-ref HEAD`'