Skip to content

Instantly share code, notes, and snippets.

View antonfefilov's full-sized avatar
🚀
To infinity and beyond!

Anton Fefilov antonfefilov

🚀
To infinity and beyond!
  • ScienceCast
  • Georgia, Tbilisi
View GitHub Profile
@antonfefilov
antonfefilov / Brewfile
Created December 2, 2020 17:40 — forked from bbonamin/Brewfile
Capybara Selenium Webdriver: Headless Chrome (with file downloads!) & Headless Firefox
tap "caskroom/cask"
cask "google-chrome"
cask "firefox"
brew "chromedriver"
brew "geckodriver"
@antonfefilov
antonfefilov / .vimrc
Created October 9, 2020 08:39 — forked from joegoggins/.vimrc
Mac Vim .vimrc file
" Use Vim settings, rather then Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" ================ General Config ====================
set number "Line numbers are good
set backspace=indent,eol,start "Allow backspace in insert mode
set history=1000 "Store lots of :cmdline history
set showcmd "Show incomplete cmds down the bottom
@antonfefilov
antonfefilov / capybara_session_factory.rb
Created May 28, 2020 20:38 — forked from mcrowe/capybara_session_factory.rb
Saving and restoring Capybara sessions
module CapybaraSessionFactory
class SessionAlreadyDefined < StandardError; end
class SessionNotDefined < StandardError; end
# Parse a capybara session mode, which has the form
# "[driver]:[session_name]:[application_id]"
#
class CapybaraModeParser

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@antonfefilov
antonfefilov / twittermute.txt
Created March 25, 2020 16:29 — forked from IanColdwater/twittermute.txt
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@antonfefilov
antonfefilov / composing-software.md
Created December 18, 2019 13:54 — forked from rosario/composing-software.md
Eric Elliott's Composing Software Series
@antonfefilov
antonfefilov / Ruby Lambdas.md
Created January 18, 2018 18:05 — forked from Integralist/Ruby Lambdas.md
Ruby lambdas

Lambda: standard

# Creating a lambda
l = lambda { |name| "Hi #{name}!" }

# Executing the lambda
l.call("foo") # => Hi foo!
@antonfefilov
antonfefilov / yardoc_cheatsheet.md
Created December 5, 2017 08:10 — forked from chetan/yardoc_cheatsheet.md
YARD cheatsheet

YARD CHEATSHEET http://yardoc.org

cribbed from http://pastebin.com/xgzeAmBn

Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.

Modules

Namespace for classes and modules that handle serving documentation over HTTP

@antonfefilov
antonfefilov / Vagrantfile
Last active January 3, 2018 21:11
Script for provisioning Vagrant virtual machine with Rails
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@antonfefilov
antonfefilov / increase_swap.sh
Created February 9, 2017 12:57 — forked from shovon/increase_swap.sh
Increasing swap size. Only tested on the ubuntu/trusty64 Vagrant box. CREDIT GOES TO ---> http://jeqo.github.io/blog/devops/vagrant-quickstart/
#!/bin/sh
# size of swapfile in megabytes
swapsize=8000
# does the swap file already exist?
grep -q "swapfile" /etc/fstab
# if not then create it
if [ $? -ne 0 ]; then