Skip to content

Instantly share code, notes, and snippets.

View ldrahnik's full-sized avatar

Lukáš Drahník ldrahnik

View GitHub Profile
@ldrahnik
ldrahnik / shorcuts.md
Last active January 12, 2016 19:18
Frequently Used PhpStorm Keyboard Shortcuts

Search, Go to, Navigation

Double press Shift - search everywhere

Ctrl + Shift + A - find action by name

Ctrl + N - find class by name

Ctrl + Shift + N - find file by name

@ldrahnik
ldrahnik / shortcuts.md
Created May 5, 2015 18:56
Elementary OS Freya Shortcuts

⌘ + Space App Launcher

Alt + Tab Window Switcher

⇧+Alt + Tab Switch Windows Backwards

⌘+W Window Overview

⌘+A Window Overview (Across All Workspaces)

@ldrahnik
ldrahnik / shortcuts.md
Last active September 17, 2017 17:05
Git Settings & Aliases & Commands

Settings

git config --global color.ui yes

git config --global push.default current - you will push only current branch (not all - it may be unexpected)

git log --pretty=format:"%Cgreen%h%Creset %ad %C(cyan)%an%Creset - %s%C(red)%d%Creset" --graph --date=short - nicer git log

Aliases

@ldrahnik
ldrahnik / .gitconfig
Last active May 2, 2019 11:40
.gitconfig
[core]
excludesfile = ~/.gitignore_global
hooksPath = ~/.git_templates/
[alias]
ll = log --pretty=format:\"%Cgreen%h%Creset %ad %C(cyan)%an%Creset - %s%C(red)%d%Creset\" --graph --date=short --all
l = log --pretty=format:\"%Cgreen%h%Creset %ad %C(cyan)%an%Creset - %s%C(red)%d%Creset\" --graph --date=short
cc = commit -a -s -m
c = commit -s -m
s = status
workprofile = config user.email "ldrahnik@gmail.com"
@ldrahnik
ldrahnik / .gitignore_global
Last active August 17, 2018 10:27
.gitignore_global
.idea/**/*
@ldrahnik
ldrahnik / instructions.md
Last active September 17, 2017 17:05
Linux A Tracy Handler

Zprovoznění Tracy handleru na IDE, konkrétně v ukázce je odkazované IDE Phpstorm.

Linux:

@ldrahnik
ldrahnik / guide.sh
Last active September 29, 2017 10:31
Remote access to Matlab installed on server Merlin
# replace <login>
ssh -C -Y <login>@merlin.fit.vutbr.cz
matlab
@ldrahnik
ldrahnik / post-install.sh
Last active September 13, 2022 13:14
Elementary OS Loki installation - Ubuntu 16.04 (https://elementary.io/)
#!/bin/bash
# finished install proccess
# first update
sudo apt -y update && sudo apt -y upgrade
# common
sudo apt install -y software-properties-common # add-apt-repository needs
sudo apt install -y ubuntu-restricted-extras # allows the user to install essential software which is not already included due to legal or copyright reasons
@ldrahnik
ldrahnik / .gitignore_global
Last active November 15, 2017 12:32
.gitignore_global
.idea/**/*
.vagrant/**/*
@ldrahnik
ldrahnik / guide.sh
Last active September 27, 2017 10:19
FIT VUT - how to connect to eduroam using wpa_supplicant (http://www.fit.vutbr.cz/CVT/auth/.cs#linux)
# get certificate
mkdir /etc/certs/ # if directory does not exist
sudo wget http://ca.vutbr.cz/pki/pub/cacert/cacert.pem
# make file /etc/wpa_supplicant.conf
#
# change <login> and <password> fields:
# password (password in only for radius server, generate new if you do not know!)
# login (login@fit.vutbr.cz, even students have fit.vutbr.cz)