Skip to content

Instantly share code, notes, and snippets.

View asev's full-sized avatar

Aivaras Sevelevicius asev

  • HomeToGo
  • Vilnius
View GitHub Profile
@asev
asev / unit_test_preparation.patch
Created November 2, 2017 14:46
preparation for unit tests
Index: src/AppBundle/Service/HappyNumberGenerator.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/AppBundle/Service/HappyNumberGenerator.php (revision )
+++ src/AppBundle/Service/HappyNumberGenerator.php (revision )
@@ -0,0 +1,11 @@
+<?php
+
@asev
asev / bookmark1
Created December 21, 2015 17:47
Bookmarks for faster Regitra schedule check
https://www.eregitra.lt/viesa/interv/Index.php
@asev
asev / bitbucket_load_all_diffs.js
Created July 14, 2015 05:43
Bitbucket load all diffs in pull request
/* Add this line to bookmarks and use when you see
* "Oops! You've got a lot of code in this diff and it couldn't load with the page."
* on a pull request at Bitbucket.
*/
javascript:(function(){[].forEach.call(document.querySelectorAll(".load-diff"),function(a){a.click()})})();
@asev
asev / iTerm_restore_window_arrangement
Created July 10, 2015 05:58
Restores one of window arrangements on iTerm by AppleScript
on run {input, parameters}
tell application "iTerm" to activate
tell application "System Events"
tell process "iTerm"
tell menu bar item "Window" of menu bar 1
click
tell menu item "Restore Window Arrangement" of menu 1
click
@asev
asev / .bash_profile
Created May 15, 2015 07:03
OS X friendly terminal
# git completion
if [ -f ~/bin/git-completion.sh ]; then
source ~/bin/git-completion.sh
fi
# git fancy bash
if [ -f ~/bin/git-prompt.sh ]; then
source ~/bin/git-prompt.sh
WHITE="\[\033[0;0m\]"