Skip to content

Instantly share code, notes, and snippets.

View pat-s's full-sized avatar

Patrick Schratz pat-s

View GitHub Profile
@pat-s
pat-s / # gdal2 - 2017-09-28_23-12-48.txt
Created September 28, 2017 21:19
gdal2 (osgeo/osgeo4mac/gdal2) on macOS 10.12.6 - Homebrew build logs
Homebrew build logs for osgeo/osgeo4mac/gdal2 on macOS 10.12.6
Build date: 2017-09-28 23:12:48
@pat-s
pat-s / gist:b6026fa370193b8ce260b0115903e022
Created March 16, 2018 16:55
SublimeText3 user settings
{
"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 March 20, 2018 21:53
Convert NEWS.md to ASCII NEWS for R packages
# 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 / 01_arch.json
Last active August 30, 2018 14:34
Tilix
{
"child": {
"directory": "",
"height": 994,
"profile": "2b7c4080-0ddd-46c5-8f23-563fd3ba789d",
"readOnly": false,
"synchronizedInput": true,
"type": "Terminal",
"uuid": "6669af26-ee09-4446-9932-e2f1c4ab6991",
"width": 1871
@pat-s
pat-s / create_new_server_user.sh
Created August 30, 2018 14:30
Creates a new server on a Unix server
$USER=simon
sudo mkdir /data/$USER
sudo adduser $USER
pwgen 13 1
sudo passwd $USER
sudo usermod -a -G data_users $USER
@pat-s
pat-s / gist:6b2af28e59ee49534ecc0de888843a14
Created September 14, 2018 11:09
decktape 2.8.9 building error
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' ]
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(
@pat-s
pat-s / spack-build-out.txt
Created October 5, 2019 14:43
grass 7.8.0
This file has been truncated, but you can view the full file.
==> Executing phase: 'autoreconf'
==> Executing phase: 'configure'
==> [2019-10-05-16:05:13.779680] '/tmp/patrick/grass-7.8.0-2umd6vzsjtjx5dobpu5yblxcuq7sczqu/spack-src/configure' '--prefix=/opt/spack/opt/spack/linux-centos7-zen/gcc-9.2.0/grass-7.8.0-2umd6vzsjtjx5dobpu5yblxcuq7sczqu' '--without-odbc' '--without-nls' '--without-opendwg' '--with-x' '--with-gdal=/opt/spack/opt/spack/linux-centos7-zen/gcc-9.2.0/gdal-3.0.1-ow6bgxc2x5amspwcsjg3lbqxlse4p5bs/bin/gdal-config' '--with-proj-share=/opt/spack/opt/spack/linux-centos7-zen/gcc-9.2.0/proj-6.1.0-i25e6pyslcskd23sac6lqsfczwh6h4gr/share/proj' '--with-cxx' '--with-tiff' '--with-png' '--without-postgres' '--without-mysql' '--with-sqlite' '--without-opengl' '--with-fftw' '--without-blas' '--without-lapack' '--with-cairo' '--without-freetype' '--without-readline' '--with-regex' '--without-pthread' '--without-openmp' '--without-opencl' '--without-bzlib' '--without-netcdf' '--with-geos=/opt/spack/opt/spack/linux-centos7-zen/gcc-9.2.0/geos-3.7.2-hn6gflrgkurjja2i5bltlcse

Keybase proof

I hereby claim: * I am pat-s on github. * I am pjs_2288 (https://keybase.io/pjs_2288) on keybase. * I have a public key ASB8cUKmxs09bvNSYJ2iOViLxrnW16qLshzeuq2Q0AA9Uwo To claim this, I am signing this object:

{   "body": {     "key": {       "eldest_kid": "01207c7142a6c6cd3d6ef352609da239588bc6b9d6d7aa8bb21cdebaad90d0003d530a",       "host": "keybase.io",       "kid": "01207c7142a6c6cd3d6ef352609da239588bc6b9d6d7aa8bb21cdebaad90d0003d530a",       "uid": "12e179864b07ae9c1b23ce0419e08f19",       "username": "pjs_2288"     },     "merkle_root": {       "ctime": 1571349533,       "hash": "3cde0ebb524780b292e1268998cfe41adfab25eeb860beb42ff66d939ec8f8d4f94084495db97fdb62cc1402c1ec370d757fc22017043acc2abc9ad7a75bc19a",       "hash_meta": "947b2df0b7b8a92e4dadae3cf08ec34596c7f5a41ccabb6ff1135ba71a6b68b2",       "seqno": 8204710     },     "service": {       "entropy": "KD5cShE51I0CqV15tlqxkby/",       "name": "github",       "username": "pat-s"     },     "type": "web_service_bin
@pat-s
pat-s / addins.json
Last active March 2, 2020 09:58
Apply RStudio Desktop Settings
{
"styler::style_active_file": "Ctrl+Y",
"addmins::insert_dashes": "Ctrl+8",
"xaringan::inf_mr": "Ctrl+M",
"drake::rs_addin_loadd": "Ctrl+K",
"browse::browse": "Ctrl+B"
}