Skip to content

Instantly share code, notes, and snippets.

View yskelg's full-sized avatar

Yunseong Kim yskelg

  • Ericsson
  • Seoul, Korea
View GitHub Profile
@x0nu11byt3
x0nu11byt3 / elf_format_cheatsheet.md
Created February 27, 2021 05:26
ELF Format Cheatsheet

ELF Format Cheatsheet

Introduction

Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.

ELF

Compilation

@lucaguada
lucaguada / RASPBERRY_PI_4.md
Last active April 4, 2024 07:19
Steps to fully install Ubuntu Server and MiniKube on Raspberry Pi 4 (wip)

How to install Ubuntu Server and Minikube on Raspberry Pi 4 4GB+ (recommended)

Disclaimer: this step-by-step GIST has been created with no guarantees, I may have missed some steps because of distraction or chiptune improvised on-chair-dancing, so be patient and let me know if I must add or fix something.

This is the way for living long and prospering!

Download Raspberry Pi Imager

Download and install Raspberry Imager: https://www.raspberrypi.org/software/

@vnkdj5
vnkdj5 / mergeSort.c
Created July 1, 2019 13:41
Merge Sort Program in OpenMP
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "omp.h"
#define MAX_SIZE 10
//Function for creating an input array||Update accoorind to your need
void generate_list(int * x, int n) {
int i,j,t;
@jhoenicke
jhoenicke / break-short.c
Created April 6, 2017 09:31
Program to brute force private keys from public keys using the baby-step giant-step algorithm.
/**********************************************************************
* Copyright (c) 2017, Jochen Hoenicke *
* *
* Compile with: *
* gcc -O2 -I secp256k1/src/ -I secp256k1/ break_short.c -lgmp *
**********************************************************************/
#include "libsecp256k1-config.h"
#include <stdio.h>
@simonw
simonw / how-to.md
Last active June 30, 2024 15:26
How to create a tarball of a git repository using "git archive"
@flbuddymooreiv
flbuddymooreiv / readme.md
Last active February 6, 2024 22:31
erlang + rebar + cowboy Hello World

This is the process of setting up erlang, rebar3, and cowboy for a Hello World, starting with a clean Debian 8 install.

Update apt and install deps:

root@046edcaea45a:~# apt-get update
root@046edcaea45a:~# apt-get install erlang erlang-dev gcc
root@046edcaea45a:~# wget https://s3.amazonaws.com/rebar3/rebar3
root@046edcaea45a:~# mkdir ~/bin/
root@046edcaea45a:~# mv rebar3 ~/bin/
root@046edcaea45a:~# chmod +x ~/bin/rebar3 
@kingluo
kingluo / processes.erl
Last active July 7, 2023 08:19
erlang noshell
$ erlc processes.erl
$ erl -noshell -s processes test -s init stop
the max processes is 262144
the proecess time is 2.0:3.57
$ erl -noshell -s processes test2 100000 -s init stop
the max processes is 262144
{"init terminating in do_boot",{system_limit,[{erlang,spawn,[erlang,apply,[#Fun<processes.2.26012808>,[]]],[]},{erlang,spawn,1,[]},{processes,for,3,[{file,"processes.erl"},{line,24}]},{processes,for,3,[{file,"processes.erl"},{line,24}]},{processes,max,1,[{file,"processes.erl"},{line,10}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
# program freeze here...
# Ctrl+C not work
@jlouis
jlouis / erl_map.c.gcov
Created April 5, 2015 20:23
Coverage of erl_map.c with 1000 tests run.
-: 0:Source:beam/erl_map.c
-: 0:Graph:obj/x86_64-unknown-linux-gnu/gcov/smp/erl_map.gcno
-: 0:Data:obj/x86_64-unknown-linux-gnu/gcov/smp/erl_map.gcda
-: 0:Runs:4
-: 0:Programs:1
-: 1:/*
-: 2: * %CopyrightBegin%
-: 3: *
-: 4: * Copyright Ericsson AB 2014. All Rights Reserved.
-: 5: *
@theburningmonk
theburningmonk / gist:3093711
Created July 11, 2012 21:30
Erlang exception handling example
-module(exceptions).
-export([sword/1, talk/0, black_knight/1]).
sword(1) -> throw(slice);
sword(2) -> erlang:error(cut_arm);
sword(3) -> exit(cut_leg);
sword(4) -> throw(punch);
sword(5) -> exit(cross_bridge).
talk() -> "blah blah".