Skip to content

Instantly share code, notes, and snippets.

View vonnenaut's full-sized avatar

Dan vonnenaut

View GitHub Profile
@vonnenaut
vonnenaut / android.md
Last active June 7, 2021 07:00
Android Dev

Android Development

High-level Overview

Components of an Android App

  • Intents
    • Activity
    • Service
    • Content Provider
    • Broadcast Receiver
    • Manifest - an XML file that declares the components (above) and some properties o fthe app
@vonnenaut
vonnenaut / multithreading_c.md
Last active January 27, 2021 09:28
Multi-threaded Programming in C

Multi-Threaded Programming in C

pthreads

  1. include header #include <pthread.h>

  2. Compile with one of the following options to link the library and allow reporting of compilation errors: gcc -o main main.c -lpthread gcc -o main main.c -pthread

@vonnenaut
vonnenaut / cplusplus.md
Last active January 10, 2021 10:48
C++

C++

  • very large language, difficult to learn

  • has 5 parts:

    • C language
    • C preprocessor
    • Classes and Objects
    • Templates
    • Standard Template Library
  • passing objects onto the stack is bad practice; instead use pointers or references

@vonnenaut
vonnenaut / tailwindcss.md
Last active January 6, 2021 02:17
Tailwind CSS

Tailwind CSS

Installation

  • during setup and installation, if you encounter package.json missing error, use npm init to create the missing file
  1. Install Tailwind CSS
npm init -y
npm i tailwindcss
@vonnenaut
vonnenaut / man_pages.md
Last active January 5, 2021 07:55
Linux System Reference Manual (Man Pages)

Linux System Reference Manual

Sections
1. Executable programs or shell commands
2. System calls (functions provided by the kernel)
3. Library calls (functions within program libraries)
4. Special files (usually found in /dev)
5. File formats and conventions eg /etc/passwd
6. Games
@vonnenaut
vonnenaut / c_socket_programming.md
Last active January 5, 2021 11:55
C Socket Programming

C Socket Programming

Sockets are a way to speak to other programs using standard Unix file descriptors.

Basic Overview

socket() -> connect() -> [send()|recv()]

int socket(int _domain, int _type, int _protocol) _THROW;

  1. Creat a socket.
@vonnenaut
vonnenaut / gist:aa55a655aa72d5e5e3899f50a062d812
Last active December 15, 2020 03:17
XAMPP (Apache, MariaDB, PHP, Perl dev server)
# XAMPP
## Setup
### Stop existing Apache and MySQL services:
`/etc/init.d/apache2 stop`
`/etc/init.d/mysql stop`
### Start XAMPP
`sudo /opt/lampp/lampp start`
@vonnenaut
vonnenaut / php.md
Last active July 6, 2021 11:44
PHP

PHP

Basics

Installation

  1. Download and extract source code into C:\php

  2. copy C:\php\php.ini-development into a new file called C:\php\php.ini

@vonnenaut
vonnenaut / gdb.md
Last active December 7, 2021 16:37
GNU Debugger (GDB)

GDB (GNU Debugger)

Quick Reference

  1. gdb [file name]
  2. b [breakpoint line #]
  3. start
  4. c (go to first breakpoint)
  5. p [var name] (print a variable value)