Skip to content

Instantly share code, notes, and snippets.

View SkrewEverything's full-sized avatar
😶‍🌫️

SkrewEverything

😶‍🌫️
View GitHub Profile

Disclaimer: I'm not the original author of this sheet, but can't recall where I found it. If you know the author, please let me know so I give the attribution.

Note: Since this seems to be helpful to some people, I formatted it to improve readability of the original. Also, note that this is from 2016, many things may have changed, and I don't use macOS anymore, so I probably can't help in case of questions, but maybe someone else can.

Mac Network Commands Cheat Sheet

After writing up the presentation for MacSysAdmin in Sweden, I decided to go ahead and throw these into a quick cheat sheet for anyone who’d like to have them all in one place. Good luck out there, and stay salty.

Get an ip address for en0:

@SkrewEverything
SkrewEverything / UNPHAT-principle.md
Created March 15, 2021 20:41 — forked from rponte/UNPHAT-principle.md
Before choosing an architecture, follow UNPHAT principle (You Are Not Google)

Cool Tech? UNPHAT.

Next time you find yourself Googling some cool new technology to (re)build your architecture around, I urge you to stop and follow UNPHAT instead:

  1. Don’t even start considering solutions until you Understand the problem. Your goal should be to “solve” the problem mostly within the problem domain, not the solution domain.
  2. eNumerate multiple candidate solutions. Don’t just start prodding at your favorite!
  3. Consider a candidate solution, then read the Paper if there is one.
  4. Determine the Historical context in which the candidate solution was designed or developed.
  5. Weigh Advantages against disadvantages. Determine what was de-prioritized to achieve what was prioritized.
@SkrewEverything
SkrewEverything / introrx.md
Created December 25, 2020 00:41 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@SkrewEverything
SkrewEverything / Dockerfile
Created June 25, 2020 16:20 — forked from remarkablemark/Dockerfile
Install node and npm with nvm using Docker.
# set the base image to Debian
# https://hub.docker.com/_/debian/
FROM debian:latest
# replace shell with bash so we can source files
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# update the repository sources list
# and install dependencies
RUN apt-get update \
@SkrewEverything
SkrewEverything / TCPClient.c
Last active June 20, 2023 11:56
Simple TCP Client
// Client side C/C++ program to demonstrate Socket programming
#include <stdio.h>
#include <sys/socket.h>
#include <stdlib.h>
#include <unistd.h>
#include <netinet/in.h>
#include <string.h>
#include <arpa/inet.h>
#define PORT 8080
@SkrewEverything
SkrewEverything / TCPServer.c
Last active March 2, 2023 10:52
Simple TCP server
// Server side C program to demonstrate Socket programming
#include <stdio.h>
#include <sys/socket.h>
#include <unistd.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <string.h>
#define PORT 8080
int main(int argc, char const *argv[])