Make the daisy Create the white cross Solve the first layer Solve the second layer Create the yellow cross: F U R U' R' F' Solve the yellow face: R U R' U R U2 R' Move yellow stickers upper right-hand corner of left-face Orient "fish" down and to the left relative to your perspective
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # cmr - open a GitLab merge request branch in a separate Git worktree | |
| # Usage: cmr <MR_ID> [REMOTE] | |
| # Example: cmr 1234 origin | |
| # Uses 'origin' when no remote is provided. | |
| # The worktree is created one directory above the repository using the branch name. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git config --global alias.wta '!f() { git worktree add -b "$1" "../$1"; }; f' | |
| git config --global alias.wtr '!f() { git worktree remove "../$1"; }; f' | |
| git config --global alias.wtl '!f() { git worktree list; }; f' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # set local credentials | |
| git config --global credential.helper store | |
| git config --global user.name "$GITLAB_USER_NAME" | |
| git config --global user.email "$GITLAB_USER_EMAIL" | |
| # update remote url | |
| git remote set-url origin <NEW_GIT_URL_HERE> | |
| # git commits per developer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| def delete_layer(layer_name): | |
| s = requests.Session() | |
| GEOSERVER_USER = 'someusername' | |
| GEOSERVER_PASS = 'asecretthingy' | |
| s.auth = (GEOSERVER_USER, GEOSERVER_PASS) | |
| headers_json = {'Content-type': 'application/json', } | |
| del_url = "https:/yourgeoserver.com/workspaces/SsmeWorkspaceName/datastores/someDataStoreName/featuretypes/" + layer_name + "?recurse=true" | |
| r = s.delete(del_url, headers=headers_json, data={}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # git commits per developer | |
| git shortlog -sn --no-merges --since "01 January 2019" | |
| # a clearer better git log view of commits | |
| git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -e | |
| set -o pipefail | |
| # Any arguments are incorrect. Note that git intercepts --help and tries to | |
| # open the man page. | |
| if [ $# -gt 0 ]; then | |
| echo 'Usage: git merge-stats' | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UPDATE multipoly_table_with_rings AS myrings | |
| SET geom = noring.geom | |
| FROM ( | |
| SELECT id, ST_Collect(ST_MakePolygon(geom)) AS geom | |
| FROM ( | |
| SELECT id, ST_NRings(geom) AS nrings, | |
| ST_ExteriorRing((ST_Dump(geom)).geom) AS geom | |
| FROM multipoly_table_with_rings | |
| WHERE ST_NRings(geom) > 1 | |
| ) AS foo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT DISTINCT s.id, s.tags | |
| FROM myspace_polys as s | |
| JOIN mypoi_points as as p | |
| ON ST_Contains(s.geom, p.geom); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ docker run --name=postgis -d -e POSTGRES_USER=user001 -e POSTGRES_PASS=123456789 -e POSTGRES_DBNAME=gis -p 5432:5432 kartoza/postgis:9.6-2.4 |
NewerOlder