Skip to content

Instantly share code, notes, and snippets.

View argorain's full-sized avatar
🤘
Fluteeeer!

Vojtech Vladyka argorain

🤘
Fluteeeer!
View GitHub Profile
assume-paste-time 1
base-index 0
bell-action any
bell-on-alert off
default-command ""
default-shell "/bin/zsh"
default-terminal "screen"
destroy-unattached off
detach-on-destroy on
display-panes-active-colour red
+ verbose=on
+ shift
+ '[' '' ']'
+ getdistro
+ '[' '' ']'
+ case "$os" in
+ grep -q Microsoft /proc/version
+ grep -q Microsoft /proc/sys/kernel/osrelease
+ type -p lsb_release
+ case "$distro_shorthand" in
+ verbose=on
+ shift
+ '[' '' ']'
+ getdistro
+ '[' '' ']'
+ case "$os" in
+ grep -q Microsoft /proc/version
+ grep -q Microsoft /proc/sys/kernel/osrelease
+ type -p lsb_release
+ case "$distro_shorthand" in
@argorain
argorain / smile.c
Created April 16, 2015 06:27
Keep smiling! Thanks B0rk!
#include <stdio.h>
#include <unistd.h>
// Do not be sad anymore, be smile!
// Thanks B0rk :)
int main(int argc, char **argv){
while(1){
printf(":) ");
fflush(stdout);
@argorain
argorain / ptrs.c
Created April 6, 2015 15:12
Simple round robin scheduler with table of function pointers.
#include "stdio.h"
#define MAX_SIZE 10 //maximum amount of functions in table
//#define SHOW_ITERATION //uncoment for show iteration numbers
//************ TABLES AND ROUTINES *****************************
typedef enum //function callers
{