Skip to content

Instantly share code, notes, and snippets.

View mojtabacazi's full-sized avatar

Mojtaba Cazi mojtabacazi

View GitHub Profile
@danhper
danhper / gitlab-to-bitbucket.py
Last active September 24, 2024 09:41
Script to migrate repositories from GitLab to Bitbucket
import os
import re
import subprocess
import requests
GITLAB_ENDPOINT = os.environ["GITLAB_ENDPOINT"]
GITLAB_TOKEN = os.environ["GITLAB_TOKEN"]
@buscarini
buscarini / remove_sim_dups.py
Created July 15, 2015 07:09
Remove Xcode duplicated simulators
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
from subprocess import Popen, PIPE
from subprocess import call
p = Popen(["xcrun","simctl","list","devices"], stdin=PIPE, stdout=PIPE, stderr=PIPE)
output, err = p.communicate(b"input data that is passed to subprocess' stdin")