Skip to content

Instantly share code, notes, and snippets.

git init --bare $HOME/.cfg
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config --local status.showUntrackedFiles no
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.zshrc
function config {
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
mkdir -p .config-backup
config checkout
@eomiso
eomiso / phpenv-install.md
Last active July 4, 2022 07:37 — forked from sergeyklay/phpenv-install.md
Multiple PHP versions using phpenv and php-build

Multiple PHP versions using phpenv and php-build

Install dependecies

Debian/Ubuntu users

sudo apt install \
  autoconf \
  bison \
@eomiso
eomiso / Docker4ML.md
Last active April 19, 2022 13:38
How to create docker for machine learning that supports tensorboard, and jupyter

How to create docker container for machine learning that supports tensorboard, and jupyter

When creating a container, forward two ports 22 (for ssh) and 6006 (for Tensorboard) and 8888 (for jupyter).

docker run -ti --runtime=nvidia --gpus all -p 8082:22 -p 8083:6006 -p 8084:8888 nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04 /bin/bash

you may need to install these

@eomiso
eomiso / ConstraintsExtesnions.swift
Created January 9, 2022 14:11 — forked from mrugeshtank/ConstraintsExtesnions.swift
extension for constraints for applying programmatically in swift 5.1
extension UIView {
func addSubviewsUsingAutoLayout(_ views: UIView ...) {
subviews.forEach {
self.addSubview($0)
$0.translatesAutoresizingMaskIntoConstraints = false
}
}
}
@objc extension NSLayoutAnchor {
@eomiso
eomiso / .gitmessage
Last active November 22, 2021 22:50 — forked from median-man/.gitmessage
This commit message template helps you write **useful** commit messages.
# <type>: <subject> (Max 50 char, Why is this change necessary?)
# |<---- Using a Maximum Of 50 Characters ---->|
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Explain how the commit addresses the issue
# IMPORTANT!! Describe any side effects of the change.
# Provide links or keys to any relevant tickets, articles or other resources
# Examples: "Jira issue [ABC-123]" or "Closes Github issue #123"