Skip to content

Instantly share code, notes, and snippets.

View raftx24's full-sized avatar
🏠
Working from home

ErPr raftx24

🏠
Working from home
View GitHub Profile
@raftx24
raftx24 / gist:782e08bf0f40f47f865e83f0b43015ca
Created November 10, 2022 13:34
stop concurrent pipelines bitbucket
#!/bin/bash
function callBitbucket {
curl --location --request $1 -g \
--header 'Accept: application/json' \
-u ${BITBUCKET_USER}:${BITBUCKET_PASSWORD} \
"https://api.bitbucket.org/2.0/repositories/$BITBUCKET_WORKSPACE/$BITBUCKET_REPO_SLUG/$2"
}
export -f callBitbucket;
@raftx24
raftx24 / add_points_to_line
Created September 30, 2020 11:49
Add points to a line with opengis and pgroute
create function add_points_to_line(line geometry, new_points geometry[])
returns geometry
language plpgsql
as
$$
declare
result geometry;
begin
drop table if exists points;

Keybase proof

I hereby claim:

  • I am raftx24 on github.
  • I am raftx24 (https://keybase.io/raftx24) on keybase.
  • I have a public key ASDbcg8ufIuQw0srtxeB3R-1zu75MOzy-pTPgw-xbQzydQo

To claim this, I am signing this object:

@raftx24
raftx24 / file
Created April 24, 2016 13:27
freedom_public
{"0.9214771531701023":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nCharset: UTF-8\r\n\r\nxv8AAABSBAAAAAATCCqGSM49AwEHAgME8W1WJBK7WOap2dUvs3Dpt6FJPCFJfB2j\r\nhYwhBv8Mr2wJfW7qkK22YASKWbUnZ35Am2rRKC+0m+0qMwfebBJYVc3/AAAACDxn\r\naXRodWI+wv8AAACMBBATCAA//wAAAAWCVxzJov8AAAACiwn/AAAACZCViG1rbY1m\r\np/8AAAAFlQgJCgv/AAAAA5YBAv8AAAACmwP/AAAAAp4BAADGYAD3SdF9GgixcfeI\r\nLBmMrECs8lTnOFzFuJdPjOKWqdtp9QD/SOgLPdir5MB6Mwzus7E00VTMUw18rWCD\r\nM0ed/BwEHyXO/wAAAFYEAAAAABIIKoZIzj0DAQcCAwS4stJL0oh22jPFaiOh7Htm\r\n8th6/S/MmGJtw7sOSBJ+QC26kK+FYNDwZ5ybxEIcESW/NTWUIOASdAk7xF4N8tEW\r\nAwEIB8L/AAAAbQQYEwgAH/8AAAAFglccyaL/AAAACZCViG1rbY1mp/8AAAACmwwA\r\nAEVEAQCJMShW9GFWevonuWG11yzfjX+elujTVH5wp19EmTXmHQD8CSt8CEpI8C72\r\nbSnEuf6/neECbgqDlQ0D6dsycTFNwjU=\r\n=Pjhg\r\n-----END PGP PUBLIC KEY BLOCK-----\r\n"}