Skip to content

Instantly share code, notes, and snippets.

View atereshkov's full-sized avatar

Aliaksandr Tserashkou atereshkov

  • Vention
  • Warsaw, Poland
View GitHub Profile
@atereshkov
atereshkov / gist:41fcc17667f502a12ea7581f8a930459
Last active February 15, 2023 12:36
Pull request template
https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository
**Ticket:** [12345]({BASE_LINK}/12345)
### Description
[//]: # (Give a brief summary of why the change is being implemented.)
### Changes
[//]: # (List change details here for Code Reviewers)
1. Brew
2. NVM
3. RVM
4. Change screenshots location
5. VPNs
6. Add .ssh
@atereshkov
atereshkov / unused-swift-code.rb
Created January 21, 2024 18:54
Detect unused swift code
#!/usr/bin/ruby
#encoding: utf-8
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8
class Item
def initialize(file, line, at)
@file = file
@line = line
@at = at + 1
@atereshkov
atereshkov / switch-github-user.sh
Created June 12, 2024 16:45
A bash script to switch between multiple github users (ssh keys)
#!/bin/bash
gh_user="${1:-Nothing}"
if [ "$gh_user" == 'USER1' ]; then
ssh-add -D
git config --global user.email "USERNAME_1_EMAIL"
ssh-add ~/.ssh/id_ed1
elif [ "$gh_user" == 'USER1' ]; then
ssh-add -D
git config --global user.email "USERNAME_2_EMAIL"