start new:
tmux
start new with session name:
tmux new -s myname
/* --- Usage --- */ | |
g++ server.c -o server | |
g++ client.c -o client | |
./server | |
./client 127.0.0.1 | |
/* --- server.c --- */ | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> |
#!/bin/bash | |
# mapwacom script | |
MAPWACOM=$(basename $0) | |
EXIT_CODE_BAD_DEVICE=82 | |
EXIT_CODE_NO_SUCH_DEVICE=80 | |
EXIT_CODE_NO_SUCH_SCREEN=81 | |
EXIT_CODE_MISSING_DEPS=83 | |
EXIT_CODE_USAGE=64 |
If you need a small makefile introduction/reference you can take a look at my notes https://www.mauriciopoppe.com/notes/os/bin/make/
Project structure
. project
├── Makefile
├── build
AS=nasm #Assembly compiler | |
ASFLAGS=-f elf -g #Assembly flags | |
LD=ld #Linker | |
LDFLAGS=-m elf_i386 #Linker flags | |
SOURCES=$(wildcard ./src/*.c) #Sources | |
OBJECTS=$(SOURCES:.asm=.o) #Object files | |
EXECUTABLE=test #Program name | |
#Check version | |
all: $(SOURCES) $(EXECUTABLE) |
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
\documentclass[12pt]{article} | |
\usepackage{pgf} | |
\usepackage{tikz} | |
\usetikzlibrary{arrows,automata} | |
\usepackage[latin1]{inputenc} | |
\begin{document} | |
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=2.8cm, | |
semithick] |
For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):
List All System Images Available for Download: sdkmanager --list | grep system-images
Download Image: sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"
{ | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.fontSize": 14, | |
"editor.lineHeight": 1.8, | |
"javascript.suggest.autoImports": true, | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"editor.rulers": [80, 120], | |
"extensions.ignoreRecommendations": true, | |
"typescript.tsserver.log": "off", | |
"files.associations": { |
""" | |
Adapted from https://github.com/pybind/cmake_example | |
""" | |
import os | |
import platform | |
import re | |
import subprocess | |
import sys | |
import sysconfig | |
from distutils.version import LooseVersion |