Skip to content

Instantly share code, notes, and snippets.

View knbknb's full-sized avatar
๐Ÿ’ญ
๐Ÿ™…โ€โ™€๏ธ๐Ÿ’ก๐Ÿ’ค๐Ÿ˜ด๐Ÿ›Œ๐Ÿคช๐Ÿง”

Knut Behrends knbknb

๐Ÿ’ญ
๐Ÿ™…โ€โ™€๏ธ๐Ÿ’ก๐Ÿ’ค๐Ÿ˜ด๐Ÿ›Œ๐Ÿคช๐Ÿง”
  • Nothing to see here
  • Potsdam, Germany
View GitHub Profile
library(tidyverse)
library(magrittr)
library(stringr)
library(readxl)
directory <- "bunch/of/excel/files"
# Get an overview of all the Excel files and their sheets
sheets <-
data_frame(file = list.files(directory, full.names = TRUE),
@Luzifer
Luzifer / README.md
Last active March 31, 2025 18:54
Running docker-compose as a systemd service

Running docker-compose as a systemd service

Files

File Purpose
/etc/compose/docker-compose.yml Compose file describing what to deploy
/etc/systemd/system/docker-compose-reload.service Executing unit to trigger reload on docker-compose.service
/etc/systemd/system/docker-compose-reload.timer Timer unit to plan the reloads
/etc/systemd/system/docker-compose.service Service unit to start and manage docker compose
@hadley
hadley / shiny-oauth.r
Last active November 2, 2024 01:26
Sketch of shiny + oauth
library(shiny)
library(httr)
# OAuth setup --------------------------------------------------------
# Most OAuth applications require that you redirect to a fixed and known
# set of URLs. Many only allow you to redirect to a single URL: if this
# is the case for, you'll need to create an app for testing with a localhost
# url, and an app for your deployed app.
@martinwicke
martinwicke / automobile.ipynb
Last active January 9, 2022 08:14
Estimator demo using Automobile dataset
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AustinRochford
AustinRochford / pp-pymc3-odsc-east-2017.ipynb
Last active April 16, 2020 13:59
ODSC East 2017 Probabilistic Programming in Python with PyMC3
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wch
wch / rowwise.Rmd
Last active February 28, 2023 03:35
---
title: "Applying a function over rows of a data frame"
author: "Winston Chang"
output: html_document
editor_options:
chunk_output_type: console
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
@joepie91
joepie91 / vpn.md
Last active December 15, 2025 03:26
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@HarmJ0y
HarmJ0y / PowerView-2.0-tricks.ps1
Last active May 18, 2025 13:19
PowerView-2.0 tips and tricks
# NOTE: the most updated version of PowerView (http://www.harmj0y.net/blog/powershell/make-powerview-great-again/)
# has an updated tricks Gist at https://gist.github.com/HarmJ0y/184f9822b195c52dd50c379ed3117993
# get all the groups a user is effectively a member of, 'recursing up'
Get-NetGroup -UserName <USER>
# get all the effective members of a group, 'recursing down'
Get-NetGroupMember -GoupName <GROUP> -Recurse
# get the effective set of users who can administer a server
@derhuerst
derhuerst / _.md
Last active May 20, 2025 15:03
List of HAFAS API Endpoints