Skip to content

Instantly share code, notes, and snippets.

View egel's full-sized avatar

Maciej Sypien egel

View GitHub Profile
@egel
egel / texstudio_config
Created April 12, 2015 21:19
My configuration for TeXstudio editor
[General]
IniMode=true
[version]
written_by_TXS_version=2.8.8
written_by_TXS_hg_revision=:
created_by_TXS_version=2.8.8
created_by_TXS_hg_revision=:
[texmaker]
@egel
egel / audio_extensions
Created April 15, 2015 20:07
Big group of extensions (audio, text)
.caf Core Audio File 4.5 stars
.abm Music Album 4.5 stars
.oga Ogg Vorbis Audio File
.omf Open Media Framework File
.pla Sansa Playlist File
.asd Ableton Live Sample Analysis File
.bnk Adlib Instrument Bank
.bun Cakewalk Bundle File
.csh Cubase Waveform File
.hsb HALion Sound Bank File
@egel
egel / cleanup_docker.sh
Created July 22, 2015 13:31
Cleaner for docker containers
#!/bin/bash
set -o errexit
echo "Removing exited docker containers..."
docker ps -a -f status=exited | grep ^data | awk '{print $1}' | xargs -r docker rm -v
#docker ps -a -f status=exited -q | xargs -r docker rm -v
echo "Removing dangling images..."
docker images --no-trunc -q -f dangling=true | xargs -r docker rmi
@egel
egel / get-gravatar-image.sh
Last active February 12, 2021 22:46 — forked from kristopherjohnson/gravatar.sh
Download Gravatar image for an email address
SIZE=500
EMAIL="maciejsypien@gmail.com"
curl "http://www.gravatar.com/avatar/$(echo -n ${EMAIL} | md5sum | awk '{print $1}')?s=${SIZE}" > gravatar.png
#!/bin/bash
COMMAND=$(profitelo --version)
if [ "$COMMAND" == "v1.0.4" ]
then
sed -i "s/GIT_PROJECT_FOLDER_PATH/GIT_PROJECT_FOLDER_DIR/" ~/.profiteloconfig
echo "Update .profiteloconfig successfully :)"
fi
@egel
egel / mint_software_install.sh
Last active August 30, 2015 11:29
Installing most useful software for Linux Mint 17.2
#!/bin/bash
# General colors
black='\x1B[0;30m'
red='\x1B[0;31m'
green='\x1B[0;32m' # '\x1B[1;32m' is too bright for white bg.
blue='\x1B[1;34m'
yellow='\x1B[0;33m'
purple='\x1B[1;35m'
cyan='\x1B[0;36m'
sudo apt-get install libffi-dev libssl-dev # for python
sudo pip install requests[security]
sudo apt-get install libgtkspell-dev libgtkspell0
sudo apt-get install libdb6.0-* # berkley db
sudo apt-get install libboost-all-dev # boost lib c++
# lucane plus plus lib
git clone https://github.com/luceneplusplus/LucenePlusPlus.git
mkdir LucenePlusPlus/build; cd LucenePlusPlus.build
@egel
egel / colors.py
Created October 10, 2015 08:04
Simple python color class
#!/usr/bin/python3
# -*- coding: utf-8 -*-
class Colors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
@egel
egel / git-loglive.sh
Last active October 10, 2015 09:12
Bash git loglive (refreshing git repository log)
#!/bin/sh
while true;
do
clear
echo "Git livelog: $(pwd)"
git log \
--graph \
--all \
--abbrev-commit \
--date=relative \
@egel
egel / git-prompt.sh
Created October 10, 2015 09:11
Bash git prompt (show current git branch in prompt)
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).