Skip to content

Instantly share code, notes, and snippets.

Vladislav Ivanishin ivladak

View GitHub Profile
@ivladak
ivladak / llv8-as-patch.diff
Created Mar 31, 2016
Diffs of github.com/ispras/llv8.git and github.com/ispras/llvm-for-v8 from their respective trunks
View llv8-as-patch.diff
diff --git a/.gitignore b/.gitignore
index 6afb7f5..82ac8cc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@
*.map
*.mk
*.ncb
+*.orig
*.pdb
@ivladak
ivladak / .bashrc_ubuntu
Created Feb 7, 2016
bash profile (common part)
View .bashrc_ubuntu
# ~/.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
@ivladak
ivladak / .bash_profile
Created Feb 7, 2016
bash profile (my exports and aliases for mac)
View .bash_profile
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>"
@ivladak
ivladak / subtitles-renamer.sh
Created Sep 27, 2015 — forked from colinux/subtitles-renamer.sh
Rename subtitles files according to tv shows names found in a directory
View subtitles-renamer.sh
#!/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
@ivladak
ivladak / eclipse-cpp-google-style.xml
Created Mar 5, 2015
Google C++ code style profile for Eclipse
View eclipse-cpp-google-style.xml
<?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"/>
View gist:24459e428d0f490b4973
----- 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
You can’t perform that action at this time.