Skip to content

Instantly share code, notes, and snippets.

View alinradut's full-sized avatar

alinradut

  • Targu Mures, Romania
View GitHub Profile
@alinradut
alinradut / remove-all-from-docker.sh
Created August 16, 2023 10:46 — forked from beeman/remove-all-from-docker.sh
Remove all from Docker
# Stop all containers
docker stop `docker ps -qa`
# Remove all containers
docker rm `docker ps -qa`
# Remove all images
docker rmi -f `docker images -qa `
# Remove all volumes
@alinradut
alinradut / symbolicate.rb
Created December 2, 2022 13:33 — forked from dceddia/symbolicate.rb
Symbolicate a macOS crash report from Sentry
#!/usr/bin/env ruby
# colorization without needing a gem
class String
def colorize(color_code)
"\e[#{color_code}m#{self}\e[0m"
end
def red
colorize(31)
@alinradut
alinradut / github-to-bitbucket
Last active February 11, 2020 15:27 — forked from sangeeths/github-to-bitbucket
Forking a Github repo to Bitbucket
Go to Bitbucket and create a new repository (its better to have an empty repo)
git clone [email protected]:abc/myforkedrepo.git
cd myforkedrepo
Now add Github repo as a new remote in Bitbucket called "sync"
git remote add sync [email protected]:def/originalrepo.git
Verify what are the remotes currently being setup for "myforkedrepo". This following command should show "fetch" and "push" for two remotes i.e. "origin" and "sync"
git remote -v