Skip to content

Instantly share code, notes, and snippets.

View caio-vinicius's full-sized avatar
🚤
42

Caio Souza | csouza-f caio-vinicius

🚤
42
View GitHub Profile
@moyix
moyix / killbutmakeitlooklikeanaccident.sh
Created February 5, 2022 22:51
Script to inject an exit(0) syscall into a running process. NB: only x86_64 for now!
#!/bin/bash
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont'
@abraithwaite
abraithwaite / chill-zoom.sh
Last active May 8, 2024 08:43
Zoom in Systemd Cgroups on Linux. Change the max allocations to fit your workstation.
#!/usr/bin/bash -xe
cat <<EOF > "${HOME}/.config/systemd/user/zoom.slice"
[Slice]
AllowedCPUs=0-4
MemoryHigh=6G
EOF
cat /usr/share/applications/Zoom.desktop | sed -E 's#^(Exec=).*$#Exec=/usr/bin/systemd-run --user --slice=zoom.slice /opt/zoom/ZoomLauncher#' > "${HOME}/.local/share/applications/Zoom.desktop"
@Startouf
Startouf / readme.md
Last active August 31, 2022 08:53
Update CRD for helm traefik migration from 2.4 to 2.5
@AdrianWR
AdrianWR / instructions.md
Created July 3, 2021 17:55
Roteiro do processo seletivo para Software Engineer na 42SP

Coding Challenge Vaga Full-time 42 São Paulo

Sua tarefa é construir uma API e banco de dados para uma aplicação de cadastro de alunos. A aplicação é um simples repositório para gerenciar alunos com seus respectivos nomes, intra ids, e projetos que estão trabalhando atualmente.

A aplicação pode ser construída utilizando qualquer linguagem, banco de dados, frameworks, libraries e ferramentas de sua preferência (Ex: Node + Express + Mongoose + MongoDB, etc). Apesar disso, a stack mais comum na 42 São Paulo é Golang, seguida por Python.

O que será avaliado

Queremos avaliar sua capacidade de desenvolver e documentar um back-end para uma aplicação. Serão avaliados:

@FreddieOliveira
FreddieOliveira / docker.md
Last active July 25, 2024 00:50
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

name: norminette
on: pull_request
jobs:
linter:
runs-on: ubuntu-18.04
steps:
- name: Checkout to project repository
uses: actions/checkout@v2
@ThiagoFPMR
ThiagoFPMR / discord-analysis.ipynb
Created November 7, 2020 05:23
Discord-Analysis
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bitsandbooks
bitsandbooks / ubuntu-focal-autoinstall-virtualbox.md
Last active August 27, 2022 17:46
Ubuntu 20.04 with Autoinstall using VirtualBox [DRAFT]

Ubuntu 20.04 + Autoinstall + VirtualBox

Intro

This guide will explain how to set up a [VirtualBox][] VM running [Ubuntu 20.04][] and, using the new [autoinstall][] tool and cloud-init, install OpenSSH server, add a group and a user, who can then connect to the machine via SSH. This was done on a 2016 MacBook Pro running macOS 10.15 "Catalina" and VirtualBox 6.1.6 (with the VirtualBox Guest Additions installed).

You will also need a group name, a username, a password hash and an SSH key pair.

How Autoinstall Works

@Kinjalrk2k
Kinjalrk2k / ring_buffer.c
Created July 22, 2019 13:40
Ring Buffer implementation using a Single Circular Linked List
#include <stdio.h>
#include <malloc.h>
typedef struct Node{
int data;
int empty;
struct Node* next;
}node; // nickname :)
struct ring_buffer{
@syneart
syneart / build_wireshark.sh
Last active July 10, 2024 08:04
BUILD WIRESHARK ON UBUNTU OR DEBIAN
#!/bin/sh
# This shell script is made by SyneArt <sa@syneart.com>
#######################################
# BUILD WIRESHARK ON UBUNTU OR DEBIAN #
#######################################
# | THIS SCRIPT IS TESTED CORRECTLY ON |
# |----------------------------------------------------------|
# | OS | Wireshark | Test | Last test |
# |--------------------|----------------|------|-------------|