Skip to content

Instantly share code, notes, and snippets.


aneury perez aneury1

View GitHub Profile
View Dockerfile.1
FROM gcc:7.3.0
RUN apt-get -qq update
RUN apt-get -qq upgrade
RUN apt-get -qq install cmake
RUN apt-get -qq install libboost-all-dev=
RUN apt-get -qq install build-essential libtcmalloc-minimal4 && \
ln -s /usr/lib/ /usr/lib/
#docker build -t <IMG_NAME> .
View heap.cpp
#include <vector>
#include <iostream>
///Credit To Coding Jesus
struct Heap
int _size{};
std::vector<int> mheap={-1};
int m_parent(int i) {
return (i >> 1); /// i/2
View myDockerFile
FROM ubuntu:20.04
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get upgrade -y && apt-get install -y \
git \
cmake \
qtbase5-dev \
build-essential \
libx11-dev \
libxtst-dev \
libgl1-mesa-dev \
View fork.cpp
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
int main (void) {
pid_t processId;
if ((processId = fork()) == 0) {
char app[] = "/bin/echo";
View aligned_alloc_base_2.c
#include <stdlib.h>
void* aligned_malloc(size_t required_bytes, size_t alignment)
void* p1; // original block
void** p2; // aligned block
int offset = alignment - 1 + sizeof(void*);
if ((p1 = (void*)malloc(required_bytes + offset)) == NULL)
return NULL;
aneury1 / 32.asm
Created Jun 10, 2020 — forked from FiloSottile/32.asm
NASM Hello World for x86 and x86_64 Intel Mac OS X (get yourself an updated nasm with brew)
View 32.asm
; /usr/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32
global start
section .text
push dword msg.len
push dword msg
push dword 1
mov eax, 4
keytool -genkey -v -keystore ~/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key
View wrapped.dart
getTextContent(context, text){
return Row(
mainAxisAlignment: MainAxisAlignment.start,
//this will determine if the message should be displayed left or right
children: [
//Wrapping the container with flexible widget
child: Container(
View sha1.cpp
* sha1.c
* Description:
* This file implements the Secure Hashing Algorithm 1 as
* defined in FIPS PUB 180-1 published April 17, 1995.
* The SHA-1, produces a 160-bit message digest for a given
* data stream. It should take about 2**n steps to find a
* message with the same digest as a given message and
View sha1.h
* sha1.h
* Description:
* This is the header file for code which implements the Secure
* Hashing Algorithm 1 as defined in FIPS PUB 180-1 published
* April 17, 1995.
* Many of the variable names in this code, especially the
* single character names, were used because those were the names
You can’t perform that action at this time.