Skip to content

Instantly share code, notes, and snippets.

View vivanishin's full-sized avatar

Vladislav Ivanishin vivanishin

View GitHub Profile
@vivanishin
vivanishin / llv8-as-patch.diff
Created March 31, 2016 11:54
Diffs of github.com/ispras/llv8.git and github.com/ispras/llvm-for-v8 from their respective trunks
diff --git a/.gitignore b/.gitignore
index 6afb7f5..82ac8cc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@
*.map
*.mk
*.ncb
+*.orig
*.pdb
@vivanishin
vivanishin / .bashrc_ubuntu
Created February 7, 2016 20:20
bash profile (common part)
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
export LSCOLORS="ExGxcxdxCxegedabagacad"
export CLICOLOR=YES
@vivanishin
vivanishin / .bash_profile
Created February 7, 2016 20:19
bash profile (my exports and aliases for mac)
export PATH=/usr/local/bin:$PATH:/usr/local/texlive/2014/bin/x86_64-darwin
export PYTHONSTARTUP="$HOME/.pythonrc"
source /usr/local/bin/virtualenvwrapper.sh
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
export PS1="\u@\h \w>"
@vivanishin
vivanishin / subtitles-renamer.sh
Created September 27, 2015 12:00 — forked from colinux/subtitles-renamer.sh
Rename subtitles files according to tv shows names found in a directory
#!/bin/bash
# Renames subtitles files according to tv shows names found in a directory
# Acceped syntaxes for season/episode are: 304, s3e04, s03e04, 3x04 (case insensitive)
#
# Usage:
# Put this gist somewhere in your $PATH, like /usr/local/bin/subtitles-renamer
# Chmod +x it
# cd ~/YourHolidaysTvShowsWithSubtitles
# subtitles-renamer
@vivanishin
vivanishin / eclipse-cpp-google-style.xml
Created March 5, 2015 11:27
Google C++ code style profile for Eclipse
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="1">
<profile kind="CodeFormatterProfile" name="Google C++" version="1">
<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_method_declaration" value="do not insert"/>
<setting id="org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_for" value="do not insert"/>
<setting id="org.eclipse.cdt.core.formatter.insert_new_line_in_empty_block" value="insert"/>
<setting id="org.eclipse.cdt.core.formatter.lineSplit" value="80"/>
<setting id="org.eclipse.cdt.core.formatter.alignment_for_member_access" value="16"/>
<setting id="org.eclipse.cdt.core.formatter.insert_space_before_comma_in_base_types" value="do not insert"/>
<setting id="org.eclipse.cdt.core.formatter.keep_else_statement_on_same_line" value="false"/>
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name