Skip to content

Instantly share code, notes, and snippets.

View das-g's full-sized avatar

Raphael Das Gupta das-g

  • OST Ostschweizer Fachhochschule
  • Switzerland
  • X @RaphaelDasG
View GitHub Profile
@das-g
das-g / full log of `nix-shell`
Created November 24, 2022 13:37
poetry2nix: «error: Library stubs not installed for "psutil" [import]»
these 5 derivations will be built:
/nix/store/33y2y0lb0545q0j5abawvdzz7vmrhxd3-python3.11-cython-0.29.32.drv
/nix/store/0npa6zavpp8j33vwq4f9r264qx8j0xcs-python3.11-pydantic-1.10.2.drv
/nix/store/6r4xlg8cflvwkp9ymj5ixn5sqvm3j0dp-python3.11-mypy-0.991.drv
/nix/store/m4fx7vhfk7abnd3xpl3rmbsvylp8z4gc-python3.11-fastapi-0.85.2.drv
/nix/store/9jd3qxsw3rc2a6p26yx66rhrd21cx0qv-python3-3.11.0-env.drv
building '/nix/store/6r4xlg8cflvwkp9ymj5ixn5sqvm3j0dp-python3.11-mypy-0.991.drv'...
building '/nix/store/33y2y0lb0545q0j5abawvdzz7vmrhxd3-python3.11-cython-0.29.32.drv'...
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Sourcing python-remove-tests-dir-hook
@das-g
das-g / qgis-unwrapped-3.26.2.log
Created October 17, 2022 16:45
output of `nix log /nix/store/8hjjm962r6mrhbqdnpcirfxcckaw82sg-qgis-unwrapped-3.26.2.drv`
@nix { "action": "setPhase", "phase": "qtPreHook" }
qtPreHook
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/w4y1klswmy4q0ycbg9y77kpl8p832rm8-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/7pccr8qs43zvqb66lpsnh6h8xvfkwk66-set-pyqt-package-dirs.patch
patching file cmake/FindPyQt5.cmake
@das-g
das-g / qgis-unwrapped-3.26.2.log
Created October 17, 2022 14:41
output of `nix log /nix/store/8hjjm962r6mrhbqdnpcirfxcckaw82sg-qgis-unwrapped-3.26.2.drv`
@nix { "action": "setPhase", "phase": "qtPreHook" }
qtPreHook
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/w4y1klswmy4q0ycbg9y77kpl8p832rm8-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/7pccr8qs43zvqb66lpsnh6h8xvfkwk66-set-pyqt-package-dirs.patch
patching file cmake/FindPyQt5.cmake
@das-g
das-g / k6dfa
Created April 21, 2020 15:40 — forked from Anush-ccgc/k10nfa
NFAs and DFAS for ccgc question
Automaton("det",4390,4,[ [ 1, 673, 3, 3, 3880, 3865, 3889, 3880, 510, 3, 3873, 3879, 3879, 510, 3, 24, 4236, 4388, 4388, 3921, 2999, 3770, 3889, 2213, 2142, 973, 3523, 3336, 29, 1985, 31, 281, 33, \
34, 154, 35, 103, 60, 144, 72, 144, 42, 43, 44, 261, 991, 92, 92, 64, 393, 65, 65, 371, 1052, 731, 150, 729, 743, 216, 764, 1111, 488, 992, 956, 387, 62, 143, 68, 240, 655, 856, 1551, 701, 467, 745, 101\
, 262, 101, 1075, 70, 854, 700, 353, 2875, 85, 190, 87, 88, 200, 2963, 91, 1004, 1112, 185, 957, 240, 149, 98, 3680, 403, 380, 287, 56, 102, 102, 766, 1112, 126, 450, 987, 303, 434, 1394, 688, 4086, 299\
7, 403, 1159, 1530, 316, 1121, 122, 298, 123, 124, 122, 297, 448, 986, 397, 292, 292, 395, 129, 153, 153, 260, 259, 152, 258, 149, 1002, 751, 752, 62, 144, 143, 148, 34, 150, 34, 151, 151, 98, 1180, 180\
, 180, 1473, 2349, 1292, 1297, 2196, 2348, 2867, 3367, 2741, 2339, 2340, 1748, 2738, 1070, 1070, 857, 853, 4356, 316, 184, 184, 666, 967, 212, 294, 904, 886, 880, 184, 184, 183, 183, 840, 225, 1059, 879\
, 895, 89
<?xml version="1.0" encoding="UTF-8"?>
<Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd" version="1.0.0">
<!-- Service Identification -->
<ows:ServiceIdentification>
<ows:Title>SOSM tile service</ows:Title>
<ows:ServiceType>OGC WMTS</ows:ServiceType>
<ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
<ows:Fees><![CDATA[© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors]]></ows:Fees>
<ows:AccessConstraints><![CDATA[© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors]]></ows:AccessConstraints>
</ows:ServiceIdentification>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am das-g on github.
  • I am das_g (https://keybase.io/das_g) on keybase.
  • I have a public key ASC-3AiTepGOUnDFL7qeH-VBRNOicA_XshJOI4Z5EYorxQo

To claim this, I am signing this object:

@das-g
das-g / OSMaxx_roads_and_railways.sql
Created July 28, 2016 12:33
Query to combine OSMaxx roads and railways (suitable as QGIS virtual layer query)
SELECT
"osm_id", "lastchange", "geomtype", geometry, "type", "name", "label", "tags",
'highway' as "super_type",
"aggtype",
"bridge",
NULL as "frequency",
"oneway",
"ref",
'operational' as "status",
"tunnel",
@das-g
das-g / OSMaxx_schema.yml
Last active April 20, 2016 16:04
Draft for the OSMaxx schema description in YAML
---
layers:
"geoname_p": &layer_geoname_p
# == OSMaxx SQL table name == Layer name in exports
attributes:
"population":
type: int
"wikipedia":
type: text
"type":
@das-g
das-g / pre-commit
Created March 11, 2015 16:23
script that can be used as git hook AND can be called manually
#!/bin/sh
GIT_DIR=${GIT_DIR:=$(git rev-parse --git-dir)}
GIT_WORK_TREE=${GIT_WORK_TREE:=$GIT_DIR/..}
cd $GIT_WORK_TREE
# Do something that depends on current working dir being the git work tree's root ...