Skip to content

Instantly share code, notes, and snippets.

View edi33416's full-sized avatar

Eduard Staniloiu edi33416

  • Bucharest, Romania
View GitHub Profile
@edi33416
edi33416 / dotfiles-install.sh
Created October 5, 2017 15:30
My dotfiles install script
git clone --bare https://github.com/edi33416/dotfiles.git $HOME/.cfg
function config {
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME "$@"
}
mkdir -p .config-backup
config checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";
@edi33416
edi33416 / rtunnel.service
Created November 29, 2018 15:03
systemd service script to create a reverse tunnel; Kudos Sergiu W (@Sergiu121)
[Unit]
Description=Keeps a tunnel to 'fep.grid.pub.ro' open
After=network-online.target ssh.service
[Service]
User=<user-name>
# -p [PORT]
# -l [user]
# -M 0 --> no monitoring
# -N Just open the connection and do nothing (not interactive)
@edi33416
edi33416 / id_rsa.pub
Created February 4, 2019 17:25
laptop ssh pub key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDROmBhHnX4o12oIWRuDUUf4bOWBEJRHjvFfH+SE7fKPo7HJzIskPElgBKBqnpdAYdvJd6patrOmUMd/6GFA0n+aJSeolE/RoqZxHA8dcX57zzeq3dKymRaGOhpXXS1c+j1YiPwsFsSulOdi4WKh5V0+njNqI6bs1buwdIu4qJcgx0PpIcbbUZc8RPPlyiI5EXasa7VtQbH+FUDjrbg+2rtMtvWcuUWCkgytnZZQu7lk1yUiauLQWFJOwMDUEHVGu0oEhysNcGegix+2UbTkSDka9o1/slUYyHQbGivdRRHgcFRkT8MVa0hxsLimju09RgROVio4iNx0KhYgyfmEndJ fawkes@LAPTOP-7SIL4P0D
@edi33416
edi33416 / ProtoObject.md
Created April 13, 2019 19:50
DConf 2019, Eduard Staniloiu - Rethinking the default class hierarchy: an Object’s tale

Title

Rethinking the default class hierarchy: an Object’s tale

Kind

Talk

Duration

@edi33416
edi33416 / GSoC-WorkProductReport2019.md
Created August 23, 2019 21:29
Work Product Report for Google Summer of Code 2019

Work Product Report for Google Summer of Code 2019

Introduction

In recent years, the D programming language has gained more and more attention and existing C and C++ codebases are starting to incrementally integrate D components.

In order to be able to use D components, a C or C++ interface to them must be provided; in C and C++, this is done through header files. Currently, this process is entirely

SAoC Cristian Becerescu Milestone 1 Report

Cristian is a very good and independent student.

He delved very quickly into the project, promptly understanding what are it's challenges and goals. He has stepped right away into DPP's codebase, even solving some issues.

He has successfully completed all the tasks of this milestone and he has even started working on some of the tasks of the next milestone.

SAoC Cristian Becerescu Milestone 2 Report

Cristian has kept up with his good work and continued to do good progress during the 2nd milestone.

He started to incrementally find and fix bugs in dpp, and he kept the community posted through the forum posts.

We are very pleased with his progress, autonomy and community interaction.

@edi33416
edi33416 / gcc-install.sh
Last active October 26, 2020 22:15
Script that builds and installs gcc from source
# Download and compile gcc
GCC_VERSION=9.3.0
ROOT=~/gcc
mkdir -p "${ROOT}/gcc-${GCC_VERSION}"
cd "${ROOT}/gcc-${GCC_VERSION}"
wget https://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/gcc-${GCC_VERSION}.tar.gz
tar xvf gcc-${GCC_VERSION}.tar.gz
mv gcc-${GCC_VERSION} src-gcc-${GCC_VERSION}
This gist I write, because I couldn't find step by step instructions
how to install and start postgresql locally and not globally in the
operating system (which would require sudo).
I hope, this will help especially people new to postgresql!
####################################
# create conda environment
####################################
@edi33416
edi33416 / hax.c
Created December 23, 2020 21:40 — forked from apsun/hax.c
Hook main() using LD_PRELOAD
/*
* Hook main() using LD_PRELOAD, because why not?
* Obviously, this code is not portable. Use at your own risk.
*
* Compile using 'gcc hax.c -o hax.so -fPIC -shared -ldl'
* Then run your program as 'LD_PRELOAD=$PWD/hax.so ./a.out'
*/
#define _GNU_SOURCE
#include <stdio.h>