Skip to content

Instantly share code, notes, and snippets.

Patrick Schratz pat-s

Block or report user

Report or block pat-s

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pat-s
pat-s / # gdal2 - 2017-09-28_23-12-48.txt
Created Sep 28, 2017
gdal2 (osgeo/osgeo4mac/gdal2) on macOS 10.12.6 - Homebrew build logs
View # gdal2 - 2017-09-28_23-12-48.txt
Homebrew build logs for osgeo/osgeo4mac/gdal2 on macOS 10.12.6
Build date: 2017-09-28 23:12:48
View gist:b6026fa370193b8ce260b0115903e022
{
"color_scheme": "Packages/Dracula Color Scheme/Dracula.tmTheme",
"font_face": "Fira Sans",
"font_size": 12,
"ignored_packages":
[
"Vintage"
],
"open_files_in_new_window": false,
"tab_size": 2,
@pat-s
pat-s / convert_to_ascii_news.sh
Created Mar 20, 2018
Convert NEWS.md to ASCII NEWS for R packages
View convert_to_ascii_news.sh
# 1.'-e' part: Replaces all level 2 headers and appends a ":" at the end of the line
# 2.'-e' part: Indents all bullet points with a whitespace
# 3.'-e' part: Removes all level 2 headers
# 4.'-e' part: For all level 1 headers, add linebreak and 80 hyphens (not strictly required but clean)
# 5.'-e' part: Remove all level 1 headers
sed -e '/^##/ s/$/:/' -e 's/^*/ */' -e 's/^## *//' -e "/^#/a\\--------------------------------------------------------------------------------" -e 's/^# *//' < NEWS.md > NEWS
@pat-s
pat-s / create_new_server_user.sh
Created Aug 30, 2018
Creates a new server on a Unix server
View create_new_server_user.sh
$USER=simon
sudo mkdir /data/$USER
sudo adduser $USER
pwgen 13 1
sudo passwd $USER
sudo usermod -a -G data_users $USER
View 01_arch.json
{
"child": {
"directory": "",
"height": 994,
"profile": "2b7c4080-0ddd-46c5-8f23-563fd3ba789d",
"readOnly": false,
"synchronizedInput": true,
"type": "Terminal",
"uuid": "6669af26-ee09-4446-9932-e2f1c4ab6991",
"width": 1871
View gist:6b2af28e59ee49534ecc0de888843a14
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli '/usr/bin/npm',
1 verbose cli 'install',
1 verbose cli '--user',
1 verbose cli 'root',
1 verbose cli '-g',
1 verbose cli '--prefix',
1 verbose cli '/home/pjs/git/pkgbuilds/nodejs-decktape/pkg/nodejs-decktape/usr',
1 verbose cli 'decktape@2.8.9' ]
View reprex-multicore-issue
remotes::install_github("mlr-org/mlr@0c8185963f13303e143d634dc5bcd199edb01442")
library(mlr)
library(ParamHelpers)
library(parallelMap)
library(magrittr)
inner <- makeResampleDesc("CV", iters = 2)
outer <- makeResampleDesc("CV", iters = 4)
lrn_xgboost <- makeLearner(
You can’t perform that action at this time.