Skip to content

Instantly share code, notes, and snippets.


Gergely Daróczi daroczig

View GitHub Profile
Shehab7osny /
Last active Oct 9, 2021
Details about my progress throughout GSoC 2020

GSoC 2020 - gRPC R package

Shehab Hosny

Overview and Aim of the project

In this post I will try to wrap up my working progress throught GSoC 2020. I've been working since May trying to add new functionalities to the gRPC R package originally implemneted by Neal Fultz in 2017. There were a total of three functionalities to implement, TLS Encryption, Oauth2 Authentication and finally Streaming. It was required to implement these functionalities in the grpc package from both R and the underlying C wrapper code. Here is the link for my forked repository.


Obviously, one of the main challenges that faced me while working n the project was the callback between the R code and the underlying C wrapper code. This required me to go more deep in the callback functions' implementation and returned data types. For the streaming part, this problem consumed a vast amount of time to be solved in a correct way. Additionaly, knowing exactly why each me

gaborcsardi / Pkgdown deploy from
Last active Oct 27, 2020
Walkthrough: deploy a pkgdown site from Travis
View Pkgdown deploy from

Run usethis::use_pkgdown_travis()

✔ Setting active project to '/Users/gaborcsardi/works/ps'Adding 'docs/' to '.gitignore'Set up deploy keys by running `travis::use_travis_deploy()`Insert the following code in '.travis.yml'
  before_cache: Rscript -e 'remotes::install_cran("pkgdown")'
0penBrain /
Last active Sep 22, 2021
The simplest way to get commit count of a GitHub repository through the API
curl -I -k "" | sed -n '/^[Ll]ink:/ s/.*"next".*page=\([0-9]*\).*"last".*/\1/p'
### And that's all !
# I saw many fighting with finding first commit SHA or similar fancy thing.
# Here we just rely on the GH API, asking commits at 1 per page and parsing the last page number in the header of the reply (whose body only holds the last commit !)
# So this is robust and bandwidth efficient. :)
# If one want the commit count of a specific SHA, just use :
curl -I -k "" | sed -n '/^[Ll]ink:/ s/.*"next".*page=\([0-9]*\).*"last".*/\1/p'
View gganimate.R
## Anscombe-i qaurtett
xunil154 /
Created Aug 20, 2019
ArchLinux install script with ZFS as the root, all sitting on LUKS encryption, using systemd-boot for UEFI (ArchLinux with ZFS Root on LUKS with UEFI)
SYSTEM_NAME=aerozine # Hostname and used in ZFS structure (zroot/sys/${SYSTEM_NAME}/ROOT/default)
USER=xunil # Initial admin user for the system
# Archlinux on ZFS Root on LUKS setup script (v1.0)
# USAGE: ./ /dev/sda
jeremybise / baseof.html
Last active Sep 25, 2021
Google Fonts via config with Hugo
View baseof.html
<!-- Wherever your head tag is located, add the new partial -->
{{ partial "google-fonts" . }}



To migrate

Software / Service Replacement Satisfaction License
E-mail service None yet
Contact service [Nextcloud][]
rasmusab / get_up_to_speed_with_bayes_test_script.R
Last active Jul 8, 2019
UseR 2019 tutorial - Get up to speed with Bayes test script
View get_up_to_speed_with_bayes_test_script.R
# Prior to the tutorial make sure that the script below runs without error on your R installation.
# You first need to install the follwoing packages:
# install.packages(c("rstanarm", "prophet", "CausalImpact"))
# This will test that rstanarm works
# Don't be alarmed if you get a warning about "divergent transitions "
tymm / gist:c2771d1d0dd256471b7082b4f11063b1
Created Jan 20, 2019
View gist:c2771d1d0dd256471b7082b4f11063b1
Section "Module"
Load "modesetting"
Section "Device"
Identifier "Device NVIDIA GPU"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "AllowEmptyInitialConfiguration"
CodingCellist /
Last active Aug 19, 2021
A detailed overview of how I installed Arch Linux on my Lenovo ThinkPad X1 Extreme (Gen 1), having never installed Arch before.


I am not responsible for any damages, loss of data, system corruption, or any other mishap you may somehow cause by following this guide.

This is mainly a step-by-step reminder/log for myself of how I installed Arch on my laptop. I am putting this out there in case it is useful for someone else, it is not intended to be an official guide. As a result, you may find that this guide is very tedious or lists a lot of unnecessary/intuitive steps or just straight up does things in a way that is considered bad practice. Apart from the latter, this is intentional, as I did not find these steps intuitive at all when