Skip to content

Instantly share code, notes, and snippets.

Avatar

Maciej Sypien egel

View GitHub Profile
@egel
egel / gist:6387f36f06ac1b827246
Last active Aug 29, 2015
Simple bash commands for quick and simple change permissions to folders and files separetly in specific directory.
View gist:6387f36f06ac1b827246
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 Aug 29, 2015
HEAD section of simple phonegap app
View phonegap-head-section
<!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 / gitignore:netbeans+qt
Created Jul 24, 2014
gitignore: Netbeans + Qt
View gitignore:netbeans+qt
# NetBeans
nbproject/private/
build/
nbbuild/
dist/
nbdist/
nbactions.xml
nb-configuration.xml
View ubuntugnome.sh
# 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
View KeyMappings
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 / soft_install_ubuntu_1404
Last active Aug 29, 2015
Software installation for Ubuntu 14.04
View soft_install_ubuntu_1404
#!/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'
View gist:af4325a5eaba75220aec
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
View 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 / texstudio_config
Created Apr 12, 2015
My configuration for TeXstudio editor
View texstudio_config
[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]
View profitelo_migrate_v1.0.2_to_v1.0.4.sh
#!/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