Skip to content

Instantly share code, notes, and snippets.

Working from home

Michal Dyzma mdyzma

Working from home
Block or report user

Report or block mdyzma

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
cat .gitignore | while read line
if [[ $line == *#* ]]
echo #skip
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch '"$line" --prune-empty --tag-name-filter cat -- --all
mdyzma /
Last active Jan 23, 2016
After install for debian based linux distro.
#!/usr/bin/env bash
echo "Installing Java repository..."
sudo add-apt-repository -y ppa:webupd8team/java;
sudo apt-get update;
# Custom bash prompt via
#export PS1="\[$(tput bold)\]\[$(tput setaf 6)\]\t \[$(tput setaf 2)\][\[$(tput setaf 3)\]\u\[$(tput setaf 1)\]@\[$(tput setaf 3)\]\h \[$(tput setaf 6)\]\W\[$(tput setaf 2)\]]\[$(tput setaf 4)\]\\$ \[$(tput sgr0)\]"
#check if variable was passed from terminal with file execution
if [ -z "$1" ]; then
echo -e "\e[31mPodaj nazwe projektu\e[0m"
# execute oneliner
mkdir -p $1/{jupyter/{plots,data/{mat,csv,cdf,other}},img,docs,utilities}&&touch $1/.gitignore&&echo ".ipynb_checkpoints/">$1/.gitignore&&echo "Projekt stworzony"&&$1/git init && $1/git add -A && $1/git commit -m "Initial commit"&&tree -a $1
View Biosnips
# Biosnips to store some good oneliners and linux tricks
# to perform much more efficiently
# Michal Dyzma 2015
# Creating automaticly folders with actual date
# set alias in .bashrc
alias "today"="date +%F"
# type in console
mkdir foo-$(today)
You can’t perform that action at this time.