Skip to content

Instantly share code, notes, and snippets.

View Tomcat-42's full-sized avatar
🧙
0x4d61676500

Pablo Alessandro Santos Hugen Tomcat-42

🧙
0x4d61676500
View GitHub Profile
@themagicalmammal
themagicalmammal / Optimizations_Artix.md
Last active June 22, 2024 09:55
Set of optimizations, I use on my Artix Setup
@dmontagu
dmontagu / build.py
Created September 4, 2019 07:12
CMake + Cython extension building with poetry
"""
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
@diego3g
diego3g / settings.json
Last active June 26, 2024 18:28
VSCode Settings (Updated)
{
"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": {
@mrk-han
mrk-han / emulator-install-using-avdmanager.md
Last active June 18, 2024 07:51
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER

TL;DR

For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):

  1. List All System Images Available for Download: sdkmanager --list | grep system-images

  2. Download Image: sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"

@slwu89
slwu89 / pf_fsm.tex
Created May 9, 2018 20:25
how to make finite state machine in tikz (latex)
\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]
@Pulimet
Pulimet / AdbCommands
Last active June 24, 2024 10:35
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@hleonps
hleonps / Makefile
Created January 21, 2017 18:20
Makefile NASM
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)
@mauriciopoppe
mauriciopoppe / _README.md
Last active March 30, 2024 09:52
Generic Makefile example for a C++ project
@tom-galvin
tom-galvin / mapwacom
Last active January 17, 2024 12:23
Mapwacom script
#!/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
@browny
browny / simple_socket_example.c
Last active June 25, 2024 04:42
simple socket example in C
/* --- 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>