Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am asamy on github.
  • I am asamy (https://keybase.io/asamy) on keybase.
  • I have a public key whose fingerprint is F65E E9EB 1843 0605 9409 992E 9F2E B09A A221 D0FC

To claim this, I am signing this object:

@asamy
asamy / cmd.S
Last active February 21, 2022 19:39
Retrieving command-line arguments in x86 assembly.
/*
Copyright (C) 2013 Ahmed Samy <f.fallen45@gmail.com>, MIT.
Retrive command line arguments and output them to stdout.
Compile:
gcc cmd.S
Run:
./a.out 1 2 3
Should output:
There are 4 params:
@asamy
asamy / filestream.c
Created August 15, 2013 15:19
GStreamer Client Audio Stream Player
/*
* A GStreamer Client Audio Streamer
*
* Written by Ahmed Samy <f.fallen45@gmail.com>
* with some assistance from the GStreamer documentation.
*
* Compile with:
* gcc -Wall filestream.c `pkg-config --libs --cflags gstreamer-1.0`
*
* Run: