Skip to content

Instantly share code, notes, and snippets.

View Gedrovits's full-sized avatar

Vjatseslav Gedrovits Gedrovits

View GitHub Profile
@jurikern
jurikern / rebase-tools
Last active August 29, 2015 13:55
Git rebase-tools
git rebase
git rebase --abort
git rebase --continue
git rebase --skip
git push origin feature --force
git pull --rebase origin feature
git merge fature --no-ff
@apeckham
apeckham / gist:8293865
Created January 7, 2014 02:40
ruby 1.9 hash syntax in rubymine
http://robots.thoughtbot.com/convert-ruby-1-8-to-1-9-hash-syntax
search = :([^ ]*)(\s*)=>
replace = $1:
@dorajistyle
dorajistyle / font-awesome-ie7.min.css
Created November 14, 2013 05:24
Font Awesome 4.0.3 Internet explorer 7 support. Font Awesome not support IE7 officially. But sometimes we need to support IE7.
.fa-lg{font-size:1.3333333333333333em;margin-top:-4px;padding-top:3px;margin-bottom:-4px;padding-bottom:3px;vertical-align:middle;}
.nav [class^="fa-"],.nav [class*=" fa-"]{vertical-align:inherit;margin-top:-4px;padding-top:3px;margin-bottom:-4px;padding-bottom:3px;}.nav [class^="fa-"].fa-lg,.nav [class*=" fa-"].fa-lg{vertical-align:-25%;}
.nav-pills [class^="fa-"].fa-lg,.nav-tabs [class^="fa-"].fa-lg,.nav-pills [class*=" fa-"].fa-lg,.nav-tabs [class*=" fa-"].fa-lg{line-height:.75em;margin-top:-7px;padding-top:5px;margin-bottom:-5px;padding-bottom:4px;}
.btn [class^="fa-"].pull-left,.btn [class*=" fa-"].pull-left,.btn [class^="fa-"].pull-right,.btn [class*=" fa-"].pull-right{vertical-align:inherit;}
.btn [class^="fa-"].fa-lg,.btn [class*=" fa-"].fa-lg{margin-top:-0.5em;}
a [class^="fa-"],a [class*=" fa-"]{cursor:pointer;}
.fa-glass{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
.fa-music{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
.fa-se
@wishfoundry
wishfoundry / gist:7036457
Last active April 1, 2022 05:18
Set OSX default text editor to sublime text 3 instead of TextEdit
defaults write com.apple.LaunchServices LSHandlers -array-add '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.sublimetext.3;}'
#app/inputs/collection_check_boxes_input.rb
class CollectionCheckBoxesInput < SimpleForm::Inputs::CollectionCheckBoxesInput
def item_wrapper_class
"checkbox-inline"
end
end
@adamico
adamico / collection_check_boxes_input.rb
Last active January 17, 2025 21:21 — forked from mattclar/simple_form.rb
This fork adds a custom horizontal form wrapper and merges append/prepend in a 'group' wrapper
#app/inputs/collection_check_boxes_input.rb
class CollectionCheckBoxesInput < SimpleForm::Inputs::CollectionCheckBoxesInput
def item_wrapper_class
"checkbox-inline"
end
end
@bradmontgomery
bradmontgomery / install-comodo-ssl-cert-for-nginx.rst
Last active March 20, 2025 17:17
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@henryiii
henryiii / git-all.bash
Last active April 29, 2023 15:13
Fast repository status for repos in git folder
#!/usr/bin/env bash
# This script should be named (or symbolically linked) as git-all so that
# it can be run as a git command (if it is in the path). The repo location should
# be set in REPOLOC. Can be relative if this script is also in a repo!
# Standard bash stuff to get the current directory
unset CDPATH
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
@Gedrovits
Gedrovits / config
Last active December 17, 2015 08:49
GitHub configuration to push same repository into different services. Just change according to your needs your repository .git/config file.
# GitHub configuration to push same repository into different services
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
# git push all
[remote "all"]
url = [email protected]:<login>/<repository>.git
url = [email protected]:<login>/<repository>.git
@gufranco-zz
gufranco-zz / railsInstaller.sh
Last active September 22, 2020 19:48
How to install Ruby, Git, Rails, PostgreSQL and MySQL on Ubuntu
#!/bin/sh
# System update
sudo apt-get update
# Curl
sudo apt-get -y install curl
# Git
sudo apt-get -y install git-core