Skip to content

Instantly share code, notes, and snippets.

View fhoek's full-sized avatar

Frank van den Hoek fhoek

  • Trancon bv
  • Nieuw-Vennep
View GitHub Profile
@fhoek
fhoek / zendesk_permanently_delete_user.py
Created January 15, 2019 19:30
Permanently delete a user in zendesk
#!/usr/bin/env python
#
# Copyright 2019 Trancon B.V.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@fhoek
fhoek / zendesk_delete_orgs_and_users_with_no_tickets.py
Last active July 30, 2024 14:10
Zendesk cleanup. Iterates over organisations and retrieves the number of tickets, if zero it will delete the org and its users
#!/usr/bin/env python
#
# Copyright 2019 Trancon B.V.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@fhoek
fhoek / zendesk_delete_ticket_by_ticket_permanent.py
Last active January 15, 2019 17:54
Permanently deletes tickets from zendesk using the API. There is also a multiple destroy API but this wasn't working for me. For that reason I created this rather "dumb" script.
#!/usr/bin/env python
#
# Copyright 2019 Trancon B.V.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@fhoek
fhoek / convert_tc_folder.py
Last active January 14, 2019 11:20
Migrate TeamCity builtin artifact storage to Google Storage Buckets (Google Artifact Storage Plugin)
# -*- coding: utf-8 -*-
"""
Convert old teamcity artifacts folder structure to Google Artifact Storage structure.
Use at your own risk and please CREATE A BACKUP before using this!
Written by:
Frank van den Hoek<[email protected]>
Copyright 2019 Trancon B.V.