Skip to content

Instantly share code, notes, and snippets.

View ByteProject's full-sized avatar

Stefan Vogt ByteProject

View GitHub Profile
@ByteProject
ByteProject / amigaffs_ubuntu.sh
Last active March 14, 2021 12:54
How to r/w Amiga FFS media in Ubuntu Linux
# HOW TO MOUNT AMIGA FFS MEDIA IN UBUNTU LINUX
# Linux comes with built-in support for Amiga FastFileSystem (AFFS).
# First we need to create a directory for mounting the partition.
sudo mkdir /media/AmigaMount
# Fire up fdisk to check the device name.
sudo fdisk -l
# My device is /dev/sdb. Using parted.
@ByteProject
ByteProject / gist:3788954
Created September 26, 2012 16:15 — forked from odrobnik/gist:3788876
Info Plist declaring a main bundle extension *fixed*
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
@ByteProject
ByteProject / wavegoodbye.c
Created October 13, 2011 20:32
a programming language mourns about the loss of it's father
/* Dennis Ritchie (1941-2011) */
#include <stdio.h>
int main()
{
printf("goodbye, dad\n");
return 0;
}
@ByteProject
ByteProject / FileAttributes.m
Created November 16, 2010 09:05
Basic example how to access file attributes in Cocoa
//
// FileAttributes.m
//
// Coded by Stefan Vogt.
// Released under the FreeBSD license.
// http://www.byteproject.net
//
NSFileManager *fileManager = [[NSFileManager alloc] init];
@ByteProject
ByteProject / switchtemp.c
Created March 3, 2010 10:01
template for a switchable command line utility (portable C)
/*
* switchtemp.c
*
* Coded by Stefan Vogt, revised Feb 19, 2011.
* Released under the FreeBSD license.
* http://www.byteproject.net
*
* template for a switchable command line utility
*
*/
@ByteProject
ByteProject / ptarget.h
Created March 3, 2010 09:48
header for compiler and OS detection (portable C)
/*
* ptarget.h
*
* Coded by Stefan Vogt, revised Feb 18, 2011.
* Released under the FreeBSD license.
* http://www.byteproject.net
*
* header for compiler and OS detection
*
*/