Skip to content

Instantly share code, notes, and snippets.

View egel's full-sized avatar

Maciej Sypien egel

View GitHub Profile
@egel
egel / gist:6387f36f06ac1b827246
Last active August 29, 2015 14:01
Simple bash commands for quick and simple change permissions to folders and files separetly in specific directory.
find ~/public_html/php-sql-sandbox -type d -exec chmod 755 {} \;
find ~/public_html/php-sql-sandbox -type f -exec chmod 644 {} \;
@egel
egel / phonegap-head-section
Last active August 29, 2015 14:03
HEAD section of simple phonegap app
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>UEK</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="css/jquery.mobile-1.4.2.min.css">
<link rel="stylesheet" href="css/themes/purple-rainbow.min.css" />
@egel
egel / sublime-project-python
Created July 4, 2014 09:19
Settings for Python ".sublime-project" file for Sublime text editor
{
"folders":
[
{
"follow_symlinks": true,
"path": ".",
"folder_exclude_patterns":
[
"bin",
"include",
@egel
egel / gitignore:netbeans+qt
Created July 24, 2014 10:52
gitignore: Netbeans + Qt
# NetBeans
nbproject/private/
build/
nbbuild/
dist/
nbdist/
nbactions.xml
nb-configuration.xml
# Update System
sudo apt-get update && sudo apt-get dist-upgrade
# Install prerequisites
sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6 libreadline6-dev libncurses5-dev zlib1g zlib1g-dev sqlite3 libxslt-dev libxml2-dev libsqlite3-dev python-software-properties postfix curl libcurl3 libcurl3-gnutls libcurl4-openssl-dev
# Misc Utilities
sudo apt-get install ssh tmux vim git-core wget zip unzip mcrypt imagemagick libmagickwand-dev htop whois dnsutils powertop gparted zenmap terminator
# Set up git config
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|
@egel
egel / auto-remove-sublime-license-popup
Last active April 8, 2024 23:00
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)
@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 / 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 / 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