Skip to content

Instantly share code, notes, and snippets.

View egel's full-sized avatar

Maciej Sypien egel

View GitHub Profile
#!/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 / 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="[email protected]"
curl "http://www.gravatar.com/avatar/$(echo -n ${EMAIL} | md5sum | awk '{print $1}')?s=${SIZE}" > gravatar.png
@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 / 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 / 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 / tmux.md
Last active August 29, 2015 14:16 — forked from andreyvit/tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@egel
egel / gist:af4325a5eaba75220aec
Created February 8, 2015 21:56
Egel Theme Mix
sudo add-apt-repository -y ppa:moka/daily
sudo add-apt-repository -y ppa:docky-core/ppa # docky repo (not stable but, not close when sleep >2.2.1)
sudo add-apt-repository -y ppa:numix/ppa
sudo apt-get update
sudo apt-get install docky moka-icon-theme moka-desktop moka-desktop-extras numix-gtk-theme
@egel
egel / soft_install_ubuntu_1404
Last active August 29, 2015 14:14
Software installation for Ubuntu 14.04
#!/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'
@egel
egel / auto-remove-sublime-license-popup
Last active April 14, 2025 09:58
Auto-remove Sublime's license popup
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sublime_plugin
import subprocess
from time import sleep
import sys
cl = lambda line: subprocess.Popen(line, shell=True, stdout=subprocess.PIPE).communicate()[0].strip()
log = lambda message: sys.stderr.write("Log: %s\n" % message)
o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|
O.......Recursively open the selected directory..................|NERDTree-O|
x.......Close the current nodes parent...........................|NERDTree-x|