Skip to content

Instantly share code, notes, and snippets.

View igor-makarov's full-sized avatar
🚌
Hi, I'm using GitHub!

Igor Makarov igor-makarov

🚌
Hi, I'm using GitHub!
View GitHub Profile
@igor-makarov
igor-makarov / Bash Scripts.md
Last active January 28, 2022 12:14
Bash scripts

My bash scripts

Usage

Add the following line to to .bashrc or .bash_profile:

if ! [ -d ~/.bash_scripts ]; then
    git clone https://gist.github.com/9722ca35e703f0024a4842244d258ffa.git .bash_scripts
    git -C ~/.bash_scripts branch -u origin/master
fi
source ~/.bash_scripts/bash-scripts.sh
@igor-makarov
igor-makarov / BuglifeLogAppender.swift
Created January 8, 2017 10:19
Log4swift Appender for Buglife
import UIKit
import Buglife
import Log4swift
class BuglifeLogAppender: Log4swift.Appender {
override public func performLog(_ log: String, level: LogLevel, info: LogInfoDictionary) {
var lifeLogType: LIFEAwesomeLogType
switch level {
case .Trace, .Debug, .Off:
lifeLogType = .debug