Skip to content

Instantly share code, notes, and snippets.

View dimitardanailov's full-sized avatar

Dimitar Danailov (a.k.a Mitco) dimitardanailov

View GitHub Profile
@dimitardanailov
dimitardanailov / Xcode - Shortcuts.md
Last active September 25, 2015 16:44
List with Xcode Shortcuts

Special Mac Keys

  1. Command ⌘
  2. Shift ⇧
  3. Option ⌥
  4. Control ⌃
  5. Caps Lock ⇪
  6. Fn

Dialogs

@dimitardanailov
dimitardanailov / sample-nginx.conf
Last active June 3, 2021 17:30
Configuration for single page application(Framework: Angularjs, Web server: Nginx)
server {
listen 80 default deferred;
server_name myapp.com;
root /var/www/project-folder/;
# Nginx and Angularjs with html mode 5 - https://gist.github.com/cjus/b46a243ba610661a7efb
index index.html;
@dimitardanailov
dimitardanailov / sample-nginx.conf
Last active August 20, 2021 17:41
Configuration for Laravel 5 application and Nginx
server {
listen 80 default deferred;
server_name laravel-application.com;
# http://nginx.org/en/docs/http/ngx_http_log_module.html#access_log
access_log /var/www/laravel-app/access.log;
error_log /var/www/laravel-app/error.log;
root /var/www/laravel-app/public/;
@dimitardanailov
dimitardanailov / Android.gitignore
Created August 31, 2015 10:33
I merge Github .gitignore files
### Android.gitignore ###
# https://github.com/github/gitignore/blob/master/Android.gitignore
# Built application files
*.apk
*.ap_
# Files for the Dalvik VM
*.dex
#!/bin/sh
# Source: http://www.fullybaked.co.uk/articles/installing-latest-vim-on-centos-from-source
yum groupinstall 'Development tools'
yum install ncurses ncurses-devel
cd /usr/local/src
wget ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
tar -xjf vim-7.4.tar.bz2
cd vim74
@dimitardanailov
dimitardanailov / vim-installation-debian.sh
Last active October 28, 2015 08:53
Step for installation of Vim 7.4 on Debian.
#!/bin/sh
# Source: http://linuxg.net/how-to-install-vim-7-4-on-debian-based-systems-from-source/
sudo apt-get -y install ncurses-dev build-essential mercurial
hg clone https://vim.googlecode.com/hg/ vim
cd vim/src
make distclean
./configure --with-features=huge --enable-pythoninterp --enable-rubyinterp
make

Issue:

* Starting ClamAV daemon clamd
LibClamAV Error: cli_load(): Can't open file /var/lib/clamav/lmd.user.ndb
LibClamAV Error: cli_loaddbdir(): error loading database /var/lib/clamav/lmd.user.ndb
ERROR: Can't open file or directory

Fix

@dimitardanailov
dimitardanailov / jenkins.md
Last active October 19, 2015 09:14
Jenkins and Debian

Installation

####Java

# Source: http://stackoverflow.com/questions/15543603/installing-java-7-oracle-in-debian-via-apt-get

echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
@dimitardanailov
dimitardanailov / setup-vim-debian.sh
Last active April 1, 2016 09:32
[Debian]Setup my vim environment
cd
mkdir source
cd source
wget https://gist.githubusercontent.com/dimitardanailov/c74d89d534ead0af1c3d/raw/8b3c0bbbc2549d39702c1a26d83d9eb052a87dbf/vim-installation-debian.sh
chmod +x vim-installation-debian.sh
./vim-installation-debian.sh
git clone https://github.com/dimitardanailov/dotvimfiles ~/.vim/